Rubin Remus Posted November 12, 2009 Posted November 12, 2009 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! Quote
Rubin Remus Posted November 13, 2009 Author Posted November 13, 2009 Any help available on this? Thanks. Quote
Rubin Remus Posted November 16, 2009 Author Posted November 16, 2009 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 Quote
Rubin Remus Posted November 17, 2009 Author Posted November 17, 2009 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?! 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.