Use Paypal Custom variables to redirect to a specific URL based on customer's item selection

d1nero
Contributor
Contributor

Hi.

I'm very new to e-commerce and have made a bah-zillion mistakes!

 

Okay. That outta the way,

I have an e-commerce site set up.

The product structure is set up in tiers: Low, Med, High.

When the user selects an option(item by type),

they are sent to checkout with the selected item.

 

How can I redirect users to a specific URL based on the selected item option or itemID?

 

Example:

1. User selects desired item type  from a dropdown menu.

2. User clicks "buy" and proceeds to checkout.

3. After payment is procesed...

DESIRED RESULTS:

4. Based on the user's selected option, the user should be redirected to a specific URL that matches the download they purchased.

 

[Item1: 

option: Low

option: Med

option: High]

*If Low was the option purchased, users should redirected to:URLforLowQuality after checkout is finished.

 

Example of current HTML for my button(s).

<td>00</td>
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2ELHMUAT2YZLW">
<td class="purchasing"><input type="hidden" name="on0" value="Purchase">License:<select class="order-dropdown" name="os0">
<option value="Limited">Limited $29.95</option>
<option value="Standard">Standard $65.99</option>
<option value="Pro">Pro $99.99</option>
</select></td>
<td ><input type="hidden" name="currency_code" value="USD">
<input type="image" height="30" width="50" src="images/CMO_P-Cart-buybtn.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="images/buybtn.png"
width="1" height="1"></form></td>
</tr>
 

 Any help would be appreciated greatly!!!

NOTE:

(48-hrs of no sleep, so hopefully, I'm awake when the answer is found).

NOTEII:

It is too late to restructure my site, I mulled that over too, and I realize this would be easier from a singular, per-product approach, however, I wanted to condense the products into grous for tracking and UI purposes.

 

Thanks Again!!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.