Can we make Shipping Option Based on Country

  • Posts: 19
  • Thank you received: 0
10 years 4 weeks ago #208980

-- url of the page with the problem -- : www.anchorpointfilms.com
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.6.9
-- Browser(s) name and version -- : not browser dependant
-- Error-message(debug-mod must be tuned on) -- : No error messages

Right now we have three shipping options on our cart at www.anchorpointfilms.com as follows:
USA Price
Canada Price
International Price

I currently have it where there is a radio button to select the correct shipping option. We are charging a flat rate for each of them. However, people are selecting the USA price instead of the International price and then fulfilling their order.

What we need is a way to make their shipping be set automatically to the correct option when they set their ship to country in their address. Can this be done?

I would like to have them check that their shipping is USA Postal Service but not have them select a price. Or, if we allow them to select a price we would have some sort of correction process for when the shipping option does not match their country selected.

Thank you,

Last edit: 10 years 4 weeks ago by anchorpointfilms.

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

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
10 years 4 weeks ago #208988

Hi,

Go in the menu System>Shipping methods, edit your shipping methods and check the "restrictions" checkbox in each one. There, you'll have a "zone" field where you'll be able to enter the countries for which each shipping method should display on the checkout.
That way, the selection will be done automatically for the customers based on their shipping address.

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

  • Posts: 19
  • Thank you received: 0
10 years 4 weeks ago #209129

Thank you very much Nicolas,

We have selected the zone of United States for the Mail to United States option and Canada for the Mail to Canadian Address Option.

But, for the Mail to Other International Address option I did not select any zone. I am hoping maybe that this will then be the default zone for anybody that is not in either the United States or Canada. Will this work this way? I was trying to avoid having to list all the countries of the world besides the USA and Canada in the Zone restrictions.

Will this work?

Thanks again,

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 4 weeks ago #209130

Hi,

If there is no zone restriction it will allow all countries.

When you manage the zone in the HikaShop backend, you will find a "group" called "shipping zone".
It that group (or category) you can create your own zones (for the shipping). You can for example create a zone with all countries but without the USA and Canada, a "rest of the world" zone :)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 19
  • Thank you received: 0
10 years 3 weeks ago #209465

Jerome,

I just looked in the Zones section of the back-end at System->Zones and found the Shipping Zones group. Thank you.

I did run a test where I put in a country that was Not USA or Canada and it did select the correct International shipping rate. So, I am thinking maybe it is working without my creating a new shipping zone. Maybe the only problem I may have now is that people may become confused because we are displaying their shipping options. In reality there are no options. Everything will be shipped by USPS based on their country.

Can I just turn off the 'Shipping Method' options display and have the system show them their shipping fee at the end?

Also, I am trying to figure out why the options are showing Mail to United States and Mail to Other International Address but not Mail to Canada. I am not sure why Canada stopped showing.

Last edit: 10 years 3 weeks ago by anchorpointfilms.

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

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
10 years 3 weeks ago #209485

Hi,

You sure can remove the display of the shipping method section. Just add that CSS in the frontend CSS file of HikaShop via the Display tab of the HikaShop configuration:
#hikashop_shipping_methods{ display: none; }

Shipping methods will display based on the restrictions that you configure in them.
If you want to know why one isn't showing but others are, disable temporarily the others and the system will display the error message coming from the missing shipping method telling you why the system is not displaying it.

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

  • Posts: 19
  • Thank you received: 0
10 years 3 weeks ago #209667

Thank you Nicolas for the code to just hide the shipping. I might decide to do that.

But, I think that Jerome might have been leading me to a better solution and I just did not understand how to get there. What he said was:

"When you manage the zone in the HikaShop backend, you will find a "group" called "shipping zone".".

I just created a Shipping Zone called All Countries Except USA and Canada and then placed all the other countries as Sub-zones. I then select that Zone as my Shipping methods restriction for "Mail to Other International Address".

I hope this will make it so that from now on the shipping option will actually show up for once we have a country there will only be ONE shipping option available. :-)

Last edit: 10 years 3 weeks ago by anchorpointfilms.

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 3 weeks ago #209670

Hi,

See : www.hikashop.com/support/documentation/i...ashop-zone-form.html

Go in the "zone" section and then create a "new" zone.
In the dropdown for Type, select "shipping zone" and name your new zone "World".
Save it.

Once you have create that zone, you need to include it countries.
So click on the little "add" button for the "sub zone".
Select "countries" in the filters and at the bottom change the pagination to display "all".
Then you can click on the checkbox to select all countries at the same time and validate.

You can deselect your two countries before the validation or afterwards.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: anchorpointfilms

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

  • Posts: 19
  • Thank you received: 0
10 years 3 weeks ago #209725

Thank you Jerome,

I did figure it out last night. Sorry I did not get it right away the first time you explained it!

Sean

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

Time to create page: 0.071 seconds
Powered by Kunena Forum