My custom logic does not work. It does not calculate at all. It gives me $0.00 result.
I have two options for shipping. Delivery and pickup.
I would like to set 5.00 flat fee if you choose delivery as a delivery fee.
If you choose pickup, it should be 0.
Here is my code.
@sc_shipping_logic = (
"Delivery|1-|||5.00",
"Pickup|1-|||0.00");
$shipping_price = &calculate_shipping($temp_total,
$total_quantity,$total_measured_quantity);
}
<SELECT NAME=Ecom_ShipTo_Method>
<OPTION value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" eq "") {
return " Select Shipping Method ";
} else {
return "$vform_Ecom_ShipTo_Method";
}
--></OPTION>
<OPTION VALUE="Delivery">
Delivery</option>
<OPTION VALUE="Pickup">
Pickup</option>
</SELECT>
If you can help me out on this, that would be very helpful.
Thank you very much in advance.