Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / One Item/category To Disable Store Pickup

One Item/category To Disable Store Pickup

Views: 793

Results 1 to 2 of 2
15 Mar 2011, 2:04 PM
#1
chienmort avatar

chienmort

New Zenner

Join Date:
Jul 2009
Posts:
29
Plugin Contributions:
0

One Item/category To Disable Store Pickup

Can I disable storepickup for just one item or category? At the moment I have this disabled as one item I sell must be sent by post (it is in the agreement with the wholesaler).

15 Mar 2011, 2:12 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: One Item/category To Disable Store Pickup

You could set the $this->enabled to false based on the results of:

For a Product in the Master Category 10 use:

$chk_count = $_SESSION['cart']->in_cart_check('master_categories_id','10');

For a specific Product with products_id 12 use:

$chk_count = $_SESSION['cart']->in_cart_check('products_id','12');