Shping Zones Restrictions Only Works in State and Country

  • Posts: 2
  • Thank you received: 0
6 years 7 months ago #277089

In my country we have this hierachy:
Country - Brasil
State - Rio Grande do Sul
City - Porto Alegre
Neighborhood - Aberta dos Morros

I need individual prices for each neighborhood in the Porto Alegre City.

I setup at this way:
Shipping Zone == Aberta dos Morros;
Zone Method = For Aberta dos Morros ; Price 20,00 ; Restrictions Zone 4574 Aberta dos Morros

I have added custom field with this zone To "Bairro" Field in Form, too

But My Shipping Method do not Appears in frontend
.... only COUNTRIES and STATES are accepted to zone resctrictions.....
All others zones are not accepted.
Please, help me

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81511
  • Thank you received: 13066
  • MODERATOR
6 years 7 months ago #277092

Hi,

That's right, only the address_state and the address_country custom fields are used by the system for the zone restriction system of shipping plugins.
That's not a bug but how the system was designed.
You can also use the post cost restrictions if your Neighborhoods can be divided by post code.
Besides that, if you need something more complex with extra custom fields being supported, I'm afraid you'll have to create your own custom shipping plugin.
We have documentation for developer to be able to do that here:
www.hikashop.com/support/documentation/6...r-documentation.html
And they can also look at the existing shipping plugins for help.

The following user(s) said Thank You: uzielweb

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
6 years 7 months ago #277140

I willl try to use an IF "zone == zone_of_the_user" in the template to bypass this statement via "template override".
This can work, I think.

I will get the variables via "var_dump" and, then, apply the "IF statements".

Suburb prices zones or Neighborhood prices are a convenient need in this actual days. I wish some like this in the next versions.
Think about. Many business works in big cities with many distances and custom manual shipping (pizza and flowers, for example).
Restrict by zones is vital for this business, not only ZIP Code.

I will try to build a custom plugin, too.
Thank You for fast response. I will inform my solution in the next post.

Please Log in or Create an account to join the conversation.

  • Posts: 81511
  • Thank you received: 13066
  • MODERATOR
6 years 7 months ago #277141

Hi,

View overrides won't cut it I'm afraid because the price used for the creation of the order and the payment gateway won't take into account your view overrides.
A custom plugin will be necessary to be able to do that properly.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum