X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   PayPal standard - show product items (https://forum.x-cart.com/showthread.php?t=57734)

qualiteam 01-25-2011 11:21 PM

PayPal standard - show product items
 
3 Attachment(s)
A quick mod to show the ordered items on PayPal side.

Please check these posts:
X-Cart 4.5.x. (Updated)
X-Cart 4.4.x. (Updated)
X-Cart 4.3.x. (Updated)

X-Cart 4.4.1 users should also apply the DIFF.patch.txt

Note: Gift certificate support has been added; incorrect order total in certain tax configurations issue has been fixed.

Mdennison 02-18-2011 10:18 AM

Re: PayPal standard - show product items
 
Can this be configured for 4.2.x?

Sunray Sales 02-18-2011 11:22 AM

Re: PayPal standard - show product items
 
Can you give an image as to how it will work with a Quantity of 2 or more?

I understand that you can only pass one number to PayPal, but does that mean the Total Cost shows the correct values in the end? Even though the quantity shows 1?

After reading the thread regarding the quantity issue, I still find it quite confusing.

If I order 2x SKU1 item price is $10.25, total should be $20.50
Then in paypal what will show up?

Sorry for any misunderstanding

cflsystems 02-18-2011 11:37 AM

Re: PayPal standard - show product items
 
http://forum.x-cart.com/showpost.php?p=310845&postcount=31

qualiteam 02-24-2011 06:43 AM

Re: PayPal standard - show product items
 
The problem appears in certain tax configurations (e.g. when the price includes taxes etc.)...

qualiteam 03-04-2011 05:26 AM

Re: PayPal standard - show product items
 
I've re-checked the PayPal documentation.

I have found an option that allows passing cart total discounts.
So, I've updated the patch to use cart total discounts instead of the items based. It allows to avoid devision and rounding issues.

I've updated the patch for 4.4.x version.

cflsystems 03-04-2011 05:32 AM

Re: PayPal standard - show product items
 
Alex is this going to find its way to 4.4.3 as default behaviour for PayPal payments? Hope so

qualiteam 03-04-2011 06:01 AM

Re: PayPal standard - show product items
 
Updated patch for 4.3.x version.

SID357 03-05-2011 05:47 PM

Re: PayPal standard - show product items
 
So, this works with a Quantity of 2 or more now?

qualiteam 03-06-2011 08:19 PM

Re: PayPal standard - show product items
 
Yep, it has no limitations now.

http://forum.x-cart.com/attachment.php?attachmentid=2463&d=1299248295
http://forum.x-cart.com/attachment.php?attachmentid=2464&d=1299248300

SID357 03-06-2011 09:12 PM

Re: PayPal standard - show product items
 
Alex, you rule bro!

Wish I could clone you. :)

Freakmode 03-10-2011 12:29 AM

Re: PayPal standard - show product items
 
I installed the 4.4 version yesterday and although it does send over the cart contents descriptions it created us no end of problems.

All Paypal orders were marked as "Not Finished" although the customer had paid. The totals shown in Payal added Tax on again to inclusive tax pricing and shipping was charged on all orders even free shipping ones.

qualiteam 03-10-2011 02:12 AM

Re: PayPal standard - show product items
 
Seems quite strange. As the modification is not changing the order status logic in any case.
Could you please provide a screenshot of the tax configuration page?

Freakmode 03-10-2011 02:36 AM

Re: PayPal standard - show product items
 
1 Attachment(s)
Sure - here you go

qualiteam 03-10-2011 02:51 AM

Re: PayPal standard - show product items
 
1 Attachment(s)
Thank you. Just tested with the same configuration, but got the correct info on PayPal...

The only thing I noticed is that Gift wrap cost was always included into the Shipping and handling section on PayPal (4.4.x). So, I've fixed that and updated the patch.

Freakmode 03-16-2011 03:48 AM

Re: PayPal standard - show product items
 
Thanks I'll give it another go then

Freakmode 03-29-2011 06:01 AM

Re: PayPal standard - show product items
 
Still adding shipping charges and tax at Paypal side.

Removed and won't be trying again as it messes up the customers payments.

qualiteam 03-30-2011 03:11 AM

Re: PayPal standard - show product items
 
I'm sorry, but I have not manage to reproduce the issue.

Probably it is specific to your installation/configuration.

medrg817 03-30-2011 09:04 AM

Re: PayPal standard - show product items
 
I implemented this mod yesterday, and now no orders are getting sent to Paypal. The error is Fatal error: Call to undefined function func_paypal_convert_to_BasicAmountType() in /hermes/bosweb/web107/b1072/ipg.alamocitypepperprodu/bhut-jolokia/payment/ps_paypal.php on line 265

I can't find where that function is defined. Anyone know?

qualiteam 03-31-2011 02:34 AM

Re: PayPal standard - show product items
 
1 Attachment(s)
As far as I can see you use 4.4.1.

Please apply the attached patch.

medrg817 04-01-2011 09:45 AM

Re: PayPal standard - show product items
 
Thanks. I applied the DIFF.patch.txt and that works. That will really help with order fullfillment. Unfortunately, I am also having the zero shipping charges sent to paypal, so customers are not paying for shipping. Is there a fix for the 0 shipping charges showing up on checkout for the shipping method and then being sent to paypal?

hooter 04-01-2011 12:53 PM

Re: PayPal standard - show product items
 
Quote:

Originally Posted by qualiteam
A quick mod to show the ordered items on PayPal side.

Please check these posts:
X-Cart 4.4.x. (Updated)
X-Cart 4.3.x. (Updated)

X-Cart 4.4.1 users should also apply the DIFF.patch.txt

