Zen Cart Logo
Forums / PayPal Express Checkout support / products_id in brackets in PayPal order summary

products_id in brackets in PayPal order summary

Views: 1,846

Results 1 to 5 of 5
9 Dec 2012, 2:55 AM
#1
per1 avatar

per1

New Zenner

Join Date:
Dec 2012
Posts:
5
Plugin Contributions:
0

products_id in brackets in PayPal order summary

Is there any way to make the products_id not show up in the PayPal order summary? It seems like it will be confusing to the customer, maybe they will think that is the quantity they have ordered or something. I have attached a screenshot to illustrate what I am talking about. Where it says Sandblasted Jar - Medium [2] I would like it to just say Sandblasted Jar - Medium. The products_id for this product is 2.
Attachment 11606
I have not upgraded or installed any addons/contributions. I am using the PayPal Express Checkout payment module. One-click install(softaculous) :( . I've created a custom template but tried the Classic template also and it has the same problem. Thanks!

9 Dec 2012, 7:54 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: products_id in brackets in PayPal order summary

There's no "built in switch" to flip to change that.
Why do you think it will be confusing to them? It specifically says the quantity below, and the final price shows the details correctly also.

Are you wanting to rewrite the PHP code?

9 Dec 2012, 8:26 PM
#3
per1 avatar

per1

New Zenner

Join Date:
Dec 2012
Posts:
5
Plugin Contributions:
0

Re: products_id in brackets in PayPal order summary

Well it confused me until I realized that it was the products_id, and of course the customer will never figure that out. I guess I'm just being picky but I just don't think it enhances the shopping experience in any way. I wouldn't mind rewriting the php code if I could figure out where the products_id is added to the product name and then passed to PayPal. I looked at the code for the module but wasn't able to figure it out. So if you have any advice I'd be grateful, thanks.

10 Dec 2012, 1:07 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: products_id in brackets in PayPal order summary

/includes/modules/payment/paypalwpp.php around line 1192:```
$optionsLI["L_NAME$k"] = $order->products[$i]['name'] . ' [' . (int)$order->products[$i]['id'] . ']';


When your product ID numbers are much larger it may be more meaningful to you and your customers.
The reason the ID was added was to help differentiate between products with similar names, which is not an uncommon thing in larger stores.
10 Dec 2012, 2:29 AM
#5
per1 avatar

per1

New Zenner

Join Date:
Dec 2012
Posts:
5
Plugin Contributions:
0

Re: products_id in brackets in PayPal order summary

Thank you! I really appreciate it. I'm pretty sure the Item number field will be enough to differentiate for my particular application but everyone has different needs of course. I appreciate the explanation of the why though. You're awesome DrByte!