Page 1 of 2 12 LastLast
Results 1 to 10 of 522

Hybrid View

  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
    64,726
    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.1]
    Officially PayPal-Certified! Just click here

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

  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
    64,726
    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.1]
    Officially PayPal-Certified! Just click here

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

  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
    Jun 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    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 ...
    Can someone help with coding the item.php file (or another area) if I want certain items to not have store pick up? I want all my items to have shipping all the time.

  8. #8
    Join Date
    Dec 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I can certaintly help you on this..

    Please email me at cs@cellmonsters.com

    Currently I have been successful at coding the shipping options to include more than one master category.

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

    Default Re: Different shipping methods for different categories

    You are looking at totally customized shipping modules to manage shipping based on these Category issues ...
    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 ...

  10. #10
    Join Date
    Jul 2009
    Posts
    468
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    so it requires alot of customisation?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need Help with Shipping Methods
    By bigcaat in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Jul 2007, 04:35 PM
  2. Selecting Shipping Methods with free shipping
    By pasi in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 15 Apr 2007, 05:28 PM
  3. Shipping Estimator Sort Shipping Methods
    By sitehatchery in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Apr 2007, 05:34 AM
  4. List shipping methods automatically on Shipping and Return Page
    By gems14k in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 16 Jul 2006, 12:00 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
  •