Hi Alex,

Can you please check your 4.3.x patch? We have a client who uses a membership assigned discount. While in xcart, customer sees proper discounted price/subtotals but as soon as they reach PayPal Standard, PayPal is only seeing the full non-discounted total. I tried forcing transaction through just to see what would happen and as expected it results in a "Failed" transaction total mismatch error.

Addendum: user xcart version is 4.3.2 and the applied patch does work as far as showing line items now on PayPal side, but in the case of orders with discounts, discounted total/subtoal is not being passed correctly. Normal non-discounted orders work fine.

qualiteam 04-05-2011 03:53 AM

Re: PayPal standard - show product items
 
2 Attachment(s)
I've checked the mod in 4.3.2. As far as I can see the total is correct. Please have a look at the attached screenshots.

If problem persists, please provide screenshots of the discounts, paypal and x-cart checkout pages (PM).

hooter 04-11-2011 09:16 AM

Re: PayPal standard - show product items
 
Quote:

Originally Posted by qualiteam
If problem persists, please provide screenshots of the discounts, paypal and x-cart checkout pages (PM).

Kudos to Alex for his perseverance, timely and accurate communication, and his extensive knowledge of the PayPal interface in ultimately resolving and updating his "line item" patch 8)

I can only speak for our client's particular scenario: if you use xcart 4.3.2 and have an xcart checkout order where shipping and/or taxes are not applied, but a discount is, and the payment method is PayPal Standard, his latest update will resolve the issue of discount amount not being recognized/applied by PayPal.

ScrapOrchard 04-17-2011 06:40 PM

Re: PayPal standard - show product items
 
I swore I had read a thread somewhere about how to add the product image to the PayPal invoice, but I must have been hallucinating.. is this possible?

qualiteam 04-17-2011 09:19 PM

Re: PayPal standard - show product items
 
I'm afraid it is not possible. At least, I have not found anything like that in PayPal integration documentation.

ScrapOrchard 04-19-2011 09:28 PM

Re: PayPal standard - show product items
 
Thanks, Alex. I must have been imagining it!

medrg817 06-09-2011 03:25 PM

Re: PayPal standard - show product items
 
I love this mod, except I am getting 0.00 sent to Paypal as a shipping charge. If I take out the changes to payment/ps_paypal.php, the total cost including shipping is sent to paypal. Then when I put the changes in to payment/ps_paypal.php the total cost does not include shipping.

So I have to choose a) see line items in Paypal but no shipping charged or b) no line items but shipping cost sent and charged.

Am I missing something?

lymwuwu 07-30-2011 09:24 PM

Re: PayPal standard - show product items
 
Hi,

Would this mod work for X-Cart 4.1.12?
If not, could this patch be modified for X-Cart 4.1.12?

Thanks in advance!




Larry
------
X-Cart 4.1.12

lymwuwu 08-07-2011 08:47 PM

Re: PayPal standard - show product items
 
So, am I out of luck for a free patch for 4.1.12?:(


Quote:

Originally Posted by lymwuwu
Hi,

Would this mod work for X-Cart 4.1.12?
If not, could this patch be modified for X-Cart 4.1.12?

Thanks in advance!




Larry
------
X-Cart 4.1.12


qualiteam 08-11-2011 02:19 AM

Re: PayPal standard - show product items
 
There is no patch for 4.1.x or earlier versions, sorry. But I suppose it can be back ported.

Check the 4.3.x patch it is more close to 4.1.x. code.

cedaly1968 10-25-2011 10:37 AM

Re: PayPal standard - show product items
 
is this pat part of 4.4 or do I need to load it? I have no order details showing up in PayPal. I do collect taxes - does that matter?

qualiteam 10-25-2011 10:32 PM

Re: PayPal standard - show product items
 
No, this is a standalone patch. It is not part of 4.4.4.

qwerty 12-19-2011 09:32 AM

Re: PayPal standard - show product items
 
hi didnt work here now when a customer checks out paypal says error detected shopping cart empty any way of changing back to original

www.easyprinterink4u.co.uk

tgr 05-03-2012 12:38 PM

Re: PayPal standard - show product items
 
Hi, When applying the patch in xcart gold version 4.4.5 on step 1 of 2 I am getting a "Could not patch" status for the payments/ps_paypal.php file. Do I need to reset the file permissions to apply this patch? If so, what would it be set at? Thanks for your help.

cflsystems 05-03-2012 12:39 PM

Re: PayPal standard - show product items
 
http://help.x-cart.com/index.php?title=X-Cart:Applying_Patches
http://help.x-cart.com/index.php?title=X-Cart:To_apply_a_patch_manually

Pyro 09-23-2012 02:49 AM

Re: PayPal standard - show product items
 
Quote:

Originally Posted by qualiteam
Updated patch for 4.3.x version.



Is there any plan for an update to 4.5.2?


Thanks

qualiteam 09-23-2012 10:37 PM

Re: PayPal standard - show product items
 
I'll update the patch and create one for 4.5.2 till the end of this week.

Pyro 09-23-2012 11:17 PM

Re: PayPal standard - show product items
 
Quote:

Originally Posted by qualiteam
I'll update the patch and create one for 4.5.2 till the end of this week.



I actually just manually patched with the 4.4.x version.


I spent the last 30 minutes running tests and from what I can tell, it seems to be working.


From what you know, is there a chance of some differences that I might not be seeing?


Thanks!

qualiteam 09-27-2012 10:00 PM

Re: PayPal standard - show product items
 
1 Attachment(s)
I've created a patch for 4.5.x version.

I'm attaching it here.


All times are GMT -8. The time now is 10:57 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.