Jump to content

Problem with Country and Zone


Freego

Recommended Posts

I have a challenge i need to asign two zone to each country.
Lets say i have two types of costumers Retail and Hostel, i need to asign two diferentes shipping prices per Zone to each One, so ONE country will need to have 2 differents Zone.

I addes to the database a simple many to many table
ps_country_zone
primary key ID
id_country Foreign key to country
id_zone Foreign key to Zone

But iam having a lot of trouble changin the form and adding this change to the workflow,
I am stading in AdminCountry.php, trying to figure out how to chance the form so i can assing two Zone to each country instead of one, and then i will have a lot of trouble searching for the database insertion and chaging it.

So i am calling anyone with more experience than me in prestashop, i really could use a hand here....
THank you Gusy.

Link to comment
Share on other sites

It really depends on how those rates are connected (if they are at all).
Either way, it's not an easy task, but probably easier than hacking the zones.

If there is a relation between the rates (IE wholesale is 20% cheaper than retail), then it can be fairly easily changed, just need to edit the function that returns the shipping rates and add the adjustment.

Link to comment
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
×
×
  • Create New...