$70 DN$ For Help With My PayPal Shopping Cart Script

SpaceshipSpaceship
Watch

wordplay

Established Member
Impact
6
Hi All,

Edit: Wrong currency in the headline, sorry :)

Is there someone here that could help me alter the script I have at http://www.valuetees.com/tee-order.htm in the following way?:

I need to add a field that would allow the user to choose any number of XXL shirts and/or XXXL and be charged accordingly. In other words, all shirt sizes S through XL are the same price. But the larger shirts cost more. I need the script to allow for the two (or more) different charges to show up as the total charge. As it is, the PayPal shopping cart does not allow for seperate charges within one cart.

If this is too complicated to mess with for NP$, please just let me know what the charge would be. Thank you.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
hmm...it would prob cost more than that

but maybe you could offer some tees for one of us to do it


Maybe you should switch to os commerce or something of the sorts?
 
0
•••
I think its not fair to use DN$ in Namepros .
 
0
•••
i think he meant np$
 
0
•••
lol Ok., Then he need to change it to NP$ :)
 
0
•••
Sorry about the currency confusion :) I've been staying up WAY too late. I've edited the post.
 
0
•••
Fairly easy to do, but the catch is you'll have to use javascript which some people turn off (you can force them to use javascript by making the submit button only work with javascript)

You'd have to change the description box to a section box - use this for ideas - untested, on the fly code here :)

Code:
<input type="hidden" name="on0" value="Size">
<select name="os0" onChange="if  (this.selectedIndex>4) { document.form[0].amount.value='300.50'}  else {document.form[0].amount.value='255.60'}">
<option value="Select a Size">Size
<option value="small">small
<option value="medium">medium
<option value="large">large
<option value="x-large">x-large
<option value="xx-large">xx-large
</select>
<input name="amount" size="10" value="255.60" READONLY >

There I added some "onchange" code to the select box to alter the per-item price which would be a value in your hidden field. Make it unhidden so the customer can see the price change.
See the form[0], you'd have to adjust that number for the form on your page if you are going to use multiple forms.

Note that some ancient browsers like webtv do not support onchange (argh) so you have to enforce it again on the onsubmit for the form.
 
Last edited:
0
•••
aww, I truly appreciate what ever time you put into this code. But I am clueless as to how to change it and adapt it for my situation. If you care to take it to the next step, please let me know your charge and I'll be happy to work something out with you.
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back