If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Done v1.5.0] PayPal (IPN) shows attribute instead of product name

[Done v1.5.0] PayPal (IPN) shows attribute instead of product name

Locked

Started by forensicdev on 15 Aug 2010, 6:58 AM · Views: 2,689

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
15 Aug 2010, 6:58 AM
#1
forensicdev avatar

forensicdev

New Zenner

Join Date:
Aug 2010
Posts:
3
Plugin Contributions:
0

Post #1 by forensicdev

Newbie question, so please be kind. :unsure:

Setup: PayPal (IPN) is only payment method that is activated and configured based on the instructions in ZenCart. Provided the "business ID", PDT token, etc. and set "Detaile Line Items in Cart" to true.

When I tested the PayPal IPN without an attribute, PayPal successfully showed the product name. Then I added an attribute (text field, required) to the product. PayPal now shows the attribute field name and its value, instead of the product name.

Any thoughts how I can "force" PayPal to display the product name again? I can't remove the required attribute as I need to capture information pertaining to the order.

Help is much appreciated.

  • M

ZenCart: v1.3.9e
OS: Linux
Host: GoDaddy.com
Brand new install
No addons, no customization done.

15 Aug 2010, 7:07 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

I'm not sure I understand fully, since the way it's designed is to show the product name.

But, the IPN module is not the recommended choice.
Express Checkout is likely to provide much better results. It's essentially the same thing, but more reliable. Same options for the customer. Same fees. Just better. I suggest you switch.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Aug 2010, 7:44 AM
#3
forensicdev avatar

forensicdev

New Zenner

Join Date:
Aug 2010
Posts:
3
Plugin Contributions:
0

Post #3 by forensicdev

Thank you for the prompt reply. Indeed, the switch worked. Since I am a GoDaddy customer, I had to switch off the CURL proxy per a different article you posted to the board. Just a bummer I loose all the features listed in that post.

Again, thanks for the help.

  • M
15 Aug 2010, 7:57 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

I'm not sure which features you're talking about. Switching to Express Checkout doesn't lose you anything.

Now, if you're talking about GoDaddy causing you to lose things such as reliable hosting, then you're definitely on to something. If your GoDaddy services are still in refundable grace period, I suggest you consider alternate hosting if you want to have a reliable speedy store.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Aug 2010, 8:10 AM
#5
forensicdev avatar

forensicdev

New Zenner

Join Date:
Aug 2010
Posts:
3
Plugin Contributions:
0

Post #5 by forensicdev

I ran a second test transaction with PayPal Express Checkout as the payment module.

The 2nd transaction, doesn't show any customer/payer ID, status, payment type, payment status, etc. when I look at the purchase in "edit" mode. (see attachment)

I do see the general billing / shipping information, yet no PayPal transation IDs, etc. The first transaction using IPN, does show all the paypal information.

Any thoughts?

PS: thanks on the heads up on GoDaddy, any insight what an alternative might be?

15 Aug 2010, 8:50 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

The gray box may or may not show transaction history depending on various factors. However, the important information such as the PayPal Transaction ID is shown in the order comment history.

As for recommended hosts, there's a link at the top of this page.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Apr 2011, 6:30 AM
#7
willy12 avatar

willy12

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Post #7 by willy12

ForensicDev:

Newbie question, so please be kind. :unsure:

Setup: PayPal (IPN) is only payment method that is activated and configured based on the instructions in ZenCart. Provided the "business ID", PDT token, etc. and set "Detaile Line Items in Cart" to true.

When I tested the PayPal IPN without an attribute, PayPal successfully showed the product name. Then I added an attribute (text field, required) to the product. PayPal now shows the attribute field name and its value, instead of the product name.

Any thoughts how I can "force" PayPal to display the product name again? I can't remove the required attribute as I need to capture information pertaining to the order.

Help is much appreciated.

  • M

ZenCart: v1.3.9e
OS: Linux
Host: GoDaddy.com
Brand new install
No addons, no customization done.
I have the same problem with Paypal showing only Attributes and not product names. Paypal Express is a complete nightmare and it would be nice if anyone can fix this issue with the standard Paypal module.
Thanks in advance.

14 Apr 2011, 6:32 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #8 by drbyte

If you have a problem with Express Checkout, please post the details of your specific problems in a separate thread.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Apr 2011, 7:04 AM
#9
willy12 avatar

willy12

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Post #9 by willy12

Will do on the Paypal Express.

Dr. Byte, any suggestions on how to get the issue with the standard paypal module resolved?.....any help would be appreciated. Tried all the other suggestions from other Threads but no luck. I spent literally a good 13 hour today :frusty:

Thanks.

