Page 1 of 2
Gift Voucher [SOLVED]
Posted: Thu Oct 06, 2011 3:14 am
by creativec
I tried to test the gift voucher and it went as far as the shopping cart, but when checkout is selected the page just refreshes and goes no where.
What's up?
Re: Gift Voucher
Posted: Thu Oct 06, 2011 4:06 am
by uksitebuilder
does it do the same with using a gift voucher ?
Re: Gift Voucher
Posted: Thu Oct 06, 2011 4:13 am
by creativec
I don't have a gift voucher code to use to try. Is there a way to test with out a voucher code?
Re: Gift Voucher
Posted: Thu Oct 06, 2011 3:05 pm
by uksitebuilder
Sorry, poor typing on my part.
I meant can you checkout without entering a voucher ?
Re: Gift Voucher
Posted: Thu Oct 06, 2011 6:54 pm
by pitkin2020
I'm having exactly the same issue, here is what i'm doing (this is a new install totally unmodded BTW)
From the front end - Basically if i click "gift vouchers" under EXTRA in the footer it takes me to purchase a gift voucher where i can fill in the fields, click to agree T&C's and it adds it to the cart. (Top of cart shows 0.00kg). If i click chcekout nothing happens it just remains in the cart.
Now if i add another product, say canon eos 5D I can proceed to the checkout fine and it'll let me purchase the canon and the gift vouchers. It will not let me just purchase gift vouchers though.
Now I did buy a voucher by adding another product so I have a voucher code to try. If I add gift vouchers again to the cart I can use the gift voucher code against the purchase but again I can not proceed to checkout.
I have also noticed that coupon codes can not be used against gift vouchers, so the default code (already installed) 2222 for 10% discount won't appear if just gift vouchers are in the cart. If I add another product the coupon code will appear but it will only deduct 10% from the item amount, not including the gift voucher.
Re: Gift Voucher
Posted: Thu Oct 06, 2011 7:46 pm
by creativec
pitkin2020 wrote:
From the front end - Basically if i click "gift vouchers" under EXTRA in the footer it takes me to purchase a gift voucher where i can fill in the fields, click to agree T&C's and it adds it to the cart. (Top of cart shows 0.00kg). If i click chcekout nothing happens it just remains in the cart.
This is what is happening for me. Would be great to have a fix so people can purchase these for others especially with holidays coming up.
Re: Gift Voucher
Posted: Thu Oct 06, 2011 10:47 pm
by uksitebuilder
I'll pop this on the bug list
to fix, try the following:
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'))) {
change to
Code: Select all
if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
Re: Gift Voucher
Posted: Thu Oct 06, 2011 10:51 pm
by uksitebuilder
Re: Gift Voucher
Posted: Fri Oct 07, 2011 4:21 am
by creativec
It worked. Thanks a million!!
Re: Gift Voucher
Posted: Sat Oct 08, 2011 12:07 am
by mberlant
pitkin2020 wrote:I have also noticed that coupon codes can not be used against gift vouchers, so the default code (already installed) 2222 for 10% discount won't appear if just gift vouchers are in the cart. If I add another product the coupon code will appear but it will only deduct 10% from the item amount, not including the gift voucher.
This is proper operation. It is natural not to discount the purchase of a gift voucher, as this would allow a customer to come back and use that voucher to purchase his next voucher. If you were to allow that you could end up selling your merchandise for well under your cost. For example:
Purchase the first $100 voucher for $90 (using a 10% coupon). You've paid $90 and have $100.
Use that voucher to purchase a $111.11 voucher for $100 (using the same 10% coupon from a different customer account). You've still paid only $90, but now have $111.11.
Use that voucher to purchase a $123.46 voucher for $111.11.
Use that voucher to purchase a $137.17 voucher for $123.46.
Use that voucher to purchase a $152.42 voucher for $137.17.
Use that voucher to purchase a $169.35 voucher for $152.42.
Use that voucher to purchase a $188.17 voucher for $169.35.
Use that voucher to purchase a $209.08 voucher for $188.17.
Use that voucher to purchase a $232.31 voucher for $209.08.
Use that voucher to purchase a $258.12 voucher for $232.31.
Use that voucher to purchase a $286.80 voucher for $258.12.
Use that voucher to purchase a $318.66 voucher for $286.80.
Use that voucher to purchase a $354.07 voucher for $318.66.
Use that voucher to purchase a $393.41 voucher for $354.07.
Use that voucher to purchase a $437.12 voucher for $393.41.
Use that voucher to purchase a $485.69 voucher for $437.12.
Use that voucher to purchase a $539.66 voucher for $485.69.
Use that voucher to purchase a $599.62 voucher for $539.66.
Use that voucher to purchase a $666.25 voucher for $599.62.
Use that voucher to purchase a $740.27 voucher for $666.25.
Use that voucher to purchase a $822.53 voucher for $740.27.
Use that voucher to purchase a $913.92 voucher for $822.53.
Use that voucher to purchase a $1,015.46 voucher for $913.92.
Give your family a thousand dollars worth of gifts for only $90.
How many times can your store afford to accommodate that?
Re: Gift Voucher [SOLVED]
Posted: Thu Oct 20, 2011 10:39 am
by antiques
I am having the same problem ..voucher purchase goes to cart but that's all. It won't go any further.
OK ...the fix offered in this thread worked ... NICE
Re: Gift Voucher
Posted: Mon Oct 31, 2011 3:55 am
by pitkin2020
ok finally got around to redoing this, I have made the change with the ! and I can now succesfully add and pay for just gift vouchers, but I now have another slight problem with this lol.
Ok so i ordered a £25 gift voucher, received this email for the order,
Code: Select all
Notice: Undefined variable: invoice_no in /home/content/26/7445626/html/savvysigns/catalog/view/theme/default-black/template/mail/order.tpl on line 96 Order ID: 1
Date Added: 30/10/2011
Payment Method: Cash On Delivery
I still haven't received the email for the gift voucher either?? I have set the order to complete aswell from the dashboard end.
EDIT, I did a second order for a gift voucher, i still got the same error in the email but i did receive the voucher code for the 2nd order but not the 1st?
Re: Gift Voucher [SOLVED]
Posted: Fri Nov 11, 2011 8:47 pm
by gilesytheking
Im having the same problem, after updating from 1.5.1 to 1.5.1.3 this problem has cropped up. I can not purchase a gift voucher on its own. Is there a fix for this?
Re: Gift Voucher [SOLVED]
Posted: Mon Nov 14, 2011 10:57 am
by Demon5
When I generated an invoice # and set order to complete I received the coupon. (not sure which generated it)
Re: Gift Voucher [SOLVED]
Posted: Fri Nov 18, 2011 5:36 am
by golfpro
Demon5 wrote:When I generated an invoice # and set order to complete I received the coupon. (not sure which generated it)
now works, but the voucher code provided once inout into the cart is null:
Warning: Gift Voucher is either invalid or the balance has been used up!
any fixes at all??
Re: Gift Voucher [SOLVED]
Posted: Mon Nov 21, 2011 10:03 pm
by rocket
Same as above, its now possible to buy a Voucher but I get the same error when trying to use it!
Warning: Gift Voucher is either invalid or the balance has been used up!
Re: Gift Voucher
Posted: Tue Nov 22, 2011 2:42 pm
by eoistes
I'm totally new to Open Cart (version 1.5.1.3) as of a couple of days ago and I was very happy to find this thread (my OC version is 1.5.1.3) and uksitebuilder's solution of
uksitebuilder wrote:
change to
Code: Select all
if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
That got me to the checkout/checkout page OK. Unfortunately, that page is caught in an endless loop of redirecting to itself once it loads. When I load a product (non-voucher) into the cart, this doesn't happen and I can go on to the next page.
Any ideas?

Re: Gift Voucher [SOLVED]
Posted: Fri Nov 25, 2011 11:00 pm
by COMPACTER
I am now having this same problem i can add the voucher and pay for it, however when the customer tries and uses the voucher i get the same error: Warning: Gift Voucher is either invalid or the balance has been used up!
i am using the latest version upgrade from 1.4.8b and upgraded by Q.
Any ideas as to how to fix this??
PLEASE HELP!! lol
Re: Gift Voucher [SOLVED]
Posted: Mon Dec 12, 2011 12:47 pm
by d7a7z7e7d
To those of you having the following error:
Warning: Gift Voucher is either invalid or the balance has been used up!
The problem is likely because the status of the order that purchased the voucher has not been set to Complete. The system checks to make sure that the order that bought the voucher has been completed before allowing the voucher to be redeemed. Setting my order status to "Complete" solved this for me. Of course, if you have modified what your default complete status is, you must set the status to the modified one you selected instead.
Re: Gift Voucher [SOLVED]
Posted: Thu Jan 05, 2012 9:00 am
by specialtyleds
Thank you, this works
