Add code

Wednesday, 6 January 2016

How to remove the Discount Code / Coupon Code box in Magento My cart page?

Solution 1:
Edit your theme's "/layout/checkout.xml" file. Find and Comment the below lines.

<block as="coupon" name="checkout.cart.coupon" template="checkout/cart/coupon.phtml" type="checkout/cart_coupon"></block>


Solution 2:
Add new local.xml file under your theme's layout folder.


<layout>
   <default>
      <remove name="checkout.cart.coupon"></remove>
   </default>
</layout>



Here, You no need to search for any template or layout file. This code will do the trick. After making changes dont forget to refresh the cache. That's it. You are done.



No comments:

Post a Comment

Magento : 404 error is showing admin page

Hello, Sometimes we may get the error on admin page once done with the Magento installation. In that scenario, we have to do the following: ...