cornishpirate Posted March 27, 2008 Posted March 27, 2008 I have 3 shipping modules: UK standard, UK express and Zones (covering the rest of Europe). Problem is this: if I select a UK delivery address, the checkout page gives the UK options correctly and then the Zones states - also correctly - that there is no shipping for this zone! When there are valid shipping options, I want to suppress other error messages as they are irrelevant. Quote
jonquil Posted March 28, 2008 Posted March 28, 2008 Not sure which osC version you're using but an error message like you describe can be found here: includes\languages\english\modules\shipping\zones.php (Line 17): define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No shipping available to the selected country') jon Quote It's all just ones and zeros....
cornishpirate Posted March 28, 2008 Author Posted March 28, 2008 Jon Using RC2a. Yes - I realise I can change the message. What I want to do is suppress the Zone heading and the message if shipping address is the UK. Otherwise, of course I want to keep it. Similarly, I need to suppress the 2 UK options if shipping address is non-UK. Alan Quote
satish Posted March 30, 2008 Posted March 30, 2008 You need to make out How A shipping option is mapped to a Zone. How Zones are created and How country and states are added to a Zone. Once You have this idea You will be able to fix. Satish Quote Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
cornishpirate Posted March 30, 2008 Author Posted March 30, 2008 Have it sorted now. Just added some code at the start of each Shipping module so that the 2 UK modules only go active for UK and the non-UK one only works for non-UK addresses. Quite easy when you know how. Wish there was a full technical guide on inner workings! function zones() { global $order; $this->code = 'zones'; $this->title = MODULE_SHIPPING_ZONES_TEXT_TITLE; $this->description = MODULE_SHIPPING_ZONES_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_ZONES_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_ZONES_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false); // This disables the module if delivery NOT to UK if ($order->delivery['country_id'] == STORE_COUNTRY) { $this->enabled = false; } // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 3; } Alan Quote
mstarink Posted April 19, 2008 Posted April 19, 2008 I have a similar question... I think. I did figure out how to get more shipping zones, but I can't figure out how to change the table rate to price. ie, different order amounts, get different shipping rates. Much easier than weight. Barb K. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.