Skip to content

Shipping Methods Jquery Code

I’m doing some customization on Magento 2.4.4 checkout and i need help to understand how to inject some javascript into “table-checkout-shipping-method”

Loader Shipping Method
Shipping Method Loaded

I tried do innsert following code in following path
/app/code/Magento/Checkout/view/frontend/templates/onepage.phtml

<script type="text/javascript">
    require(['jquery'],function($){
        jQuery(function($) {
            console.log('test');
            $('.step-title').hide();
        });
    });
</script>

and i’m able to see console.log result.
the .hide() script instead doesen’t work. It seems that the loader for shipping method will override every jquery script.

So where can i find that JS script for writing there my custom JS code?