Page 1 of 1

Limit shipping for some products to a certain country only?

Posted: Fri Oct 04, 2013 3:30 pm
by Flashmobile
Version of OpenCart: 1.5.6
Clean install

Hello,
My inventory consists of goods that are shipped internationally and some are limited for shipping to a certain country only. I am looking for a solution to set up the shipping properly. Please respond.

Re: Shipping

Posted: Sat Oct 05, 2013 3:10 am
by Johnathan
I have a Restrict Shipping Methods extension that lets you set which shipping methods are enabled for certain products and locations. This would disable all shipping methods when those products are in the cart, though, so you'd need to change the "no shipping methods" error message to something more appropriate in /catalog/language/english/checkout/checkout.php

Re: Limit shipping for some products to a certain country on

Posted: Sun Oct 06, 2013 10:11 am
by Flashmobile
Johnathan, thanks for interesting info.

Re: Limit shipping for some products to a certain country on

Posted: Tue Oct 08, 2013 3:17 pm
by Flashmobile
The solution suggested by Johnathan is somewhat complicated. I wonder if there is another workaround?

Re: Limit shipping for some products to a certain country on

Posted: Tue Oct 08, 2013 10:36 pm
by Johnathan
How is it complicated exactly? My extension can do it with two restrictions, assuming that all the products are restricted to a specific country:

RESTRICTION #1
Shipping Methods: (all)
Geo Zone: (the specific country)

RESTRICTION #2
Shipping Methods: (all)
Geo Zone: (all zones except the specific country)
Products: NONE, (your restricted products)

Or are you looking for a free solution? In that case, you'd need to make sure your shipping method accounts for this, such as a weight-based scheme where the restricted products have a very high weight. That could then disable the method for the specific country.

Re: Limit shipping for some products to a certain country on

Posted: Fri Sep 19, 2014 1:07 am
by improvedance
Johnathan wrote:How is it complicated exactly? My extension can do it with two restrictions, assuming that all the products are restricted to a specific country:

RESTRICTION #1
Shipping Methods: (all)
Geo Zone: (the specific country)

RESTRICTION #2
Shipping Methods: (all)
Geo Zone: (all zones except the specific country)
Products: NONE, (your restricted products)

Or are you looking for a free solution? In that case, you'd need to make sure your shipping method accounts for this, such as a weight-based scheme where the restricted products have a very high weight. That could then disable the method for the specific country.
Reviving an old thread!
I am interested in the free solution you mentioned. How would i use this method? Do I set the product's weight i wish to restrict from a certain country outside of the range i specify in the weight based shipping module? But how do i then restrick that shipping weight to the country i wish to exclude?

Re: Limit shipping for some products to a certain country on

Posted: Fri Sep 19, 2014 6:28 am
by Dhaupin
Use the 3rd and 4th decimal places on the weight to something like 11, then make a trigger. So .0011 wouldn't round the 10th and 100th decimal places, therefore hiding the change for other methods.

Re: Limit shipping for some products to a certain country on

Posted: Fri Sep 19, 2014 8:12 am
by improvedance
what do you mean by trigger? can you be more specific?

Would I:
Product 1 = Sell worldwide (including USA)
Product 2 = Sell worldwide (Minus USA and Australia)

Product 1 weight = 1.0011
Product 2 weight = 0.0011

In the shipping module make the geozones correspond with the weights above (i use 0.00 because i offer free shipping):
WorldWide (applies to product 1) to 1.0011:0.00
WorldWide minus USA and Aust. (Applies to product 2) to 0.0011:0.00


I did that, but if a customer from, lets say Canada, tries to buy both product 1 and product 2 -- no shipping option becomes available because the shipping weight is over the specified weight in the module. I suppose i could make another Geozone that minuses USA and Australia that doesn't have a weight restriction, or one that has a very high weight.. but then i would always have two options for shipping, for example if a customer from Canada buys product 2 only, both shipping options will be available (because the weight will correspond in both categories but do the same thing (ship the product for free, which could confuse the customer)


Hopefully i explained that well enough to understand.. Thanks!

Re: Limit shipping for some products to a certain country on

Posted: Fri Sep 19, 2014 10:30 am
by Dhaupin
By trigger i mean, a sneaky way to insert modifiers which has a method to change outcomes without harming others. But your points are good, you bring up what if both, which def messes up other stuff. My apologies, wrote that from mobile (rather bluntly), should have tested dual items first.

Was also thinking the product "location" field on items since its like a spare DB field for tagtriggers to disable but again you may run into trouble with globalism.

Honestly Jonathans mod is good, it can do this. We bought other of his mods for a store and they are super flexible. Totally recommended. Normally its DIY all the way but some big mods are so versitile its worth the hours saved,

Re: Limit shipping for some products to a certain country on

Posted: Sat Sep 20, 2014 9:11 pm
by improvedance
Ok. Thanks. I will look into his mod