Page 1 of 1
[1.5]Coupons
Posted: Fri Jun 17, 2011 11:20 pm
by tony2011
I am sorry for asking such a pathetic question but can someone tell me how the coupons get switched on at the checkout? I have enabled coupons through order totals and added it in a geo zone for the uk but nothing appears when you get to the checkout? I am doing something wrong?

Re: Coupons
Posted: Fri Jun 17, 2011 11:22 pm
by Xsecrets
coupons are on the cart page in 1.5.x.
Re: Coupons
Posted: Fri Jun 17, 2011 11:30 pm
by tony2011
I am using opencart 1.5 but I cant see anything nothing is displaying... do you think its because I have it on a usb web server rather than a host? Or that I have an option that they will pay on collection?
Re: Coupons
Posted: Sat Jun 18, 2011 7:51 pm
by tony2011
Can anyone share any light on this please??
Re: Coupons
Posted: Sat Jun 18, 2011 8:00 pm
by tony2011
OK - I think I have figured out that a customer needs to register an account before the coupons can be applied... The next question would be can the coupons be applied at guest checkout?
Re: Coupons
Posted: Sat Jun 18, 2011 9:16 pm
by grgr
No idea what you are up to but the coupon can be applied as a guest and does not need an account. The coupon is applied in the shopping cart. if it is not working for you and you have it locally somehow then I would suggest that there is a problem with the local install.
cart.jpg (42.77 KiB) Viewed 8130 times
Re: [1.5]Coupons
Posted: Tue Jun 21, 2011 1:24 am
by tony2011
I have sent you a PM...
Re: [1.5]Coupons
Posted: Tue Jun 21, 2011 3:46 pm
by ronnieb
for anyone reading this ....
this is a terrible feature of 1.5
as stated the discount coupon / gift voucher is under the checkout/cart - where no one can find it. (it took me ages to find, so customers have no hope)
every checkout button in opencart goes to checkout/checkout so to make this work you need to redirect checkout/checkout to checkout/cart.
Im hoping that at some point gift vouchers /discount coupons will go into the checkout process where it should be.
Ron
Re: [1.5]Coupons
Posted: Tue Jun 21, 2011 7:04 pm
by tony2011
ronnieb wrote:
every checkout button in opencart goes to checkout/checkout so to make this work you need to redirect checkout/checkout to checkout/cart.
Ron
I have managed to redirect all the links except the shopping cart button that sits at the shopping cart tab when you click on the drop down to see if there is any products in the basket. It would be nice to get the other link sorted aswel but I am not entirely bothered as I may decide to get rid of this.
Re: [1.5]Coupons
Posted: Tue Jun 21, 2011 10:07 pm
by ronnieb
I have as well
any button - look for this code
<a href="<?php echo $checkout; ?>
and change it to
<a href="<?php echo $cart; ?>
the header links go like this
Code: Select all
<?php } ?><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist_total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?>
<!--</a><a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a>
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>-->
<a href="<?php echo $cart; ?>"><?php echo $text_checkout; ?></a></div>
note that there is already a cart link in the header - that has been removered and the checkout link altered
hope that helps someone
Ronnie
Re: [1.5]Coupons
Posted: Tue Jan 31, 2012 8:08 pm
by lloydmedley
Thanks ronnieb that has helped! Only thing is I need to edit this button as shown:
Anyone know how to edit that button? I can see it in /catalog/view/theme/default/template/common/cart.tpl but the variable $cart is not defined.
Re: [1.5]Coupons
Posted: Wed Feb 01, 2012 12:29 am
by grgr
Edit: ../catalog/controller/checkout/cart.php
Find (line 480ish - it's the second instance very close to the bottom of the file) :
$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');
Change to checkout/cart.
Re: [1.5]Coupons
Posted: Fri Feb 03, 2012 11:16 pm
by jussi
grgr wrote:Edit: ../catalog/controller/checkout/cart.php
Find (line 480ish - it's the second instance very close to the bottom of the file) :
$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');
Change to checkout/cart.
Hi,
for some reason that doesn´t work for me. Always gives me checkout/checkout, even after changes. Any suggestions? I´m using 1.5.1.3.1
Re: [1.5]Coupons
Posted: Fri Mar 09, 2012 5:18 am
by lovol
I too had to search google to find where I put the coupons.
It should be in the checkout steps, but then that's one more step and looks like a lot of steps already.. hmm..
Re: [1.5]Coupons
Posted: Mon Feb 11, 2013 3:58 am
by Sebcart
jussi wrote:grgr wrote:Edit: ../catalog/controller/checkout/cart.php
Find (line 480ish - it's the second instance very close to the bottom of the file) :
$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');
Change to checkout/cart.
Hi,
for some reason that doesn´t work for me. Always gives me checkout/checkout, even after changes. Any suggestions? I´m using 1.5.1.3.1
Yes, had the same problem and found you should do this change in catalog/controller/module/cart.php - not the other cart.php