Page 1 of 56 1231151 ... LastLast
Results 1 to 10 of 552
  1. #1
    Join Date
    Sep 2006
    Posts
    22
    Plugin Contributions
    0

    Default Different shipping methods for different categories

    Hi, I have been searching around a lot and cant seem to find the answer to my question.. I have two categories of which i need to assign different shipping methods for each (Products in 1st category can be shipped with any shipping method but products in category 2 can only be picked up in store, so a forced in store pickup)

    How would i go about doing this?? I read stuff about Mixed Carts, but am unsure what that is.

    Thanks,
    Tyler

  2. #2
    Join Date
    Sep 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Anybody have any ideas??

    Thanks!
    Tyler

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

    Default Re: Different shipping methods for different categories

    You could customize the shipping modules that when a given master_categories_id is in the shopping cart then only Store Pickup storepickup can run ...

    Otherwise, when nothing from that master_categories_id is in the cart then all other Shipping modules run ...

    You should also consider whether you want Store Pickup storepickup to always show as an option ...
    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!

  4. #4
    Join Date
    Sep 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Ok, this is basically what i want to do. Unfortunately i have no idea where to begin (Im new with PHP).

    But to give you some more information, i only have one other shipping option in my cart (2 total with storepickup) which is Per Item. So what i would want to do is in the Per Item shipping module include code somewhere that states if the master_categories_id is 17 (the one i want storepickup on) then disable this shipping module.

    Store pickup can be shown on all other products, it just has to be the only forced option in this one category :)

    Thanks for your help thus far, its so much appreciated!!
    Last edited by tylerd213; 19 Mar 2008 at 11:53 PM.

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

    Default Re: Different shipping methods for different categories

    Let's say you want the Per Item item shipping module to turn off or hide when 1 or more products from categories_id 17 is in the shopping cart ...

    Edit the shipping module:
    /includes/modules/shipping/item.php

    PHP Code:
          // disable only when entire cart is free shipping
          
    if (zen_get_shipping_enabled($this->code)) {
            if (
    $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0) {
              
    $this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true false);
            }
          } 
    This will cause the $this->enabled to evaluate as false and not show the Per Item item shipping module ...
    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!

  6. #6
    Join Date
    Sep 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    We are close!! Thanks so much! But a couple issues:

    It seems to work backwards, it enables per item shipping for the category 17 but disables it for the rest of the categories.

    second in the admin panel when i click on shipping modules it states:
    Fatal error: Call to a member function on a non-object in /home/content/W/o/l/Wolves17/html/cart/includes/modules/shipping/item.php on line 28



    Thanks so much for your help so far! I will be donating

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

    Default Re: Different shipping methods for different categories

    Silly silly me ... such the dyslexic am I ...

    You want this OFF when categories_id is in the shopping cart ...

    Based on the assumption that these products use the master_categories_id 17, you need that to be > 0 so that it sets Per Item item shipping module to a false $this->enabled ...

    I was sorta losing my mind at the time ... t'wasn't nothin' ...
    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!

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

    Default Re: Different shipping methods for different categories

    Let me find the secret code for the admin conflict on the cart ... kinda forgot about that one ...
    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!

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

    Default Re: Different shipping methods for different categories

    This would work better and not make the Admin have a fit:
    PHP Code:
          // disable only when entire cart is free shipping
          
    if (zen_get_shipping_enabled($this->code)) {
              
    $this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true false);
          }

          
    // disable for one master_categories_id
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0)) {
              
    $this->enabled false;
          } 
    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!

  10. #10
    Join Date
    Sep 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Wow, you are awesome! Thank you so much! It works great :)

 

 
Page 1 of 56 1231151 ... LastLast

Similar Threads

  1. Re: Different shipping methods for different categories
    By kaddie in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 19 Nov 2010, 04:37 AM
  2. Replies: 2
    Last Post: 27 Oct 2010, 01:45 PM
  3. Different shipping methods for different categories and mixed categories
    By neit in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Aug 2010, 12:20 AM
  4. Separate Shipping Methods for Different Categories
    By MortalWombat in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 28 Jul 2010, 08:57 AM
  5. Different shipping methods for different product types?
    By talisman-studios in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Sep 2008, 04:59 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