I have to override the onepage/review/item.phtml file but I want to add js file in that.

        <reference name="root">
            <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>cedapi/checkout/onepage/review/item.phtml</template></action>

Already I have tried below code but it is not working.

<reference name="head">
            <action method="addJs"><script>product_designer/checkout_image.js</script></action>

If you want to add js in head of checkout page then use below code

<checkout_onepage_index translate="label">
          <reference name="head">
               <action method="addJs"><script>product_designer/checkout_image.js</script></action>
  • Thanks for the response. But I want the js to be loaded when I click the 'Continue' button of 'Payment Information' tab. Please guide... – Jitendra Mohanta Oct 19 '16 at 7:44
  • @jitendrakumar fir that you have to add js in your phtml then. because it loading the json response not whole layout. – Qaisar Satti Oct 19 '16 at 7:54
  • so how to add js on perticular item.phtml file. – Jitendra Mohanta Oct 19 '16 at 8:09
  • it is main js folder or skin/js folder? – Qaisar Satti Oct 19 '16 at 8:10
  • main js folder. – Jitendra Mohanta Oct 19 '16 at 8:10

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.