Page 21 of 56 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 552
  1. #201
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    What happens when I order 2 Products from 1 of the 5 categories_id and 10 Products from the other 15 categories_id ...

    Is the low order amount based on the "order total" or is it based on the total of just those 2 Products ...

    Or, do you just care if the "low order total" is <= "order total" when ALL of the Products in the cart come from the 5 categories_id ...

    Or ... could you get really, really specific here and type really, really slow ...
    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!

  2. #202
    Join Date
    Nov 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Thanks again.
    The way it's going to be set up is - the categories will be exclusive to different customers.
    I change the wording from low order fee to "handling fee".
    Some categories will have the handling fee and some will not.
    So clients will only be ordering from one categorie and categories will never be mixed in the carts.

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

    Default Re: Different shipping methods for different categories

    Would something like this work:
    Code:
    // count how many products are in the cart from various categories
    // add a new check for each categories_id to match a master_categories_id
    global $cart;
    $chk_cats = 0;
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','4');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','10');
    
    if ( ($pass == true) && ($chk_cats > 0) ) {
      $pass = 'true';
    }
    //        if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) < MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {
            if ( ($pass == true) && ( $order->info['subtotal'] < MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {
    This example is testing for products in the categories_id 4 and 10 where master_categories_id match these values ...

    You can use the code:
    Code:
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','10');
    for each categories_id you need to check for by just adding them one by one and just change the 10 to the master_categories_id that needs to be checked 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!

  4. #204
    Join Date
    Nov 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    This did not work but it's the concept I'm looking for.
    I'd like to be able to add additional categories like you did here:
    "$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','10');"

    Here is the code I am using. (it's on line 37 of includes/modules/order_total/ot_loworderfee.php)

    // if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) < MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {
    if ( ($pass == true) && ($_SESSION['cart']->in_cart_check('master_categories_id','2') > 0) ) {
    $charge_it = 'true';
    $cart_content_type = $_SESSION['cart']->get_content_type();
    $gv_content_only = $_SESSION['cart']->gv_only();
    if ($cart_content_type == 'physical' or $cart_content_type == 'mixed') {
    $charge_it = 'true';
    } else {

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

    Default Re: Different shipping methods for different categories

    This gives the number of products in multiple categories for categories 4 and 10 ... just keep adding new lines until all are covered and the $chk_cats will have the number of items from all the categories checked:

    Code:
    // count how many products are in the cart from various categories
    // add a new check for each categories_id to match a master_categories_id
    global $cart;
    $chk_cats = 0;
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','4');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','10');
    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. #206
    Join Date
    Nov 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    how would I incorporate that into my code above?
    sorry, I'm new at this.

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

    Default Re: Different shipping methods for different categories

    You are using this IF statement:
    Code:
    if ( ($pass == true) && ($_SESSION['cart']->in_cart_check('master_categories_id','2') > 0) ) {
    After all the calculations are done you can use, instead the total in:
    $chk_cats

    By replacing it with:
    Code:
    if ( ($pass == true) && ($chk_cats > 0) ) {
    So by adding a line for each category to the code above that, you can add as many categories that you want to check the master_categories_id on ...
    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. #208
    Join Date
    Nov 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    THANKS !!! That did it !!
    You are a life saver !!
    Thanks Again.

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

    Default Re: Different shipping methods for different categories

    You are most welcome ... thanks for the update that this worked for you ...

    Remember us when you are rich and famous ...
    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. #210
    Join Date
    Dec 2009
    Location
    California
    Posts
    25
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Alright... So, I asked a question similar to this once before - and I thought I got it answered...but now I'm not so sure.

    MY ISSUE:
    I have two products (in category 1) that cannot be shipped together. Fortunately, they are the heaviest products, and so I was able to fix that by lowering the maximum permitted weight per box to where they barely won't fit together. However, there is one of the nine products (in category 2) that cannot ship with the products in category 1 simply because it won't fit in the box. It is a relatively lightweight product, however, and so the weight rule won't work with it.

    MY CURRENT SETTINGS:
    I have a mod installed to allow UPS to read the dimensions of my products - because of the oversizedness of the products in category 1. The kits in category 1 are as follows:
    21 lb
    45" x 20" 10"

    So, my box weight limit is 40lb, which automatically disallows the two kits to be in a box together.

    However, the bucket (in category 2) is as follows:
    3 lb
    16" x 14" x 14"
    So, obviously it is too light to get thrown into a second box with the weight limit, and I can't lower the weight limit to accommodate it because than other items, which are heavier, won't be able to be included in with the products in category 1.

    Any thoughts would be helpful!

 

 
Page 21 of 56 FirstFirst ... 11192021222331 ... 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