Community Forums

[vQmod] Paypal Standard improvements [1.5.1.1]

Put any free vQmod scripts here.
vQmod details

[vQmod] Paypal Standard improvements [1.5.1.1]

Postby JNeuhoff » Thu Aug 11, 2011 12:40 pm

This modification of the Paypal payment module makes sure that the discount (reward+credit+coupon+voucher), shipping, handling, low-order-fee and tax are passed on to Paypal as separate entries and then shown as such on the Paypal gateway. If the discount is not less than the sub-total then only the grand total is passed on to Paypal with the store-name and invoice number as the item name.
Attachments
bugfixes-pp-standard.xml.zip
Paypal Standard payment module fixes for Opencart 1.5.1.1
(1.44 KiB) Downloaded 304 times
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Qphoria » Thu Aug 11, 2011 1:29 pm

Great. if this works we should go ahead and add it to the core file
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Thu Aug 11, 2011 10:34 pm

Thanks
I will take it for a spin.
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 2:11 am

Note: testing coupons only. not tax, shipping or gv
in Paypal it shows this:
Code: Select all
Your order summary
DescriptionsAmount

            Product5 $54.95
            Item number: product_5
            Item price: $54.95
            Options: Website: test.com
            Quantity: 1
    Discount -$53.95

    Item total $1.00

    Total $1.00 USD


seems working for coupons ;)
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 2:41 am

test2
i added gv, tax, shipping to the coupon and this is what i got in step 6 before it lunches to paypal:

Price Total

$54.95 $54.95
Voucher(121212): $0.00 <----- it should show $2.00. maybe it was ignored since a coupon applied
Sub-Total: $54.95
Flat Rate: $1.00
Coupon(crafty): $-1.95
VAT 17.5%: $9.45 <--------not showing in paypal
Total: $63.45 <--------Total is different in paypal


in paypal i got this:

Your order summary
DescriptionsAmount
Product5 $54.95

Item number: product_5
Item price: $54.95
Options: Website: test.com
Quantity: 1
Flat Rate Item price: $1.00
Quantity: 1
Discount -$1.95

Item total $54.00

Total $54.00 USD
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby JNeuhoff » Fri Aug 12, 2011 9:46 am

Strange, I am unable to reproduce your error. I just tested it with both a voucher and a coupon, and 2 taxable products and taxable shipping costs, and it worked just fine. Both discounts were applied as expected. And the tax showed up in Paypal as expected (I am using the 'tax_cart' variable for this). Do you have a URL where I can see this error and try it out? I'd like to see it in Firefox's Firebug, especially the exact hidden variables list before its sent off to Paypal.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 1:18 pm

i tested it on a 2nd store and here is the results. 100% working correctly
Attachments
pp_paypal_standerd.png
pp_paypal_standerd.png (59.42 KiB) Viewed 2710 times
Last edited by Maansy on Fri Aug 12, 2011 4:36 pm, edited 1 time in total.
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 1:42 pm

and here when i tested it on the 1st store
notice that in store GV is 0.00. It should be -$2.00
tax is not transferred to paypal.
Attachments
pp_paypal_standerd2.png
pp_paypal_standerd2.png (21.4 KiB) Viewed 2707 times
Last edited by Maansy on Fri Aug 12, 2011 4:38 pm, edited 4 times in total.
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 1:45 pm

now which files are involved in here so i can fix the 1st store?
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby JNeuhoff » Fri Aug 12, 2011 3:05 pm

You are not providing enough details of your error, I am unable to reproduce your error. Judging by the screenshots, your are not using a standard Opencart 1.5.1.1 checkout.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 4:30 pm

J
The 1st screenshot is ok. Everything was meant to transit, went fine. All data was sent to paypal.
The 2nd screenshot is another store. Seems like gv didn't add to total. In paypal, tax is missing.

My question is, which files involve in the whole checkout process so I can backup the store with these files?

Another thing. in the back end, I know there are 14 order status. I only see 11 in the drop down.

