close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add SKU number to Paypal details

Thread began 1/14/2014 2:09 pm by bill173836 | Last modified 1/14/2014 5:34 pm by bill173836 | 5252 views | 6 replies |

bill173836

Add SKU number to Paypal details

I already have a Product Id, Size, and Color showing up in my Paypal details. I want to add a SKU number to show also. I have it attached to the cart and it is displaying on the shopping cart page correctly. What code and where do I add it to make it show up in the Paypal details?
Thanks.

<?php $SKU = $siteCart->DisplayInfo("SKU"); ?>

Sign in to reply to this post

Jason ByrnesWebAssist

what paypal system are you using?

if you send a copy of the confirm page, i can get the answer to my question.

Sign in to reply to this post

bill173836

Here is the file although when I go to paypal and click the continue button it takes me to the pp_confirm.php page.

Attached Files
confirm.php
Sign in to reply to this post

Jason ByrnesWebAssist

line 316 and 317 passes the product name:


$PP_DirectPayment_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
$PP_DirectPayment_itemized[1][$nextIndex] = "".$siteCart->DisplayInfo("Name") ."";


you could concatenate the SKU:
$PP_DirectPayment_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
$PP_DirectPayment_itemized[1][$nextIndex] = "".$siteCart->DisplayInfo("Name") ." SKU: ".$siteCart->DisplayInfo("SKU")."";


NOTE: this using paypal direct payments. you also have paypal express checkout. there will be a similar line on the checkout and pp_confirm pages that passes the product name, you can use the same technique to concatenate the SKU on the checkout page.

Sign in to reply to this post

bill173836

I switched it out and it didn't do anything. I never go to the confirm.php page but I do go to the pp_confirm.php page.

Sign in to reply to this post

Jason ByrnesWebAssist

like i said in my note, for express checkout, there will be similar code on the checkout and pp_confirm pages to pass the name to paypal.

you will need to make the change in those code blocks for express checkout.

Sign in to reply to this post

bill173836

I see what you mean. I adjusted and it seems to work now. Thanks.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...