Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2011
    Posts
    4
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default 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:
    Code:
          // 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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Dec 2011
    Posts
    27
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

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

    You could check the master_categories_id for categories_id 10 with:
    Code:
    $_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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Dec 2011
    Posts
    4
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default 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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Sell a product with pickup only option - Not shipped at all
    By john_zaneta in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 6 Dec 2011, 11:27 PM
  2. pickup or ship option in checkout
    By jbarrick in forum Built-in Shipping and Payment Modules
    Replies: 21
    Last Post: 15 Jul 2009, 10:39 PM
  3. Can't get in-store pickup to show as option
    By mamasylvia in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 23 Dec 2008, 02:48 AM
  4. Store Pickup is only option working...
    By dlowhorn in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Sep 2007, 08:16 PM
  5. 'Store Pickup' option help
    By nsr in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 19 May 2006, 01:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •