Hi, can anyone help me understand why my Discount/Coupon is not showing in the shopping cart or checkout. the Coupon has been set up under Sales > Coupons with a status of "enabled". The coupon extension is also enabled under the Order Totals Extension.
I can see the html code that contains the functionality below:
<div style="display:none">
<h2>What would you like to do next?</h2>
<div class="content">
<p>Choose if you have a discount code or reward points you want to use or would like to estimate your delivery cost.</p>
<table class="radio">
<tbody><tr class="highlight">
<td> <input type="radio" id="use_coupon" value="coupon" name="next">
</td>
<td><label for="use_coupon">Use Coupon Code</label></td>
</tr>
<tr class="highlight">
<td> <input type="radio" id="use_voucher" value="voucher" name="next">
</td>
<td><label for="use_voucher">Use Gift Voucher</label></td>
</tr>
</tbody></table>
</div>
</div>
Does anyone know why is the div style is "display:none"?
Thanks in advance for any help.
I can see the html code that contains the functionality below:
<div style="display:none">
<h2>What would you like to do next?</h2>
<div class="content">
<p>Choose if you have a discount code or reward points you want to use or would like to estimate your delivery cost.</p>
<table class="radio">
<tbody><tr class="highlight">
<td> <input type="radio" id="use_coupon" value="coupon" name="next">
</td>
<td><label for="use_coupon">Use Coupon Code</label></td>
</tr>
<tr class="highlight">
<td> <input type="radio" id="use_voucher" value="voucher" name="next">
</td>
<td><label for="use_voucher">Use Gift Voucher</label></td>
</tr>
</tbody></table>
</div>
</div>
Does anyone know why is the div style is "display:none"?
Thanks in advance for any help.
Well, by default, you're supposed to click the radio selection for it to trigger a slide out to show the fields. Have you ensured you have clicked those radio buttons?
Thanks, ya I did know that, the problem is the radio selections are not showing because of the <div style="display:none">. I wound up having to go to this file catalog/view/theme/your_current_theme/template/checkout/cart.tpl and changed this line: <div id="coupon" class="content" style="display: <?php echo ($next == 'coupon' ? 'block' : 'none'); ?>;"> to <div id="coupon" class="content" style="display: block"> it worked but it seems like a bit of a hack. I wish I knew why the radio buttons or the coupon field is being hidden by default.
Yes, Top answer.
@ sajuk +1 to you for searching and finding the top answer !
Opencart Documentation is also worth a read.
https://docs.opencart.com/en-gb/getting-started/
How to set up Coupons
https://docs.opencart.com/en-gb/marketing/coupon/
@ sajuk +1 to you for searching and finding the top answer !
Opencart Documentation is also worth a read.
https://docs.opencart.com/en-gb/getting-started/
How to set up Coupons
https://docs.opencart.com/en-gb/marketing/coupon/
Shopping cart
To enable the use of Coupons in the store front, the coupon extension must be enabled by you under the Order Totals extension.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Who is online
Users browsing this forum: No registered users and 1 guest