Prevent Checkout for International Shipping Address based on SKUs or product class

2 replies [Last post]
Joined: 05/11/2009
Juice: 73

Hi all,

I'd like to prevent checkout completion (at the "review order" stage) if the country is not U.S. and a certain product class or any of a set of SKU's are in the cart. I'm a PHP noob, so wondering if this can be done via admin/conditional actions. If not, some head-start on the PHP required and where it would go would be terrific.

Thanks much,
ITG3000

Joined: 05/11/2009
Juice: 73

Giving this question a little bump. Is there any existing functionality that allows evaluation of cart contents to determine if checkout is permitted? Seems that any number of products have export restrictions and this would be useful. And more elegant than just some checkout text that says "We can only ship [product] in the U.S" or similar. Thanks all.

Joined: 07/03/2008
Juice: 124

Take a look at this module
http://drupal.org/project/uc_ship2country