Post by jossoway » Thu Aug 11, 2011 8:59 pm

Hi,

I am using OpenCart v1.5.1 and am testing the Gift Voucher functionality for if a customer uses a gift voucher against a purchase that is worth LESS than the value of the gift voucher.

I have bought a £5 gift voucher, and have been sent the code successfully,
I have bought an item worth less than the gift voucher (which customers might conceivably do) - a test item worth £0.01
I apply the gift voucher and it sets my basket to £0.00 as expected.
When I go to checkout I end up at PayPal with the total being £0.01 so the voucher reduction has been lost.

If I try to apply the gift voucher for an amount larger (so that there is a payment required greater than zero in PayPal) it works fine and applies the deduction.

Can anyone help me and tell me what I am doing wrong? Help!

John

New member

Posts

Joined
Fri May 27, 2011 4:51 pm

Post by DirkZz » Thu Aug 11, 2011 10:33 pm

What happens if the price of the product is like $0.05 or something?
Maybe its a paypal thing that it requires you to pay atleast 1 cent?

New member

Posts

Joined
Thu Jun 16, 2011 3:34 pm

Post by jossoway » Thu Aug 11, 2011 10:42 pm

Yes I am beginning to think PayPal doesn't like zero orders. When I apply the discount to an order and the order is above zero it works fine. Tried with a £30 order discounted to £25 and it worked fine.

Is there any way to make OpenCart bypass the payment process if the order == zero?

As far as i am concerned that'd be a perfect solution, as there's no need to go to PayPal.

New member

Posts

Joined
Fri May 27, 2011 4:51 pm

Post by uksitebuilder » Thu Aug 11, 2011 10:49 pm

see http://forum.opencart.com/viewtopic.php ... 00#p183871

Spent hours last night figuring this one out

User avatar
Guru Member

Posts

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

Post by jossoway » Thu Aug 11, 2011 11:00 pm

Client is only using Paypal so that''s all I need to do? Set PayPal to minimum of 0.01 and activate Free Checkout?

Thanks SO much! Seriously, I was getting very worried about this!

You are a legend.

New member

Posts

Joined
Fri May 27, 2011 4:51 pm

Post by uksitebuilder » Thu Aug 11, 2011 11:03 pm

setting the amount to 0.01 is fine.

I decided to go and edit all my payment files with the change in that link so that incase of a numpty client who forgets to enter an amount it works it out for them automatically.

User avatar
Guru Member

Posts

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

Post by jossoway » Thu Aug 11, 2011 11:18 pm

uksitebuilder wrote:setting the amount to 0.01 is fine.

I decided to go and edit all my payment files with the change in that link so that incase of a numpty client who forgets to enter an amount it works it out for them automatically.
Ah I see so you mean your changes covers if a client doesn't put 0.01 in the PayPal module in the admin system?

New member

Posts

Joined
Fri May 27, 2011 4:51 pm

Post by uksitebuilder » Thu Aug 11, 2011 11:21 pm

exactly - and all other payment modules you wish to apply it to, apart from the free checkout one of course :)

User avatar
Guru Member

Posts

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

Post by jossoway » Thu Aug 11, 2011 11:21 pm

uksitebuilder wrote:exactly
So glad you replied to my thread. Very happy now. :-)

New member

Posts

Joined
Fri May 27, 2011 4:51 pm
Who is online

Users browsing this forum: No registered users and 126 guests