Post by creativec » Thu Oct 06, 2011 3:14 am

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?
Last edited by creativec on Fri Oct 07, 2011 4:24 am, edited 1 time in total.

New member

Posts

Joined
Thu Oct 06, 2011 3:10 am

Post by uksitebuilder » Thu Oct 06, 2011 4:06 am

does it do the same with using a gift voucher ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by creativec » Thu Oct 06, 2011 4:13 am

I don't have a gift voucher code to use to try. Is there a way to test with out a voucher code?

New member

Posts

Joined
Thu Oct 06, 2011 3:10 am

Post by uksitebuilder » Thu Oct 06, 2011 3:05 pm

Sorry, poor typing on my part.

I meant can you checkout without entering a voucher ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pitkin2020 » Thu Oct 06, 2011 6:54 pm

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.

New member

Posts

Joined
Thu Oct 06, 2011 5:20 am

Post by creativec » Thu Oct 06, 2011 7:46 pm

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.

New member

Posts

Joined
Thu Oct 06, 2011 3:10 am

Post by uksitebuilder » Thu Oct 06, 2011 10:47 pm

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'))) {

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by uksitebuilder » Thu Oct 06, 2011 10:51 pm


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by creativec » Fri Oct 07, 2011 4:21 am

It worked. Thanks a million!!

New member

Posts

Joined
Thu Oct 06, 2011 3:10 am

Post by mberlant » Sat Oct 08, 2011 12:07 am

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.


User avatar
Active Member

Posts

Joined
Sun Mar 13, 2011 8:33 pm

Post by antiques » Thu Oct 20, 2011 10:39 am

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

Newbie

Posts

Joined
Tue Oct 19, 2010 12:21 am

Post by pitkin2020 » Mon Oct 31, 2011 3:55 am

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?

New member

Posts

Joined
Thu Oct 06, 2011 5:20 am

Post by gilesytheking » Fri Nov 11, 2011 8:47 pm

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?

Newbie

Posts

Joined
Mon Aug 15, 2011 5:37 pm

Post by Demon5 » Mon Nov 14, 2011 10:57 am

When I generated an invoice # and set order to complete I received the coupon. (not sure which generated it)

https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by golfpro » Fri Nov 18, 2011 5:36 am

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

Newbie

Posts

Joined
Thu Nov 17, 2011 6:53 pm

Post by rocket » Mon Nov 21, 2011 10:03 pm

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!

User avatar
New member

Posts

Joined
Sat Oct 22, 2011 12:09 am

Post by eoistes » Tue Nov 22, 2011 2:42 pm

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

Newbie

Posts

Joined
Tue Nov 22, 2011 1:49 pm

Post by COMPACTER » Fri Nov 25, 2011 11:00 pm

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

ImageCDM Sales & Services. "Get Connected to What Matters!"


Active Member

Posts

Joined
Sat Dec 05, 2009 1:02 am
Location - bolton, on

Post by d7a7z7e7d » Mon Dec 12, 2011 12:47 pm

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.

Image
OpenCart Extensions, Technical Support & Custom Development | Have I helped you?


User avatar
Active Member

Posts

Joined
Fri Sep 17, 2010 5:51 am
Location - USA

Post by specialtyleds » Thu Jan 05, 2012 9:00 am

Thank you, this works :)

Newbie

Posts

Joined
Mon Sep 12, 2011 10:00 pm
Who is online

Users browsing this forum: No registered users and 101 guests