After some considerable help from a programmer friend of mine I have a solution to the shipping days problem.
PHP Code:
$sql = "SELECT * FROM " . DB_PREFIX . "fastway_zones WHERE $topcode >= f_postcode and $topcode <= f_postcode";
$rec = $db->Execute($sql);
if ($rec->fields['f_delivery'] == '') {
$days = 'unknown';
}
if ($rec->fields['f_delivery'] == 'S/D') {
$days = 'same';
}
if ($rec->fields['f_delivery'] == 'N/D') {
$days = 'next';
}
else {
$days = ($rec->fields['f_delivery']);
}
I am now working on the rest of the module for correct function. These include the use of f-region and f-suburb to validate the customers address.
I suspect f-satchel isn't working either.
Regards
Fred
Bookmarks