Forums / General Questions / How do I make a product available for pick-up Only?

How do I make a product available for pick-up Only?

Locked

Views: 733

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Aug 2010, 6:31 PM
#1
pgonline avatar

pgonline

New Zenner

Join Date:
Dec 2009
Posts:
26
Plugin Contributions:
0

How do I make a product available for pick-up Only?

I'm currently using Canada Post shipping module by zones for all products as well as the store pick up. However, there are certain products that I would like to make available only for pick up so that customers won't even have the option of selecting "shipping" when checking out.

What is the best way to do this?

Thanks!

22 Aug 2010, 9:10 PM
#2
pgonline avatar

pgonline

New Zenner

Join Date:
Dec 2009
Posts:
26
Plugin Contributions:
0

Re: How do I make a product available for pick-up Only?

Any help with this would be greatly appreciated.

22 Aug 2010, 10:58 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: How do I make a product available for pick-up Only?

You could build in to your shipping modules a test for these products in the cart and if they exist then disable the shipping module ...

Are these Products that are only Store Pickup all in 1 Category or a mix of Products?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Aug 2010, 11:03 PM
#4
pgonline avatar

pgonline

New Zenner

Join Date:
Dec 2009
Posts:
26
Plugin Contributions:
0

Re: How do I make a product available for pick-up Only?

I'm not sure I completely understand what you mean by that. Sorry, still new to this.

They're spread out in different categories.

23 Aug 2010, 12:33 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: How do I make a product available for pick-up Only?

You can test if a product is in the cart, for example, to see if products_id 12 is in the cart use either:
$chk_cart = $_SESSION['cart']->in_cart_check('products_id','12')
$chk_cart = $_SESSION['cart']->get_quantity('12');

If a product is in the cart, then you can disable a shipping module by setting the $this->enabled to false ...

I do not have the Canada Post module handy, but if you were using UPS, you could use, to disable it when products_id 12 or 37 are in the cart with the following change:

    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
    }

// bof: do not show if products_id 12 or 37 are in the cart
global $cart;
if (!IS_ADMIN_FLAG) {
  $chk_cart = 0;
  $chk_cart += $_SESSION['cart']->in_cart_check('products_id','12');
  $chk_cart += $_SESSION['cart']->in_cart_check('products_id','37');
  if ($chk_cart > 0) {
    $this->enabled = false;
  }
}
// eof: do not show if products_id 12 or 37 are in the cart

    if ($this->enabled) {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!