Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Restrict shipping for products in 1 category internationally

Restrict shipping for products in 1 category internationally

Locked

Views: 1,424

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
18 Nov 2008, 9:14 PM
#1
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Restrict shipping for products in 1 category internationally

Hi,

Im using 1.3.8a ver.

I need to know how to restrict shipping of items in one particular category internationally.

There are lot of products I can ship overseas but I do not want to ship some Live products overseas and can be shipped nationally.

I tried to find in forum, but most i got is that delete where you don't want to send, this will not work for me as I have to sell other products overseas, just need to restrict one category with 30+ items.

~ Time

18 Nov 2008, 10:01 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Restrict shipping for products in 1 category internationally

You would need to do something to customize the code to not allow someone to add these products when shipping overseas ...

What should happen if I am from overseas and a guest and add all these products to my cart then login and hit the checkout?

What should happen if I am from the US and add all these products to my cart then login and hit the checkout and then change my shipping address to overseas?

19 Nov 2008, 8:08 AM
#3
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Restrict shipping for products in 1 category internationally

well you are from developer side, you have to think on all whats questions.

I want to make sure that if any customer selected restricted item and is not from local then he should not able to checkout. Even if he select other products in his cart or changes shipping address later.

~ Time

19 Nov 2008, 8:07 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Restrict shipping for products in 1 category internationally

If you were a fly on the wall, watching me, a customer, go through your shop ...

Question 1:
What should happen if I am from overseas and a guest and add all these products to my cart then login and hit the checkout?

Question 2:
What should happen if I am from the US and add all these products to my cart then login and hit the checkout and then change my shipping address to overseas?

I know lots of things that I can do, as a coder, to make lots of things happen under these two circumstances ... and lots of coding to give the customer different experiences based on logged in or not logged in, based on was US shipping address and then changing it during the checkout ... based on marking products as for the US ONLY or surprising the customer etc. etc. etc.

But I do not know what you, the store owner, wants your customer to see, do, have happen etc. etc. under these conditions ...

You, the store ower, need to "expand" on your ideas here ... :cool:

20 Nov 2008, 11:54 AM
#5
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Restrict shipping for products in 1 category internationally

Hi,

For Question 1:
Once you login, the script should see restricted item based on shipping address irrespective of billing address. Because some can gift a local friend or relative from overseas.

For Question 2:
As given in previous answer, based on shipping address the checkout should be stopped if there is any restricted items present in the cart.

so if we stick to shipping address for restriction, then i think, things can be controlled irrespective of adding to cart before or after login and changing shipping address etc.

i hope im clear enough for you.

this is a much needed option in zencart and many are searching and trying to figure out. I think even if what i suggested, can be implemented then many can compromise on their requirement a little bit to have this option atleast than nothing.

~ Time

20 Nov 2008, 10:18 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Restrict shipping for products in 1 category internationally

This can be done ... but would require quite a bit of custom coding ...

Right now, you have one category to restrict ... in the future would this grow to other categories?

Do customers have to Login to add to cart?

Advantage being, you could stop adding to the cart right there ...

Disadvantage is you are stopping someone who may be buying from the UK but shipping to the US ...

You could manage this all in the checkout, but then you have the issue of not having told the customer in the first place ...

You could add READONLY Attributes to these products that say:
US SHIPPING ONLY

or something of that nature ... and then use that as part of the testing for checkout ...

Advantage of the READONLY Attribute is that can be tested for based on address ...

Advantage of the READONLY Attribute is that it wouldn't matter the Category that the Product is in as you are looking for a specific options_id and options_values_id for this ...

Disadvantage of the READONLY Attribute test is that there isn't one written for this ... however, this can always be written ...

In any case, this is not a simple 30 second job but it can be written ... so if you are not a coder, you may wish to post in the Commercial Help Wanted with details of what you need ...

I have not seen anything specifically for this, but it is not a bad idea, as I have had to write custom code like this in the past based on a variety of conditions ... :smile:

23 Dec 2008, 1:17 PM
#7
whitt avatar

whitt

New Zenner

Join Date:
Aug 2008
Posts:
29
Plugin Contributions:
0

Re: Restrict shipping for products in 1 category internationally

A great idea. How did you end up going restricting various items to various countries?

24 Dec 2008, 1:30 PM
#8
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Restrict shipping for products in 1 category internationally

whitt:

A great idea. How did you end up going restricting various items to various countries?

I know its great idea, but still not able to figureout as Im not a hardcore programmer, little here and there modifications I can do but not fullscale.

~ Time