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

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
    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!]
    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!]
    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
    Jun 2008
    Posts
    20
    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 [email protected]

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

  9. #9
    Join Date
    Apr 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I unfortunately need to use Zones as the USPS module is messed up always giving the wron price. Having said that I am useing Zones but cannot get the 1st class option to show for something under 3 oz's

  10. #10
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Different shipping methods for different categories

    Linda, how would i use this with the Module called Big Royal Mail, found here https://www.zen-cart.com/downloads.p...=190&styleid=2

    Also I have three categories which are virtual products and two categories that aren't

    Category One requires: Free Shipping, Next Day Delivery and Saturday Delivery

    Category Two: No Shipping (Virtual)

    Category Three: No Shipping (Virtual)

    Category Four: No Shipping (Virtual)

    Category Five: Big Royal Mail Shipping Methods

    Using your code

    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;       } 
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

 

 
Page 1 of 2 12 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

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