Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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.

Posted

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....

Posted

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

Posted

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.

Posted

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

  • 3 weeks later...
Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...