14 Apr 2011, 12:29 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #10 by drbyte

Show me exactly how to recreate the problem using a brand new clean fresh uncustomized install of v1.3.9h, and I might be able to come up with something. As it stands right now I've not been able to replicate the matter. Can't fix something I can't trigger consistently.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Apr 2011, 5:42 PM
#11
willy12 avatar

willy12

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Post #11 by willy12

Hi Dr. Byte,

The easiest way would be to go to my website https://www.aquafinatic.com, choose a couple of products in the cart that have attributes and when it takes you to Paypal, at the end of the checkout process you will see that only the attribute name is listed so it would only say "100 mL" if that is the size you chose for that particular product.

I run version 1.3.9h and have a couple of add ons "back in stock notification" and "stock by product attributes"

Thanks a million for your help.

15 Apr 2011, 2:49 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #12 by drbyte

That may be easier for you, but if you want me to investigate a problem that you think exists in the code, then I need to be able to recreate the problem in my own test site so that I can debug what's going on.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Apr 2011, 5:20 PM
#13
willy12 avatar

willy12

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Post #13 by willy12

DrByte:

That may be easier for you, but if you want me to investigate a problem that you think exists in the code, then I need to be able to recreate the problem in my own test site so that I can debug what's going on.

I understand your side and believe me I know you are the code master, but an uncostomized Zen Cart....well who has that and I believe you when you say the problem isn't there on an clean install.

I was hoping you would have an idea regardless. Maybe what could clash, cause why would paypal read the Attribute line and not the product name line?

Sorry that I can't be of more assistance this time.

Thank you for your time.

16 Apr 2011, 2:56 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #14 by drbyte

The person who started this thread said their attributes were text-input-fields. Are yours text fields? Or just pulldowns? Are there any characters other than letters/numbers/spaces in your option names or values or product names? What attribute "type" are you using when these problems happen? Is there a specific product you can point me to that always manifests the problem for everyone? If you won't give me the details on how to set up a product just like yours, then at least point me to a specific one. I can't magically guess which products on your site are causing problems vs which are not. I poked around and all I see are single-attrib products, all with pulldowns, not text fields. So, this seems like it might be a different problem. Or not. Too little info to tell.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 May 2011, 4:13 PM
#15
willy12 avatar

willy12

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Post #15 by willy12

DrByte:

The person who started this thread said their attributes were text-input-fields. Are yours text fields? Or just pulldowns? Are there any characters other than letters/numbers/spaces in your option names or values or product names? What attribute "type" are you using when these problems happen? Is there a specific product you can point me to that always manifests the problem for everyone? If you won't give me the details on how to set up a product just like yours, then at least point me to a specific one. I can't magically guess which products on your site are causing problems vs which are not. I poked around and all I see are single-attrib products, all with pulldowns, not text fields. So, this seems like it might be a different problem. Or not. Too little info to tell.

Hello Dr. Byte,

I was out of town and I apologize for not getting back to you sooner.

I have attached a screenshot of the paypal page at checkout.
You see the "Size:2 oz" which is from the attribute pulldown (doesn't matter what type, happens to all) and the you see the "item number: AminOmega" which is from the "Model:" on the product page.
Paypal doesn't see at all the Actual product name.
There are no other characters other than letters/numbers/spaces in the option names.

The "Surcharges" instead of "Tax" is caused by the "CA Tax module", at least I know that much.

Here is the link to the actual product page which has two choices in the dropdown.
http://aquafinatic.com/index.php?main_page=product_info&cPath=1_17&products_id=327

Thanks for working with me on this one, please let me know if I can help with anything else.

18 May 2011, 10:40 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #16 by drbyte

ForensicDev:

Setup: PayPal (IPN) is only payment method that is activated and configured based on the instructions in ZenCart. Provided the "business ID", PDT token, etc. and set "Detaile Line Items in Cart" to true.

When I tested the PayPal IPN without an attribute, PayPal successfully showed the product name. Then I added an attribute (text field, required) to the product. PayPal now shows the attribute field name and its value, instead of the product name.Confirmed as a bug. This is only a problem in the IPN module. Doesn't happen in Express Checkout.

v1.3.9 /includes/modules/payment/paypal/paypal_functions.php
At line 772 you'll see this section of code. Add the two slashes as shown:```
if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0 ) {
[B]//[/B] $optionsLI["item_name_$k"] = '';
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {


Fixed in v1.5.0

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 May 2011, 11:22 PM
#17
willy12 avatar

willy12

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Post #17 by willy12

Dr. Byte,

You are the man!!...It works very well now, and I thank you and I'm sure other Zenner's will thank you greatly as well !