Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Apr 2011
    Posts
    8
    Plugin Contributions
    0

    Default Can I have a handling fee for ONE product or category?

    My client is going to have a flat fee shipping system for her zen cart but there is one item that is extremely heavy that she wants to have a handling fee (to bring the shipping costs for that item more in line with what she'll need to pay).

    How do I apply a handling fee for just one product or all products in one category?

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Can you have a handling fee for ONE product or category?

    My client is going to have a flat fee shipping system
    Flat rate is per order if that is what is desired
    Other modules can be per item if that fits better

    If flat rate would work for all but the one item then

    Do not display item weights
    Use the table rate shipping module
    Enter item weights as light like 1lb for all items except the one item to charge more and make it like 1000lbs
    Make the table to encompass all light weight items
    Set the Table Method to weight

    Table could look like
    Code:
    999:5.50,1000:30.00
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Can you have a handling fee for ONE product or category?

    So this would also work if we had 3 different weight classes for her products too, yes?

    thank you SO much for your help :)!

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Can you have a handling fee for ONE product or category?

    So this would also work if we had 3 different weight classes for her products
    As long as you "fake" the weights and make them distinct enough

    You need to test the condition if a customer buys several low weight items and one or both of the higher weight items in the same order and adjust until you obtain the desired result
    Zen-Venom Get Bitten

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

    Default Re: Can you have a handling fee for ONE product or category?

    You could test for how many of a products_id are in the cart:
    Code:
    // how many Products for products_id 19 are in the cart
    global $cart;
    $chk_product_19 = $_SESSION['cart']->in_cart_check('products_id','19');
    
    // how many Products for products_id 19 are in the cart
    $chk_product_32 = $_SESSION['cart']->in_cart_check('products_id','32');
    
    $extra_charge = ($chk_product_19 * 7.50) + ($chk_product_32 * 2.50);
    Then add the $extra_charge to the cost in the shipping module ...

    NOTE: the global $cart; is needed if the function of the shipping module you are in does not already have that in it ...
    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
    Jan 2008
    Location
    Switzerland
    Posts
    38
    Plugin Contributions
    0

    Default Re: Can you have a handling fee for ONE product or category?

    Quote Originally Posted by Ajeh View Post
    You could test for how many of a products_id are in the cart:
    Code:
    // how many Products for products_id 19 are in the cart
    global $cart;
    $chk_product_19 = $_SESSION['cart']->in_cart_check('products_id','19');
    
    // how many Products for products_id 19 are in the cart
    $chk_product_32 = $_SESSION['cart']->in_cart_check('products_id','32');
    
    $extra_charge = ($chk_product_19 * 7.50) + ($chk_product_32 * 2.50);
    Then add the $extra_charge to the cost in the shipping module ...

    NOTE: the global $cart; is needed if the function of the shipping module you are in does not already have that in it ...
    I need to do a similar thing. I have products which are large, but even though the weight is low for these items, I need to charge a higher rate (as the postage costs more due to their bulkiness).

    My normal shipping is Zone Rates based on weight and I would like to add a variable for certain product IDs that will add an extra amount (but only when these products are in the shopping cart).

    The above post looks like exactly what I need, but I'm not sure what files to edit and where to put the code exactly.

    I have two products, in which if either of them are in the cart, I need to charge the extra fee. Their IDs are 1393 and 1394.

    Any help would be greatly appreciated. Thanks!
    Tracey Haas
    Temporary Tattoos

  7. #7
    Join Date
    Jan 2008
    Location
    Switzerland
    Posts
    38
    Plugin Contributions
    0

    Default Re: Can you have a handling fee for ONE product or category?

    Hi, does anybody know where to put this code?
    Tracey Haas
    Temporary Tattoos

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

    Default Re: Can you have a handling fee for ONE product or category?

    You would add the code in RED to this code in the:
    /includes/modules/shipping/zones.php

    Code:
        $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
    
    // how many Products for products_id 19 are in the cart
    global $cart;
    $chk_product_19 = $_SESSION['cart']->in_cart_check('products_id','19');
    
    // how many Products for products_id 19 are in the cart
    $chk_product_32 = $_SESSION['cart']->in_cart_check('products_id','32');
    
    $extra_charge = ($chk_product_19 * 7.50) + ($chk_product_32 * 2.50);
    Then add the $extra_charge to this code:
    Code:
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => $shipping_method,
                                                         'cost' => $extra_charge + $shipping_cost)));
    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
    Jan 2008
    Location
    Switzerland
    Posts
    38
    Plugin Contributions
    0

    Default Re: Can you have a handling fee for ONE product or category?

    Quote Originally Posted by Ajeh View Post
    You would add the code in RED to this code in the:
    /includes/modules/shipping/zones.php

    Code:
        $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
    
    // how many Products for products_id 19 are in the cart
    global $cart;
    $chk_product_19 = $_SESSION['cart']->in_cart_check('products_id','19');
    
    // how many Products for products_id 19 are in the cart
    $chk_product_32 = $_SESSION['cart']->in_cart_check('products_id','32');
    
    $extra_charge = ($chk_product_19 * 7.50) + ($chk_product_32 * 2.50);
    Then add the $extra_charge to this code:
    Code:
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => $shipping_method,
                                                         'cost' => $extra_charge + $shipping_cost)));
    Thanks so much Ajeh! That was really easy and worked perfectly

    Just wondering if there's a work-around in the code to charge an additional 7.50 if either, OR both, are in the cart and only 7.50, as opposed to charging both 7.50 and then 2.50 when both are in the cart?

    Thanks!
    Tracey Haas
    Temporary Tattoos

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

    Default Re: Can you have a handling fee for ONE product or category?

    You can change the formula to anything you want for what is charged ...
    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!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 19 Sep 2012, 03:49 AM
  2. Per item handling charge for one category?
    By dkervin in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 16 Nov 2010, 05:38 AM
  3. Handling Fee for One Zone.
    By laydiefa in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Jun 2008, 04:44 AM
  4. Individual Handling Fee for Product
    By edusupport in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Feb 2008, 05:20 PM
  5. Freeshipper Handling Fee - What have I done wrong?
    By fancypants in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 11 Jul 2007, 06:03 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