0

In my shipping.html I see this line of code

<render args="shippingMethodListTemplate"/>

Is this just saying "put the content of this template here" or is there something else going on?

EDIT: if this is just calling this content how do I find it?

1

If you open following class

vendor/magento/module-checkout/view/frontend/web/js/view/shipping.js

defaults: {
    template: 'Magento_Checkout/shipping',
    shippingFormTemplate: 'Magento_Checkout/shipping-address/form',
    shippingMethodListTemplate: 'Magento_Checkout/shipping-address/shipping-method-list',
    shippingMethodItemTemplate: 'Magento_Checkout/shipping-address/shipping-method-item'
},

shippingMethodListTemplate is html template.

Now in your case:

<render args="shippingMethodListTemplate"/>

This code render

vendor/magento/module-checkout/view/frontend/web/template/shipping-address/shipping-method-list.html

template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.