Post by betterbranding » Thu Mar 20, 2014 8:41 am

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.


Posts

Joined
Thu Mar 20, 2014 8:20 am

Post by MarketInSG » Thu Mar 20, 2014 11:14 pm

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?


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by betterbranding » Fri Mar 21, 2014 12:07 am

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.


Posts

Joined
Thu Mar 20, 2014 8:20 am

Post by olimax » Fri Apr 04, 2014 7:44 pm

you have to go to Admin/Extensions/Order Totals and turn Coupons on

User avatar
New member

Posts

Joined
Thu Dec 22, 2011 5:08 pm
Location - Barcelona & London

Post by sajuk » Wed Nov 27, 2024 8:42 pm

olimax wrote:
Fri Apr 04, 2014 7:44 pm
you have to go to Admin/Extensions/Order Totals and turn Coupons on
Top answer.. had the same issue, fixed my problem,

New member

Posts

Joined
Tue Feb 07, 2017 7:10 pm

Post by by mona » Wed Nov 27, 2024 8:54 pm

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/
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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: No registered users and 1 guest