简体   繁体   中英

Magento hide / show coupon field in cart page

I'm using Magento 1.7 and I need a solution or at least some directions in order to solve the following issue:

  • I want to hide the coupon field in the cart page and replace it with a link that says "Have a coupon? Click here to use it". When the link is clicked, the coupon form should appear and the customer can enter his code. I've searched everywhere and I can't find a solution, which seems really weird since everybody is recommending that the coupon field should not be prominent in the cart page.

Any help will be greatly appreciated.

Thanks in advance.

you can use jquery slideToggle() method for this. take a look here . You can also use prototype for this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM