Jump to content
Sign in to follow this  
cornishpirate

Shipping Zone question

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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


It's all just ones and zeros....

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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


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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×