944,080 Members | Top Members by Rank

Ad:
  • eCommerce Discussion Thread
  • Marked Solved
  • Views: 2844
  • eCommerce RSS
Sep 29th, 2009
0

PayPal Drop downs with price options

Expand Post »
I have this PayPal button set up . I wanted to have a drop down for amount and a second one for quantity.
I used the PayPal button maker to create the drop downs but the amount and quantity did not carry over-every time I tested it the amount in the cart default to the lowest price-$25 and the quantity doesn't carry over either.

I would like help making a drop down for both amount and quantity where both values carry over to PayPal.

<form 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="3665970" />
    <table cellspacing="2" cellpadding="2" width="250">
    </table>
    <table cellspacing="4" cellpadding="4" class="centeredtable">
        <tbody>
            <tr>
                <td><input type="hidden" name="on0" value="Card Value" /><span style="color: rgb(255, 227, 132);"><strong>Card Value</strong></span></td>
            </tr>
            <tr>
                <td><select name="os0">
                <option value="Amount">Amount $20.00    </option>
                <option value="Amount">Amount $25.00    </option>
                <option value="Amount">Amount $50.00    </option>
                <option value="Amount">Amount $75.00    </option>
                <option value="Amount">Amount $100.00   </option>
                <option value="Amount">Amount $150.00   </option>
                <option value="Amount">Amount $200.00   </option>
                <option value="Amount">Amount $300.00   </option>
                <option value="Amount">Amount $400.00   </option>
                <option value="Amount">Amount $500.00 </option>
                </select></td>
            </tr>
            <tr>
                <td><input type="hidden" name="on1" value="Quantity" /><span style="color: rgb(255, 227, 132);"><strong>Quantity                 </strong></span></td>
            </tr>
            <tr>
                <td><select name="os1">
                <option value="1">1     </option>
                <option value="2">2     </option>
                <option value="3">3     </option>
                <option value="3">3     </option>
                <option value="5">5     </option>
                <option value="6">6     </option>
                <option value="7">7     </option>
                <option value="8">8     </option>
                <option value="9">9     </option>
                <option value="10">10  </option>
                </select></td>
            </tr>
            <tr>
                <td><input type="hidden" name="on2" value="Occasion (if any)" /><strong><span style="color: rgb(255, 227, 132);">Occasion (if any)</span></strong></td>
            </tr>
            <tr>
                <td><input type="text" name="os2" maxlength="60" /></td>
            </tr>
        </tbody>
    </table>
    <p style="text-align: center;"><input type="hidden" name="currency_code" value="USD" /> <input type="image" border="0" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" class="aligncenter" name="submit" alt="PayPal - The safer, easier way to pay online!" /> <img height="1" border="0" width="1" alt="" /></p>
</form>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
greenglow is offline Offline
19 posts
since Jun 2007
Sep 29th, 2009
0

Re: PayPal Drop downs with price options

I solved the problem. The answer was using a non-hosted clear text version of the code, removing the "Remove Code Protection".line. Hosted means that specific variables are stored on the PayPal Servers which in turn makes these variables tamper proof. Then the basic adjustments "took" and the drop downs work perfectly.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
greenglow is offline Offline
19 posts
since Jun 2007
Oct 14th, 2009
0

Can you please clarify what changes you made?

It's not clear what you actually removed from the code shown?

I want a similar, though simpler, button to allow different monthly subscription choices & have the same problem that no matter what choice is made the amount in PayPal defaults to the lowest rate, (although the description will be correct).

Can you please clarify what changes you made to the code to make it work?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
preciousoil is offline Offline
1 posts
since Oct 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in eCommerce Forum Timeline: Zen Cart Shopping Cart - MagneticOne Data Feed
Next Thread in eCommerce Forum Timeline: dash commerce starter kit...anyone?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC