Hi guys,
I got a syntax question with the shipping logic.
The story:
In the order form I deleted the shipping method
But I'm using a country code to fix the shipping method :
Domestic or International. Also with that, there is a SBW calc. in le logic.
Custom Shipping Logic:
if ($eform_Ecom_ShipTo_Postal_CountryCode eq 'AU') {$Ecom_ShipTo_Method='Domestic'}
    else {$Ecom_ShipTo_Method='International'}
@sc_shipping_logic = ( "Domestic|||1-249|5", 
                       "Domestic|||250-499|7", 
                       "Domestic|||500-999|10", 
                       "Domestic|||1000-1999|14", 
                       "Domestic|||2000-3499|18",
                       "Domestic|||3500-4999|25", 
                       "Domestic|||5000-|8%",
                       "International|||1-499|8.5", 
                       "International|||250-499|12", 
                       "International|||500-999|18", 
                       "International|||1000-1999|25", 
                       "International|||2000-3499|30",
                       "International|||3500-4999|36", 
                       "International|||5000-|10%"); 
# 
$shipping_price = &calculate_shipping($temp_total, 
                  $total_quantity, $total_measured_quantity); 
---------------------------
I'm not confident with using $Ecom_ShipTo_Method as a variable in the IF statement.
Is there a thread with a similar issue I can go to?
Thanks in advance
			
			
		
	



