简体   繁体   English

Magento隐藏/显示购物车页面中的优惠券字段

[英]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: 我使用的是Magento 1.7,我需要一个解决方案或至少一些说明,才能解决以下问题:

  • 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. 您可以为此使用jquery slideToggle()方法。 take a look here . 看一下这里 You can also use prototype for this 您也可以为此使用原型

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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