• Resolved Carlos

    (@colidom)


    Greetings fellow developers,

    I’m developing a feature on my site where I want to display a small form when I choose a carrier in the checkout process. This carrier has a specific identifier so I am displaying the form only for carriers of this specific type. So far I’ve managed this by using “add_action(‘woocommerce_after_shipping_rate’, array($this, ‘FOO’));” The problem is when the “Hide shipping costs until an address is entered” option in Woocommerce settings is enabled, when it is enabled the assets defined in FOO are not loaded until I reload the checkout page manually. If I disable this option and open the checkout source code, the assets are being loaded. These assets are necessary to load the form styles that I intend to display as extra content in my carrier.

    Is there any specific hook to develop this functionality? I’ve searched the documentation and I can’t find any that work. I appreciate your help in advance. Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Checkout hook for carrier extra content’ is closed to new replies.