Gift Voucher [SOLVED]
31 posts
• Page 1 of 2 • 1, 2
Gift Voucher [SOLVED]
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?
What's up?
Last edited by creativec on Thu Oct 06, 2011 8:24 pm, edited 1 time in total.
- creativec
- Posts: 13
- Joined: Wed Oct 05, 2011 7:10 pm
Re: Gift Voucher
does it do the same with using a gift voucher ?
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: Gift Voucher
I don't have a gift voucher code to use to try. Is there a way to test with out a voucher code?
- creativec
- Posts: 13
- Joined: Wed Oct 05, 2011 7:10 pm
Re: Gift Voucher
Sorry, poor typing on my part.
I meant can you checkout without entering a voucher ?
I meant can you checkout without entering a voucher ?
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: Gift Voucher
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.
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.
- pitkin2020
- Posts: 91
- Joined: Wed Oct 05, 2011 9:20 pm
Re: Gift Voucher
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.
- creativec
- Posts: 13
- Joined: Wed Oct 05, 2011 7:10 pm
Re: Gift Voucher
I'll pop this on the bug list
to fix, try the following:
open: catalog/controller/checkout/checkout.php
find
change to
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'))) {
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: Gift Voucher
Fixed in SVN - See -> http://code.google.com/p/opencart/source/detail?r=655
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: Gift Voucher
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?
Please use proper English at all times, so that all members may understand you.
-

mberlant - Posts: 676
- Joined: Sun Mar 13, 2011 12:33 pm
Re: Gift Voucher [SOLVED]
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
OK ...the fix offered in this thread worked ... NICE
- antiques
- Posts: 13
- Joined: Mon Oct 18, 2010 4:21 pm
Re: Gift Voucher
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,
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?
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?
- pitkin2020
- Posts: 91
- Joined: Wed Oct 05, 2011 9:20 pm
Re: Gift Voucher [SOLVED]
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?
- gilesytheking
- Posts: 9
- Joined: Mon Aug 15, 2011 9:37 am
Re: Gift Voucher [SOLVED]
When I generated an invoice # and set order to complete I received the coupon. (not sure which generated it)
Come visit the Lord of The Net at http://www.lotnllc.com for all your computing needs! Feel safe with us being that everything is 256-Bit SSL secured and knowing that your dealing with an Intel Gold Partner! This opencart server is also PCI certified.
-

Demon5 - Posts: 200
- Joined: Fri Jun 18, 2010 8:12 pm
- Location: Sacramento, CA
Re: Gift Voucher [SOLVED]
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??
- golfpro
- Posts: 15
- Joined: Thu Nov 17, 2011 10:53 am
Re: Gift Voucher [SOLVED]
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!
-

rocket - Posts: 24
- Joined: Fri Oct 21, 2011 4:09 pm
Re: Gift Voucher
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
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?
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?

- eoistes
- Posts: 7
- Joined: Tue Nov 22, 2011 5:49 am
Re: Gift Voucher [SOLVED]
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
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
- COMPACTER
- Posts: 107
- Joined: Fri Dec 04, 2009 5:02 pm
- Location: bolton, on
Re: Gift Voucher [SOLVED]
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.
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.
-

d7a7z7e7d - Posts: 283
- Joined: Thu Sep 16, 2010 9:51 pm
- Location: USA
Re: Gift Voucher [SOLVED]
Thank you, this works 

- specialtyleds
- Posts: 11
- Joined: Mon Sep 12, 2011 2:00 pm
31 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: Google Feedfetcher and 11 guests















