Results 1 to 8 of 8
  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
    69,402
    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.5]
    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!

  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
    69,402
    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.5]
    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!

  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
    69,402
    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.5]
    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!

  7. #7
    Join Date
    Oct 2009
    Posts
    35
    Plugin Contributions
    0

    Default 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!

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    Thanks for the update that this was able to work for you ...
    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.5]
    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!

 

 

Similar Threads

  1. v150 Display product only - not sell them.
    By asuccar in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 10 May 2012, 10:01 AM
  2. Sell a product with pickup only option - Not shipped at all
    By john_zaneta in forum General Questions
    Replies: 1
    Last Post: 7 Dec 2011, 08:30 PM
  3. 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
  4. limitlimited shipped methods only with one categories
    By kobra8 in forum Managing Customers and Orders
    Replies: 29
    Last Post: 17 Oct 2009, 01:19 AM
  5. 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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR