close ad
Databridge V2 with MySQLi support IS Now Available!
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 11:09 am by bill173836 | Last modified 8/12/2020 1:01 pm by Ray Borduin | 10801 views | 11 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

cdtwizard

Add SKU number to Paypal details - confirm.php file location?

Hi Jason ... I'm in a similar situation to the one you helped bill173836 resolve this past January. If you would be kind enough to point me to the location of the confirm.php file (for PayPal Standard) where the SKU can be concatenated I would be most appreciative. Also, bill173836 stated that he had attached the SKU to the cart and that it was displaying on the shopping cart page correctly using the code: <?php $SKU = $siteCart->DisplayInfo("SKU"); ?> Is this code required? And if so, where does it need to be placed?

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the checkout page you are using. I'd have to take a look at the code you are using to advise how to add the sku.

Sign in to reply to this post
Did this help? Tips are appreciated...

cdtwizard

Hi Ray ... thanks for your quick response! I'm using a standard WooCommerce checkout page called from the <!-- wp:shortcode -->
[woocommerce_checkout] <!-- /wp:shortcode --> shortcode. You can access it at: https://chesterrodandgunclub.com/checkout/

As you may have guessed, I'm brand new to WooCommerce and not yet familiar with its code structure. But ... I'm being told that I need to send the SKU with the product name, description and price to PayPal ... and we're using WooCommerce > PayPal Standard for processing payments. Any help or direction you can provide me toward this end would be most appreciated! Please let me know if you need me to provide other information. Thank you!

Sign in to reply to this post
loading

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...