This is the section of code that is not working in my module
Code:
$shipping_form = '';
if ($_POST['action'] != 'process') {
$shipping_form = '<table border="0" cellspacing="0" cellpadding="2">';
$shipping_form .= '<tr><td class="main" width="200">Please Choose Your Delivery Location:</td><td class="main">';
$shipping_form .= '<select name="freightquote_delivery_location" onchange="window.location.href=\'' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, 'freightquote_delivery_location=') . '\'+this.value">';
$shipping_form .= '<option value="0"' . ($delivery_location == '0' ? ' SELECTED' : '') . '>Residential Delivery (Curbside drop off only)</option>';
$shipping_form .= '<option value="1"' . (!isset($delivery_location) || $delivery_location == '1' ? ' SELECTED' : '') . '>Business Delivery:(no loading dock) Home Businesses do not quality</option>';
$shipping_form .= '<option value="2"' . ($delivery_location == '2' ? ' SELECTED' : '') . '>Business Delivery:(with loading dock) Home Businesses do not quality</option>';
$shipping_form .= '<option value="3"' . ($delivery_location == '3' ? ' SELECTED' : '') . '>Jobsite Delivery</option>';
$shipping_form .= '</select></td></tr>';
$shipping_form .= '</table>';
} else {
$shipping_form = '<br>Delivery Location: ';
switch ($delivery_location) {
case '0':
$shipping_form .= 'Residence';
break;
case '2':
$shipping_form .= 'Commercial (with loading dock)';
break;
case '3':
$shipping_form .= 'Construction Site';
break;
case '1':
default:
$shipping_form .= 'Commercial (no loading dock)';
break;
}
}
The part in red works if fec is turned off, how to make this work with fec if it is turned on?
Bookmarks