1

I am planing to move the coupon code section inside the summary page,before that i have moved the summary-section under the item list, and moved the cross-sell section next to summary-section.

Now i plan to move the coupon-code section inside the summary section or next to item-list section.

For move inside the summary-section i just used below code

<move element="checkout.cart.coupon" destination="cart.summary"/> 

For move next to order item list section

<move element="checkout.cart.coupon" destination="checkout.cart.items" before="checkout.cart.order.actions" after="checkout.cart.form"/> 
<move element="checkout.cart.coupon" destination="checkout.cart.container" before="cart-items" />
2

Just add below code in Magento_Checkout\layout\checkout_cart_index.xml in your custom theme :-

<move element="checkout.cart.coupon" destination="cart.summary" after="checkout.cart.shipping"/>

OR

If you want to add before checkout button then add below code :-

<move element="checkout.cart.coupon" destination="cart.summary" after="checkout.cart.totals.container"/>
  • Hi dipesh, both the code is not working – senthil Nov 15 '18 at 6:50
  • I have tested in default Magento and this is worked for me, make sure with your customization if you have made any. – Dipesh Rangani Nov 15 '18 at 7:03
  • Yes, I have moved my summary section next to order-item list, and move the cross-sell section next to summary. – senthil Nov 15 '18 at 7:20
  • works as charm... – Sameer Bhayani Jun 21 at 12:44
0

Use below code this will place coupon code section after estimate shipping section or above cart total container in summary section.

<move element="checkout.cart.coupon" destination="cart.summary" after="checkout.cart.shipping"/>

Let me know if you need any more help.

  • Did it work for you @senthil? – Ramkishan Suthar Nov 14 '18 at 16:34
  • thanks for your support. but it's not working – senthil Nov 15 '18 at 6:49
  • are you using any third party theme? – Ramkishan Suthar Nov 15 '18 at 7:12
  • No, for your kind information, read my post. because i have already moved some elements. – senthil Nov 15 '18 at 7:19

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.