New Zenner
- Join Date:
- Feb 2010
- Posts:
- 15
- Plugin Contributions:
- 0
translating a perl shipping script to zencart?
Can I get some help from you on this...
The following is a shipping script for this from Click Cart Pro. It is a perl script:
if ($item_subtotal >= "0" && $item_subtotal <= "30.00") {
$ship_total = "10.50";
$ship_display = "$ship_meth_name - $currency_symbol$ship_total";
} elsif ($item_subtotal > "30.00" && $item_subtotal <= "60.00") {
$ship_total = "15.50";
$ship_display = "$ship_meth_name - $currency_symbol$ship_total";
} elsif ($item_subtotal > "60.00" && $item_subtotal <= "90.00") {
$ship_total = "22.50";
$ship_display = "$ship_meth_name - $currency_symbol$ship_total";
} elsif ($item_subtotal > "90.00" && $item_subtotal <= "120.00") {
$ship_total = "33.75";
$ship_display = "$ship_meth_name - $currency_symbol$ship_total";
} elsif ($item_subtotal > "120.00" && $item_subtotal <= "150.00") {
$ship_total = "37.25";
$ship_display = "$ship_meth_name - $currency_symbol$ship_total";
} elsif ($item_subtotal > "150.00" && $item_subtotal <= "200.00") {
$ship_total = "40.00";
$ship_display = "$ship_meth_name - $currency_symbol$ship_total";
} else {
$ship_total = "0.00";
$ship_display = "Please contact us at $html_site_name for your shipping price.";
How do I apply this in ZenCart?