Forums / Addon Shipping Modules / Sell a product with pickup only option - Not shipped at all

Sell a product with pickup only option - Not shipped at all

Started by john_zaneta on 7 Dec 2011, 7:22 PM · Views: 1,448

Results 1 to 8 of 8
7 Dec 2011, 7:22 PM
#1
john_zaneta avatar

john_zaneta

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Sell a product with pickup only option - Not shipped at all

Hi thanks for you time, using v1.3.9h. Is there a way to sell a product that I can set to be a pick-up only product? I don't want to ship certain products due to the extreme inconvience or cost of shipping the product. I'm relatively new at Zen-Cart, so please be specific. Thank you, John :clap:

7 Dec 2011, 7:32 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Sell a product with pickup only option - Not shipped at all

You could turn off the shipping modules by testing for the Products in the cart ...

Example, on the Flat Rate flat shipping module you could add the code in RED to prevent the module from working for products_id 12, 17 and 18:

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

// bof: turn off for various products in the cart
      if (!IS_ADMIN_FLAG) {
        global $db, $cart;
        // check how many products are in the cart for products_id 12, 17, 18
        $chk_products = 0;
        $chk_products += $_SESSION['cart']->in_cart_check('products_id', '12');
        $chk_products += $_SESSION['cart']->in_cart_check('products_id', '17');
        $chk_products += $_SESSION['cart']->in_cart_check('products_id', '18');
        if ($chk_products > 0) {
          // turn off shipping module
          $this->enabled = false;
        }
      }
// eof: turn off for various products in the cart

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!

25 Dec 2011, 11:14 PM
#3
eastboy avatar

eastboy

New Zenner

Join Date:
Dec 2011
Posts:
27
Plugin Contributions:
0

Re: Sell a product with pickup only option - Not shipped at all

Hi there

I have a similar requirement as the original poster.
Was just wondering if it would be possible to make a product category for "NO SHIPPING"goods.

then could you add code that disables shipping if any product from that category is included

Thanks

25 Dec 2011, 11:32 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Sell a product with pickup only option - Not shipped at all

You could check the master_categories_id for categories_id 10 with:

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

and adapt the code so that all the other shipping modules do not run, and if Store Pickup is only for those items then adapt it for that or else it can be left as is to always run ...

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!

26 Dec 2011, 4:06 PM
#5
john_zaneta avatar

john_zaneta

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Sell a product with pickup only option - Not shipped at all

:(Is there any way to make this option available when a product is being set up, instead of code. I'm trying to simplify the process, if possible. Will this be an option in the future updates of ZenCart. Thank you, John

26 Dec 2011, 4:11 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Sell a product with pickup only option - Not shipped at all

If you customize the code for whether to run or not run the shipping modules based on that one categories_id when it is used as the master_categories_id of the Products then when ever you add a Product to that Category it will be setup for this ...

You do, however, need to make the code modifications for this so that the content of the cart are tested ...

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!

18 Sep 2014, 1:41 AM
#7
outbreak avatar

outbreak

New Zenner

Join Date:
Oct 2009
Posts:
35
Plugin Contributions:
0

Re: Sell a product with pickup only option - Not shipped at all

I know this is old, but THANK YOU!!! I used master_categories_id and it works like a champ!

18 Sep 2014, 1:24 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Sell a product with pickup only option - Not shipped at all

Thanks for the update that this was able to work for you ... :smile:

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!