Page 2 of 53 FirstFirst 12341252 ... LastLast
Results 11 to 20 of 522
  1. #11

    Default Re: Different shipping methods for different categories

    I'm trying to do something similar, and this is the closest thread I've found to it ;-)

    If the total value of items from a particular master category in the cart is less that £100, invoke the 'Low Order Fee' shipping module.

    Is there a similar code patch to do this?

    Thanks
    Pa

  2. #12
    Join Date
    Oct 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Where did you place this code?

    I have a region table shipping module installed. I wanted to use this for few categories only. And i want to use flat rate for other categories. I have tried to use your code. but it does not work. Please help me here.




    Thanks,
    Krishna Peri

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,875
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    All of the Shipping Modules have their code stored in the:
    /includes/modules/shipping

    directory ...

    Each has a similar section of code for the:
    $this->enabled

    that can be controlled in a similar manner ...

    The example posted was for the Item Rate item shipping module ... you want to do this for the Table Rate table shipping module ... see if you can't follow along on the similarities to get this working for you and post back your results ...
    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. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,875
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by pasher View Post
    I'm trying to do something similar, and this is the closest thread I've found to it ;-)

    If the total value of items from a particular master category in the cart is less that £100, invoke the 'Low Order Fee' shipping module.

    Is there a similar code patch to do this?

    Thanks
    Pa
    You would need to write a function to calculate the totals from the master_categories_id in question and see what that total is ...

    Based on this total, you could them customize the Low Order Fee ot_loworderfee order totals module in:
    /includes/modules/order_total

    to manage this for you in a similar manner ...
    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. #15
    Join Date
    Dec 2007
    Location
    Michigan
    Posts
    160
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I would like to do what the original poster asked. If I want to use "per item" on more than one category, do I have to duplicate the

    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0)) {
    $this->enabled = false;


    for each category?

    Or can I list the others within the same line as the '17' ?

    example: 'master_categories_id','17','18', '20')


    Thank you.

    G

  6. #16
    Join Date
    Apr 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Hi ..

    I need this code but quite the other way around.

    I have 4 categories BSC, SPC, RAI and VAN.

    I would like to enable a shipping method called "Distingo" when only RAI products are in cart.
    When RAI + other cat products (or only other Cat products) are in cart then I need to use the "Colissimo" method.

    The other tricky point is :
    when I need to send 1 or 2 RAI products, shipping cost is 2.50
    when I need to send 2 to 4 RAI products, shipping cost is 3.00
    when I need to send 5 to 10 RAI products, shipping cost is 4.00
    and for more than 10 RAI products, I would send it "Colissimo".

    How shall I modify that code to make it work ?

    Thanks

    Xam

  7. #17
    Join Date
    Apr 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I should maybe add that the "Distingo" method should be only available for 1 of my Zones

  8. #18
    Join Date
    Apr 2008
    Location
    Georgia
    Posts
    15
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Help?

    I have a master category "15" that I want to only use UPS for shipping, but everything else on the site I don't want to show UPS as an option... How do I do this?

    Thanks in advance.

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

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by CWSites View Post
    Help?

    I have a master category "15" that I want to only use UPS for shipping, but everything else on the site I don't want to show UPS as an option... How do I do this?

    Thanks in advance.
    What happens when 1 product is in 15 and 3 products are in other categories?

    If then you still do not want UPS, then you can block UPS when the whole cart is not categories_id 15 ...

    If you need 1 product to be from 15 to allow UPS you can do that too ...

    But you need to further define which way you want this to go ...♠
    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. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,875
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Xam View Post
    Hi ..

    I need this code but quite the other way around.

    I have 4 categories BSC, SPC, RAI and VAN.

    I would like to enable a shipping method called "Distingo" when only RAI products are in cart.
    When RAI + other cat products (or only other Cat products) are in cart then I need to use the "Colissimo" method.

    The other tricky point is :
    when I need to send 1 or 2 RAI products, shipping cost is 2.50
    when I need to send 2 to 4 RAI products, shipping cost is 3.00
    when I need to send 5 to 10 RAI products, shipping cost is 4.00
    and for more than 10 RAI products, I would send it "Colissimo".

    How shall I modify that code to make it work ?

    Thanks

    Xam
    You would need a customization on the shipping modules to test the cart content to determin which module to enable and then set the prices ...

    From what this looks like, on the pricing the Zone Rate zones could be used for both the pricing method and the Zone filtering ...

    The customization on what shipping method is used can be filtered in a similar manner to how the master_categories_id is used in the example above ...

    If you are a coder, this just takes a bit of thought to manage the filters for enabling the right shipping module ...

    If you are not a coder, then you may wish to have someone write this 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.1]
    Officially PayPal-Certified! Just click here

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

 

 
Page 2 of 53 FirstFirst 12341252 ... 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
  •