[Skip to main content](#vessel-content)

#   conditional checkbox for checkout coupon in checkout step page

##

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile") Topic Author
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

9 years 5 months ago [\#272933](#272933) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  *[conditional checkbox for checkout coupon in checkout step page](/forum/27-checkout/890929-conditional-checkbox-for-checkout-coupon-in-checkout-step-page#272933 "hi, I want add checkbox for conditional coupon box , if &quot;yes&quot; show coupon box. I add this code in coupon.php  but dont work. reason : dont execute script tag. attach coupon.php (zip)  please help me thanks")* was created by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")*

hi,
I want add checkbox for conditional coupon box , if "yes" show coupon box.
I add this code in coupon.php Code:

&lt;script type="text/javascript"&gt; $('#checkbox1').change(function(){ if($(this).is(":checked")) $('#hikashop_checkout_coupon').fadeIn('slow'); else $('#hikashop_checkout_coupon').fadeOut('slow'); }); &lt;/script&gt; yes coupon&lt;input class="hikashop_checkout_terms_checkbox" id="checkbox1" type="checkbox" name="hikashop_checkout_terms" value="1" /&gt;

but dont work.
reason : dont execute script tag.
attach coupon.php (zip)
*This attachment is hidden for guests.
Please log in or register to see it.*

please help me
thanks

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDkyOS1jb25kaXRpb25hbC1jaGVja2JveC1mb3ItY2hlY2tvdXQtY291cG9uLWluLWNoZWNrb3V0LXN0ZXAtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 5 months ago [\#272960](#272960) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[conditional checkbox for checkout coupon in checkout step page](/forum/27-checkout/890929-conditional-checkbox-for-checkout-coupon-in-checkout-step-page#272960 "hi, I want add checkbox for conditional coupon box , if &quot;yes&quot; show coupon box. I add this code in coupon.php  but dont work. reason : dont execute script tag. attach coupon.php (zip)  please help me thanks")*

Hi,

The coupon view file is only used if you have the "checkout legacy" setting activated.
If that setting is turned off in the HikaShop configuration, you're using the new checkout and in that case, it's the "show_block_coupon" view file that you need to edit in order to add your custom code.
So please check on that.

The following user(s) said Thank You: [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDkyOS1jb25kaXRpb25hbC1jaGVja2JveC1mb3ItY2hlY2tvdXQtY291cG9uLWluLWNoZWNrb3V0LXN0ZXAtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile") Topic Author
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

9 years 5 months ago [\#273016](#273016) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  Replied by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")* on topic *[conditional checkbox for checkout coupon in checkout step page](/forum/27-checkout/890929-conditional-checkbox-for-checkout-coupon-in-checkout-step-page#273016 "hi, I want add checkbox for conditional coupon box , if &quot;yes&quot; show coupon box. I add this code in coupon.php  but dont work. reason : dont execute script tag. attach coupon.php (zip)  please help me thanks")*

thabnks Nicolas,
but I use hikashop 2.6.3 - this version have not legacy setting ....

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDkyOS1jb25kaXRpb25hbC1jaGVja2JveC1mb3ItY2hlY2tvdXQtY291cG9uLWluLWNoZWNrb3V0LXN0ZXAtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 5 months ago [\#273034](#273034) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[conditional checkbox for checkout coupon in checkout step page](/forum/27-checkout/890929-conditional-checkbox-for-checkout-coupon-in-checkout-step-page#273034 "hi, I want add checkbox for conditional coupon box , if &quot;yes&quot; show coupon box. I add this code in coupon.php  but dont work. reason : dont execute script tag. attach coupon.php (zip)  please help me thanks")*

Hi,

That's why we ask you to provide the version number of HikaShop and a link to the page with the issue when you create a new thread on this forum so that we don't loose time on both ends. So please try to provide that next time.

Then we'll have to check directly on the website because I can't say like that. Please provide a link to the shop and the precise steps necessary to reproduce the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDkyOS1jb25kaXRpb25hbC1jaGVja2JveC1mb3ItY2hlY2tvdXQtY291cG9uLWluLWNoZWNrb3V0LXN0ZXAtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.072 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
