canadave Posted December 1, 2009 Share Posted December 1, 2009 Hello All,I'm trying to rig rates and zones in the shipping...I've got my zones defined, my carriers defined and my 1 product defined but, how do I define this: We can do a fixed rate of $12.95 per unit for the first unit purchased and that should cover most of Canada… for US orders we can ship at a fixed rate of $14.95 per unit. Additional units can be priced at $5.00 shipping per additional unit. So the first unit from Ottawa (Canada) to Calgary (Canada) will cost a customer $12.95 to ship. If he orders two units his total freight costs will be $17.95, 3 units total freight cost of $22.95… and so on. The $5.00 rule will also apply to US freight. International rates will vary and can be confirmed to the customers within the initial 48 hours. I don't see anywhere for 'per unit' shipping...just by weight or by price and nowhere do I see 1.5 x weight or 1.5 x price.Any thoughts? Link to comment Share on other sites More sharing options...
OurManFlint Posted December 1, 2009 Share Posted December 1, 2009 Hi folks,I'm having a similar issue, but in UK. For my prestashop store I need a way of defining shipping zones for the UK (at least 7), and then either 1. set a fixed price surcharge for each zone, or 2. Set a price per kg or price per unit for each zone.Example: price of £1 per kg for UK zone 1 (central England), price of £3 per kg for UK zone 7 (Scottish Highlands and Islands).A module like this, or an upgrade to the existing Shipping module, would allow store owners to use ANY courier company - zones and prices could be easily set in Admin. It would be a great 'catch-all' so that owners didn't have to write a courier-specific module like UPS or FedEx modules currently available online.PS: UK postage/shipping zones are defined by post codes. So the module should allow post codes to be added to each UK zone - exactly the same way that one can add 'States' in the current module.I am currently in need of this facility! If any developer reading this can write the module, I would be willing to pay them a fee, pending a successful installation - please get in touch if you are able to start straight away!All UK courier companies use UK zones to decide shipping prices, sometimes in addition to the price per kg or unit. This is because it costs more to send a package to northern Scotland than sending same package to central England.Thanks folks,AshUpdate: the exact same issue was raised here earlier in the year:http://www.prestashop.com/forums/viewthread/23293/help_installation___upgrade/another_shipping_problem__different_rates_within_one_country Link to comment Share on other sites More sharing options...
canadave Posted December 1, 2009 Author Share Posted December 1, 2009 Hello Ash,I'm resorting to hand coding my requirements directly into 'Cart.php'...I'll let you know how I make out.Dave Link to comment Share on other sites More sharing options...
OurManFlint Posted December 1, 2009 Share Posted December 1, 2009 Hi Dave,Have you seen this?http://www.prestashop.com/forums/viewthread/33826/#153190Looks like you/I/whoever will have to do more than modify a couple of php files mate - got to bugger about with core Prestashop classes etc to get a satisfactory shipping module. I'm going to have to go with flat rate shipping until there's a proper solution - I just haven't got the time or expertise to get up to my elbows in coding.I'm probably wrong here, but it occurred to me that all we really need is1. to have a sub-set of shipping zones per country;2. to be able to assign each State of a country to one of the country zones!3. Then to be able to set per kg or unit price for each Example: In Prestashop Admin, for Country: UK I could add all the counties (as States) with their correct post code definers, like CV (Coventry), DE (Derbyshire), IV (Inverness) etc; I could create as many UK-only "sub-zones" as I wanted, THEN I could assign a UK-zone to each county (State): CV = UK-zone1, IV = UK-zone7.Then we'd just need to be able to define a per kg/item/quantity rate per UK-zone!Surely to achieve all that we'd only need one or two new table entries wouldn't we?? Then even I could probably butcher the necessary PHP together! God it's so frustrating!! I know what needs doing, but I don't know how to do it!IF ANYONE FEELS LIKE HELPING OUT HERE, PLEASE FEEL FREE! I'm willing to pay for a functioning country-zone based shipping module.All the best,Ash Link to comment Share on other sites More sharing options...
canadave Posted December 1, 2009 Author Share Posted December 1, 2009 Hey Ash,No, I hadn't seen that link. It seems there's always that one little thing you need that it doesn't do, eh? It needs a little Microsoft Excel formula thing in it so the user can go 'Calculate By Formula' or something...that'd be handy.I'm almost done my own hard coding. It just assigns shipping cost by zone ID and number of items kind of thing....I need an accurate calculation to charge the customer's PayPal. Just need to do a UPS lookup based on CountryCode/PostalCode for international orders now...need to get that out of the Cart's 'delivery address' if it's there.I'll show you what I did when it's finished if you want...not the prettiest piece of work I ever did Dave Link to comment Share on other sites More sharing options...
OurManFlint Posted December 1, 2009 Share Posted December 1, 2009 Well I thought I'd done it for a short moment!I did what I described in the previous post - set up UK zones in the Zones area, and for the country "UK" I created a couple of States - which you CAN apply to specific zones. Then I was able to create prices for weight ranges based on carriers that only operate in a certain zone. Anyway, Prestashop didn't update the shipping cost when I entered a 'UK zone 2' State as the shipping address. So back to square 1!Yeah wouldn't mind a look at your finished masterpiece if you don't mind Ash Link to comment Share on other sites More sharing options...
canadave Posted December 1, 2009 Author Share Posted December 1, 2009 Hey Ash,Did you try logging out and logging back in?...I have 3 test users for my different zones, with complete email, delivery addresses in the various countries. Make sure it's 'delivery address' because that's what it goes by.Sure, I'll give you my spiffy code, when it's finished Dave Link to comment Share on other sites More sharing options...
canadave Posted December 8, 2009 Author Share Posted December 8, 2009 Hello Ash, Well, I got it done with a new theme and everything...just have to do a live PayPal test, which I'm going to ask a question as another topic on the forum.As promised, here's my quick and dirty cart.php file where you can calculate the shipping by hand...the code is about halfway through...just does a switch/case based on the zones you pre-define.Hope it helps!Dave Cart.php Link to comment Share on other sites More sharing options...
hussew Posted January 4, 2010 Share Posted January 4, 2010 I'm looking for someone to implement this function into my site. Will pay. E-mail me at [email protected] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now