close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Passing options(size/color) to paypal with static cart

Thread began 11/01/2009 5:28 pm by coryctaylor390938 | Last modified 10/08/2013 11:23 am by info185511 | 4412 views | 13 replies |

coryctaylor390938

Passing options(size/color) to paypal with static cart

Is there a simple way to pass the size and color to paypal. I only get the name and ID with the order, but I need to know the size for some items and color for others. I am using a static cart with php. I am not a developer. There is similar post but I get a little lost. Here is the post
showthread.php?t=2156&highlight=passing+paypal
I do have a price calculation based on the size so I don't see how to just append the name. I have the test site set up at www.4southernutahhomes.com .
So far the ecart software has been great! I have never programmed before and have been amazed at how easy it has come together. The forum has been a great help as well.
Thanks,
Cory

Sign in to reply to this post

Jason ByrnesWebAssist

what gateway are you using? Paypal Payments pro, or Paypal Payments Standard?

Sign in to reply to this post

coryctaylor390938

Payments Pro
Thanks
Cory

Sign in to reply to this post

coryctaylor390938

Is it easier with paypal payments pro or Paypal payments standard? Any help on getting that information passed to paypal would be greatly appreciated.
Cory

Sign in to reply to this post

coryctaylor390938

I think I am going to stick with paypal payments standard. I really need help getting these values passed to paypal. I bought universal email to try to send me a copy of the cart. I can get it to work with payments pro, but I keep getting errors with failed transactions and issues with the SSL, only part of the page is being loaded with SSL. I change to payments standard and I can't get it to send a receipt. I installed the universal email on the confim.php page and configure it to send on submit_order pressed but when I do a transaction it doesn't send anything.
Any help?

Sign in to reply to this post

Jason ByrnesWebAssist

With Pay Pal payments Standard, you cannot send the email on the confirm page, since this page posts to the paypall servers.

The email needs to sent on the checkout success page when using paypal standard, I would recomend sticking with Paypal pro.


to send the option details to paypal, edit the eCart object and create a new calculation on the calculation tab.

Set the Type of the new calculation to text and the name to "NameOptions", the calculation should be:
[Name] . ' Color:' . [colorColumnName] . ' Size:' . [sizeColumnName]


Next on the Conform Page, find the following code:

php:
$PP_DirectPayment_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";

  $PP_DirectPayment_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Name")  ."";




and change it to:

php:
$PP_DirectPayment_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";

  $PP_DirectPayment_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("NameOptions")  ."";
Sign in to reply to this post

coryctaylor390938

Thank You! It works great.

Sign in to reply to this post

bglaser105954

I'm having difficulty passing options from eCart to Paypal Payments Standard and thought I was on the right track finding this post. Unfortunately, I do not have the code you refer to on my confirm page???

I am using eCart 4.5.2 if that makes a difference.

Sign in to reply to this post

Ray BorduinWebAssist

Paypal payments standard passes data through hidden form elements. To pass options you would use hidden form elements named "on0" and "os0" and "on1" and "os1". I think it only supports up to two options.

So for a large red item you might add this to the form:

<input type="hidden" name="on0" value="size">
<input type="hidden" name="os0" value="large">

<input type="hidden" name="on1" value="color">
<input type="hidden" name="os1" value="red">

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

info185511

Need help passing color selection through to Paypal on a static site

Have read this thread but cannot find those codes on my pages to change. My problem is the Product page contains two individual items, each offers a drop down menu with a choice of several color options. The color is selected and everything seems fine, follow through with checkout, order confirmation the color selected shows. However once the order is submitted to Paypal the product Name, item number, item price, and the quantity show on the Paypal invoice but no color. The client is in a panic mode. Thanks in advance, you have helped out greatly with my passed shipping issues on this site.

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