close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add new variable to send to paypal

Thread began 4/08/2012 12:04 am by htm2112 | Last modified 4/19/2012 1:37 pm by Jason Byrnes | 907 views | 3 replies |

htm2112

Add new variable to send to paypal

Well, this is pretty simple. I've got eCart up and running and it works great. It is hooked into my sql database and I have no problems. But, I decided I want to include the item SKU on the paypal payment screen. Is there an easy way to pass my variable, itemSKU, to the paypal payment screen which has the order details?

Sign in to reply to this post

Jason ByrnesWebAssist

What paypal system are you using? If paypal payments standard:


look for the following code on the confirm page:

(this code is generated using a cart object named "eCart2", your will be slightly different depending on the cart object name)

php:
<input type="hidden" name="on0_<?php echo $eCart2_Index+1?>" id="on0_<?php echo $eCart2_Index+1?>" value="" />

<input type="hidden" name="os0_<?php echo $eCart2_Index+1?>" id="os0_<?php echo $eCart2_Index+1?>" value="" />




this is a variable pair used to pass optional information. set the value of the first one to "SKU"

for the second one, in the property inspector, click the lightning bolt next to initial value and select the SKU cart column.

Sign in to reply to this post

htm2112

Thanks, that worked great! One other question, though. On the paypal page it displays the following

Options: SKU: [my sku]

I could leave the first variable blank so it just display Options: [my SKU], but I wonder, could the label for "Options:" be changed to reflect "SKU:"?

I have a feeling the answer is no...

Sign in to reply to this post

Jason ByrnesWebAssist

No, paypal automatically adds the options label, then will show the label that you provide followed by the value.

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