2

I am trying to override the checkout - summary block. I want add custom text after product name. I am not able to find way it is calling and fetching data.

I know it Knockout JS but i am not able to understand it in more detail. Can any tell me what is best way to customize the checkout.

  • Have you get your solution? – Dhiren Vasoya Nov 11 '16 at 13:48
4

Hey Bhupendra here answer for you,

You will need to override the template file for summery block using requirejs-config.js(create this file in your module`s view/frontend/requirejs-config.js)

var config = {
    map: {
        '*': {
             'Magento_Checkout/template/summary/cart-items.html':
          '<Vendor>_<ModuleName>template/summary/cart-items.html'
        }
  }
};

up vote if you are satisfied with answer. :)

  • thank you for the answer. I already did this but i am not able get option value in this file.I need to set option and if that option found i need display link for popup.Do you have any idea about this ? – Bhupendra Jadeja Jul 22 '16 at 5:53

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.