Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello everyone,

 

I'm trying to create a shipping module for UK only shipping, however, the shipping company (UKMail), have split the UK up into various zones, with price differences for each, as if dealing with the various weights isn't enough.

 

Basically, I'm going to deal with Zone A first, which is all of England and Wales' postcodes.

 

The way that it needs to work is:

 

Small Items £2.00

Up to 10Kg £5.99

More than 10Kg £8.99

25Kg £8.99 + 0.30p per Kg.

 

The last weight is the one I'm going to struggle with the most.

 

I will need to apply this template to five location zones, but altering prices for these.

 

For your reference, I've had to split the individual zones into seperate zones with the ZipShip module, because it doesn't allow any more than a certain number of postcodes per module zone.

 

To make the job harder, the store owner has populated the product catalogue WITHOUT putting weights in, so I will be adding these to suit afterwards.

 

If anybody knows a module which will already do this, or knows how I can adjust one to do it, I will be very grateful!

 

I appreciate any help or useful suggestions anybody can give.

 

Many thanks!

Posted

1. use zones.php

2. amend to use postcodes instead of country names

3. for the last weight put an if inside the module code to see if the weight > 25 and if it is += weight * .3

 

That should give you a pointer as to how I would do it.

 

Hi,

 

Thanks for your reply - much appreciated!

 

I have already used zipship.php, which uses zipcodes (but I've set it to use UK postcodes), the only thing I'm struggling on is where to enter the if statement, and how to write it exactly.

 

Any support on this would be really handy!

 

Thanks,

 

RR

Posted

I have no clue what zipship is, suggest to look at the module code and find the part where the cost logic is and amend appropriately. In zones.php, this logic is at the line starting with; $shipping_cost

 

Thanks for the reply, the plan has changed now though. We need to ship according to size now, but I'm struggling to find a solution to this.

 

Why is nothing simple?!

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