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.

1
  • Have you get your solution? Nov 11, 2016 at 13:48

1 Answer 1

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. :)

1
  • 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 ? Jul 22, 2016 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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