logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Lynsperf  
#1 Posted : Wednesday, November 6, 2024 7:48:44 PM(UTC)
Lynsperf

Rank: Member

Groups: HelpDesk
Joined: 11/15/2021(UTC)
Posts: 10

I've just been told that a few of the products on my site cannot be shipped to California.
How would I go about preventing them from being sold to a person with a California address?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Katie S  
#2 Posted : Thursday, November 7, 2024 12:18:37 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 471

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Hi,

There isn't an easy, or elegant way to exclude products to a user without a customization to ask a user for their shipping location on first visit to the site. Then you would have to store that information and customize the code to hide an item based on their state. It's possible but you have to know the information in advance which can interrupt the user shopping experience.

Another approach might be to stop them on the shipping method page. Here is one way you can do that without custom code:

1 - create a new "Zone" that includes all states except for California. (Configure > Regions > Zones)
name is something like "US-exclude California"

2- create a new "ship group". Something like "Exclude for CA".

3 - now create copies of your shipping methods that may apply to California. Edit those methods and assign them to the new ship group and to the new Zone. (Now this method won't work for a shipping address in CA)

4 - edit each of the products with shipping restrictions and assign the new shipping group "exclude for CA"

If the user tries to checkout, they will not be able to pass the shipping page in checkout as it won't show any valid shipping methods.

However, this might cause some confusion, so you could do a few more things to make sure it's clear to your users.

5 - Create a product template (Catalog > Product Templates) and name it something like "Exclude CA"

6 - Add a single customer field "Confirm product will not ship to California" as a Check Box List. Make it selected by default if you want.

7 - Assign the product template to each of the restricted products. Now this information is shown on the product page and will alert the user that they cannot purchase if it is being shipped to CA. Also, this information is kept with the product during checkout, so if they are stopped at the shipping method page, then it should be clear why it happened.

8 - If you want to take it one step further, you can create an HTML snippet and place it on the shipping method page. Some kind of message to let your customer know if they cannot select a shipping method for CA to remove the item from the basket and then checkout.

It's a little bit of work, but it should give you the results you need without any customization to the code.

If you have any questions, please let me know.



Thanks for your support!

Katie
Secure eCommerce Software and Hosting
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.