Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 07-16-2002 13:26:18

Guest
Guest

Custom Shipping except on 3 products

Hi,

I want to modify the custom shipping script to charge a different amount based on the product number. Is this the right way to go about it? Or, what is the form field called that I want the script to check for?

sub site_store_shipping_custom {

$custom_shipping_method_name = "Standard";
$ship_calc_total = "$final_form_display_order_subtotal";
$ship_total_quantity = "$form_display_total_quantity";
$ship_total_weight = "$form_display_total_weight";
$ship_event = "$form_display_ref";

if ($ship_calc_total >= "0" && $ship_calc_total <= "6.99") {

$temp_shipping_total = "1.75";

} elsif ($ship_calc_total > "7.00" && $ship_calc_total <= "19.99") {

$temp_shipping_total = "4.75";

} elsif ($ship_calc_total > "20.00" && $ship_calc_total <= "29.99") {

$temp_shipping_total = "6.75";

} elsif ($ship_calc_total > "30.00" && $ship_calc_total <= "44.99") {

$temp_shipping_total = "7.75";

} elsif ($ship_calc_total > "45.00" && $ship_calc_total <= "59.99") {

$temp_shipping_total = "9.75";

} elsif ($ship_calc_total > "60.00" && $ship_calc_total <= "119.99") {

$temp_shipping_total = "11.75";

} elsif ($ship_event = "75") {

$temp_shipping_total = "2.00";

} else {

$temp_shipping_total = ($ship_calc_total * .10);

} ######### End of if statement.

Thanks for any help!

Nancy
Monarch Design Studios

 

#2 07-20-2002 08:59:09

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Custom Shipping except on 3 products

Take a look at the default shipping scripting in:

./cgi-bin/library/modules/site_store_ship_dis.pl

You're going to need to loop through the items in the cart as we do in the default script and apply pricing that way.


Nick Hendler

Offline

 

Board footer