Page 1 of 1

Gift Voucher stuck on cart

Posted: Mon Jan 09, 2012 4:06 pm
by chrisdevelop
Hi all

I am launching my site today, but hit a major snag. I am using 1.5.3 with Practicwide template.

On the gift voucher, i can fill in the details, and hen go to checkout, but when i hit continue, nothing happens it just stays on that page.

I have checked everywhere i can think of, but i still cannot get this to go through, can anyone help to solve this last problem please.

Re: Gift Voucher stuck on cart

Posted: Mon Jan 09, 2012 7:45 pm
by i2Paq
Always include a link if you are having a store front issue!

Also a code to test would help.

Re: Gift Voucher stuck on cart

Posted: Mon Jan 09, 2012 8:05 pm
by chrisdevelop
www.surecalltelecoms.co.uk

http://www.surecalltelecoms.co.uk/checkout/voucher

I have not generated any codes as I dont know how

Re: Gift Voucher stuck on cart

Posted: Fri Jan 13, 2012 11:03 pm
by robjmccarthy
Did you get an answer to this? I have this problem too??

(site not yet live like above though)

Re: Gift Voucher stuck on cart

Posted: Mon Jan 16, 2012 4:37 pm
by robjmccarthy
Sorry to bump this up, but still not sorted :(

Re: Gift Voucher stuck on cart

Posted: Mon Jan 16, 2012 4:42 pm
by chrisdevelop
thats ok but i have had no help on this and this is now urgent

Re: Gift Voucher stuck on cart

Posted: Thu Jan 19, 2012 5:59 pm
by robjmccarthy
BUMP again, sorry guys but it seems a few of us need help with this now :)

Re: Gift Voucher stuck on cart

Posted: Thu Jan 19, 2012 7:54 pm
by i2Paq
robjmccarthy wrote:BUMP again, sorry guys but it seems a few of us need help with this now :)
Did you use our FREE search on this?

What did you find but not worked?

Re: Gift Voucher stuck on cart

Posted: Thu Jan 19, 2012 8:32 pm
by chrisdevelop
I have not found anything to solve this, one of the important parts on the site, and no ones bothered to find an answer so whats the point in having that fuction

Re: Gift Voucher stuck on cart

Posted: Mon Jan 23, 2012 4:56 am
by d7a7z7e7d
This is a known bug with the current version of OpenCart.

Do the following to fix:

Open catalog/controller/checkout/checkout.php find

Code: Select all

      if ((!$this->cart->hasProducts() && !empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
replace with:

Code: Select all

      if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
That should do the trick!

Oh and be sure to check out my Improved Gift Vouchers extension :)

http://www.opencartworld.com/improved-gift-vouchers

Re: Gift Voucher stuck on cart

Posted: Mon Jan 23, 2012 3:20 pm
by Maansy
d7a7z7e7d wrote:This is a known bug with the current version of OpenCart.

Do the following to fix:

Open catalog/controller/checkout/checkout.php find

Code: Select all

      if ((!$this->cart->hasProducts() && !empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
replace with:

Code: Select all

      if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
That should do the trick!

Oh and be sure to check out my Improved Gift Vouchers extension :)

http://www.opencartworld.com/improved-gift-vouchers
Thanks mate for the fix.
And your improved gift vouchers extension is indeed worth it. Loving it :)

Re: Gift Voucher stuck on cart

Posted: Mon Jan 30, 2012 8:08 am
by 2dawgs
Thank you - just found this problem on our site, too, and this fixed it right up.