Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Add to UPS shipping price for one item?

    Hello,

    I'm using the UPS shipping module for a customer and it's working great. Although, there is one item that requires a greater shipping/handling fee than what UPS calculates. How can I add to the UPS calculated shipping fee for one item, or can I have that one item use another shipping module?

    Thanks!

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

    Default Re: Add to UPS shipping price for one item?

    You could test the cart for the products_id to get the quantity in the cart:
    $_SESSION['cart']->in_cart_check('product_id','12')

    Example: in the USPS shipping module to add 7.50 for each Product that is products_id 12 in the cart:
    /includes/modules/shipping/usps.php

    you can use:
    Code:
              $cost = preg_replace('/[^0-9.]/', '',  $cost);
    // bof: add additional 7.50 for each products_id 12 in the cart
    global $cart;
    $chk_cart_products_id_12 = $_SESSION['cart']->in_cart_check('products_id','12');
    $additional_charge = $chk_cart_products_id_12 * 7.50;
    
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost * $shipping_num_boxes) + $additional_charge + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );
    // eof: add additional 7.50 for each products_id 12 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!

  3. #3
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Add to UPS shipping price for one item?

    Thank you Ajeh, that was really helpful. I appreciate it! Sorry it took so long to get back here and thank you.

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

    Default Re: Add to UPS shipping price for one item?

    You are most welcome ... thanks for the update that this worked 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.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!

 

 

Similar Threads

  1. How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 items?
    By MarleneF in forum Built-in Shipping and Payment Modules
    Replies: 36
    Last Post: 31 Aug 2011, 04:15 PM
  2. USPS shipping on all except one item need UPS
    By pmorelli in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 26 Nov 2008, 04:25 AM
  3. How do I add quantity to one specific size for one Item?
    By Moy2005 in forum Setting Up Categories, Products, Attributes
    Replies: 18
    Last Post: 20 Oct 2008, 07:45 PM
  4. Shipping: base price + price for each additional item
    By amieco in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 26 Jun 2007, 06:25 PM
  5. One Price for First item and X amount for additional
    By thevintagesound in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Dec 2006, 04:15 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR