New Zenner
- Join Date:
- Jan 2007
- Posts:
- 66
- Plugin Contributions:
- 0
help with Fastway Shipping Module
Need to be changed to
if ($rec->fields['f_delivery'] == 'xxx') {For this code to have any hope of working.OK, so I have tested the suggestion mentioned. It simply gives me a blank page.
The original code in the includes/modules/shipping/fastway.php file reads
$sql = "SELECT * FROM " . DB_PREFIX . "fastway_zones WHERE $topcode >= f_postcode and $topcode <= f_postcode";
$rec = $db->Execute($sql);
if ($rec->fields['f_delivery'] = 'S/D') {
$days = 'same';
}
if ($rec->fields['f_delivery'] = 'N/D') {
$days = 'next';
}
else {
$days = $rec['f_delivery'];
}
```It is plainly obvious that this module is not working as originally intended (given that it was modified from the original OSC fastway module). Given I am not a coder I feel I have little choice but to attempt to get this module working properly anyway.
What logs am I looking at to establish where the code is failing, that's if it is logging anything.
What tools can I used to assist me in getting this module to work?
What other resources can/should I be using?
Regards
Fred