Thanks
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby JNeuhoff » Fri Aug 12, 2011 4:39 pm

My vQmod XML file modifies the Opencart core files

catalog/controller/payment/pp_standard.php
catalog/view/theme/default/template/payment/pp_standard.tpl

As regards your second screenshot: Can you reproduce the same error when you use the standard Opencart 1.5.1.1 web theme?
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby uksitebuilder » Fri Aug 12, 2011 6:27 pm

Maansy wrote:i tested it on a 2nd store and here is the results. 100% working correctly


On the post above with the black background


the tax is out by 0.01
User avatar
uksitebuilder
 
Posts: 5602
Joined: Thu Jun 09, 2011 3:37 pm
Location: United Kindgom

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 6:29 pm

uksitebuilder wrote:
Maansy wrote:i tested it on a 2nd store and here is the results. 100% working correctly


On the post above with the black background


the tax is out by 0.01

yep i noticed that. is it paypal or store effecting that. 0.01 is not that big of a deal IMHO
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 8:17 pm

here you go. i did 2 tests with and with out your mod in the store that had an issue with it before.

this mod works fine in one store, but for some reason it doesnt work correctly on another store.
now i cant tell why GV do show the correct amount instead it shows 0.00
it says "Success: Your gift voucher discount has been applied!" after i apply the GV but it still shows $0.00.
knowing that after i disable tax and shipping (in product, store and module) now GV shows fine and your mod works again. hmmmmm
my head is spinning. :crazy:
Attachments
pp_paypal_standerd4.png
pp_paypal_standerd4.png (105.49 KiB) Viewed 2741 times
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby JNeuhoff » Fri Aug 12, 2011 9:58 pm

Below is what I get with bugfixes-pp-standard.xml. As I said, I am unable to reproduce your error unless you can give me access to your store URL so I can replicate your error.
Attachments
screenshot-paypal.png
screenshot-paypal.png (4.9 KiB) Viewed 2732 times
screenshot-confirm-order-gbp1.png
screenshot-confirm-order-gbp1.png (8.61 KiB) Viewed 2732 times
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby Maansy » Fri Aug 12, 2011 11:56 pm

i backed up all the pp_standard files front/back end. now its working fine :)
that's weird cuz i never altered any of these files before :ponder:

now this fix should be added to the core :)
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
User avatar
Maansy
 
Posts: 930
Joined: Wed Jun 23, 2010 10:04 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby CanadaPleco » Fri Sep 23, 2011 6:40 pm

The fixes are not working for me. Always brings up paypal screen with $0.00 from different computers and what not as well. I have re-uploaded all the core paypal files and still nothing.
Screen shot 2011-09-23 at 2.36.20 PM.png
Screen shot 2011-09-23 at 2.36.20 PM.png (45.15 KiB) Viewed 2536 times
CanadaPleco
 
Posts: 22
Joined: Fri Aug 19, 2011 5:06 pm

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby markman-b » Tue Oct 11, 2011 1:38 pm

Thanx for the vQmod.

Any idea if you can fix this problem: http://forum.opencart.com/viewtopic.php?f=113&t=40181

by moderating your vQmod?
OC version 1.5.4.1
markman-b
 
Posts: 233
Joined: Wed Aug 24, 2011 11:13 am

Re: [vQmod] Paypal Standard improvements [1.5.1.1]

Postby JNeuhoff » Tue Oct 11, 2011 2:26 pm

markman-b wrote:Thanx for the vQmod.

Any idea if you can fix this problem: http://forum.opencart.com/viewtopic.php?f=113&t=40181

by moderating your vQmod?


There are a number of rounding issues with OpenCart, I reported a similar bug here, but it was never picked by Daniel or Q, as far I know the rounding bug is still there, might be worth testing it again in 1.5.1.3.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

Next

Return to vQmods

Who is online

Users browsing this forum: No registered users and 4 guests

Hosted by Arvixe Web Hosting