HI
I am using Ron`s cart that works best for me only thing is that i have North American shipping rate and International
and lets say American is $5.00 and international is $10.00 for fist items and using <input type="hidden" name="shipping2" value="3.00" /> each additional item is $3.00 (if buyer goes more then one)but i would like to have two different options (if buyer goes more then one)one will be $3.00 N. America and other will be $4.50 for International
Is this possible?
Thanks
Sasa

two different shipping price for more then one ite
Started by
sasa
, Oct 29 2004 02:05 AM
4 replies to this topic
#2
Posted 29 October 2004 - 08:37 AM
Sasa,
Yes. I assume you are using the simple cart...
First you need to set up the two options in the shipping dropdown, and then you need to put support code in the Shipper function of cart1.js for those two choices.
The dropdown in cart1.html would look like this...
document.writeln ('<select onchange = "Shipper (this);">',
' <option selected>Select/Modify Shipping</option>',
' <option>USA</option>',
' <option>International</option>',
'</select>',
And then the Shipper function would look like this...
function Shipper (obj1) { // use either amt or qty based shipping1
/* Note - when using something other than SetAmtSH you must include
SetAmtSH (0,0,0); within every position to kill shipping question.
AND, every call used here must have a zero call under the worst area.*/
var pos;
SetAmtSH (0); // assume the worst
SetCartSH (0);
SetPerSH (0);
SetWgtSH (0);
pos = obj1.selectedIndex; // option selected
root.stxt0 = obj1.options[pos].text;
if (pos == 1) {
SetAmtSH (0,0,0); // Clear shipping question
SetCartSH (0, 1,5, 2,8, 3,11, 4,15);
} else
if (pos == 2) { // 2nd option
SetAmtSH (0,0,0);
SetCartSH (0, 1,10, 2,14.50, 3,19, 4,23.50);
}
document.location.reload (); // show the latest info...
}
I only took it to 4 items, but you can see the pattern.
In my cart the PayPal variables do not work (shipping2, etc).
Ron.
Yes. I assume you are using the simple cart...
First you need to set up the two options in the shipping dropdown, and then you need to put support code in the Shipper function of cart1.js for those two choices.
The dropdown in cart1.html would look like this...
document.writeln ('<select onchange = "Shipper (this);">',
' <option selected>Select/Modify Shipping</option>',
' <option>USA</option>',
' <option>International</option>',
'</select>',
And then the Shipper function would look like this...
function Shipper (obj1) { // use either amt or qty based shipping1
/* Note - when using something other than SetAmtSH you must include
SetAmtSH (0,0,0); within every position to kill shipping question.
AND, every call used here must have a zero call under the worst area.*/
var pos;
SetAmtSH (0); // assume the worst
SetCartSH (0);
SetPerSH (0);
SetWgtSH (0);
pos = obj1.selectedIndex; // option selected
root.stxt0 = obj1.options[pos].text;
if (pos == 1) {
SetAmtSH (0,0,0); // Clear shipping question
SetCartSH (0, 1,5, 2,8, 3,11, 4,15);
} else
if (pos == 2) { // 2nd option
SetAmtSH (0,0,0);
SetCartSH (0, 1,10, 2,14.50, 3,19, 4,23.50);
}
document.location.reload (); // show the latest info...
}
I only took it to 4 items, but you can see the pattern.
In my cart the PayPal variables do not work (shipping2, etc).
Ron.
#3
Posted 29 October 2004 - 10:49 AM
Hi Ron
Thanks a lot i will try to use this and go through this it`s just looks bit confusing for me because i guess i am using different cart not the one with .js
here is link http://yu.tees.ca/fico.htm
I appreciate your help
sasa
Thanks a lot i will try to use this and go through this it`s just looks bit confusing for me because i guess i am using different cart not the one with .js
here is link http://yu.tees.ca/fico.htm
I appreciate your help
sasa
#4
Posted 29 October 2004 - 11:59 AM
sasa,
You are NOT using my cart. Sorry. What you are using is my plug-in (just a supplement) to the standard PayPal cart.
Most of my comments apply, just not the specifics. You can not have the sort of shipping you desire with the standard PayPal cart (even with my plug-in)! The sort of shipping you describe for a "cart" (multiple items) really requires a 3rd parth cart system. The PayPsal cart simply cannot support what you want.
I offer this just as an example - it is a client-side cart, with pre-checkout shipping selection. Try it, look at it - most every cart in the world can do this sort of thing (just not the PayPal cart)...
http://members.aol.c...art/index1.html
Order something, and then try to go to PayPal - you will then see some of the features....
Ron.
You are NOT using my cart. Sorry. What you are using is my plug-in (just a supplement) to the standard PayPal cart.
Most of my comments apply, just not the specifics. You can not have the sort of shipping you desire with the standard PayPal cart (even with my plug-in)! The sort of shipping you describe for a "cart" (multiple items) really requires a 3rd parth cart system. The PayPsal cart simply cannot support what you want.
I offer this just as an example - it is a client-side cart, with pre-checkout shipping selection. Try it, look at it - most every cart in the world can do this sort of thing (just not the PayPal cart)...
http://members.aol.c...art/index1.html
Order something, and then try to go to PayPal - you will then see some of the features....
Ron.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users