fixed. i had to compare the files.
ok another problem i see. when on the shopping cart page and freightquote module installed you can see and change the shipping form like, commercial with loading dock, commercial with no loading dock, residence, or construction site. works fine. than if you click checkout and the selection goes to the checkout page, if the customer decides to change their shipping option, lets say they picked residence and it is showing residence for the quote from freightquote, but their friend will let them use their commercial address, so they choose commercial and the selection changes to commercial but does not change in order totals, still shows residence quote. if i click the radio button next to it it will then send the right quote(Commercial) to order totals). at first it didnt change selection at all until i changed this
Code:
if (isset($_REQUEST['freightquote_delivery_location'])) {
$delivery_location = (int)$_REQUEST['freightquote_delivery_location'];
}
$delivery_info = array();
switch ($delivery_location) {
case '0':
$delivery_info['residence'] = 'true';
$delivery_info['construction_site'] = 'false';
$delivery_info['loading_dock'] = 'false';
break;
case '2':
$delivery_info['residence'] = 'false';
$delivery_info['construction_site'] = 'false';
$delivery_info['loading_dock'] = 'true';
break;
case '3':
$delivery_info['residence'] = 'false';
$delivery_info['construction_site'] = 'true';
$delivery_info['loading_dock'] = 'false';
break;
case '1':
default:
$delivery_info['residence'] = 'false';
$delivery_info['construction_site'] = 'false';
$delivery_info['loading_dock'] = 'false';
break;
}
to this
Code:
if (isset($_REQUEST['freightquote_delivery_location'])) {
$delivery_location = (int)$_REQUEST['freightquote_delivery_location'];
$_SESSION["freightquote_delivery_location"] = $delivery_location;
} elseif (isset($_SESSION['freightquote_delivery_location'])) {
$delivery_location = (int)$_SESSION['freightquote_delivery_location'];
}
$delivery_info = array();
switch ($delivery_location) {
case '0':
$delivery_info['residence'] = 'true';
$delivery_info['construction_site'] = 'false';
$delivery_info['loading_dock'] = 'false';
break;
case '2':
$delivery_info['residence'] = 'false';
$delivery_info['construction_site'] = 'false';
$delivery_info['loading_dock'] = 'true';
break;
case '3':
$delivery_info['residence'] = 'false';
$delivery_info['construction_site'] = 'true';
$delivery_info['loading_dock'] = 'false';
break;
case '1':
default:
$delivery_info['residence'] = 'false';
$delivery_info['construction_site'] = 'false';
$delivery_info['loading_dock'] = 'false';
break;
}
and now changes at customers selection, but does not change order totals unless i click the radio button again, but customers dont know to do this.
Bookmarks