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.
Best Answer
You can do this simply with some javascript. The javascript implementation can be done in a few ways. This is but one.
The quickest would be to copy the core template to your theme
and then set the coupon element to display:none with some in-line css (or you can adjust the carts stylesheet if you do not want to use in-line css, which is better)
Then all you have to do is place your 'click here' element to have a click event to toggle the coupon display and hide the click element.
Have not tested this code for 100% correctiveness
and some javascript to deal with the click