Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default UPS shipping returns incorrect quotes Always Free Shipping and other Shipping

    I am having an issue with one of my customizations...

    We have some products that we have free shipping enabled and wanted to offer expedited shipping. To accomplish this I simply removed the if statement here:

    Code:
        // disable only when entire cart is free shipping
    //    if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
    //    }
    The problem is, while it still shows the ups quote, it doesn't update based on quantity. For example, an order of 5 items ships for the same cost as an order of one (ack!). I'm not sure where else to look to get the other shipping forms calculating correctly.

    Thanks,
    Phaylon

  2. #2
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: UPS shipping returns incorrect quotes

    Looks like i failed to mention that that line of code is in /includes/modules/shipping/ups.php
    Until I figure it out, I just reversed my changes.

    Does anyone know how to show expedited shipping options for items that ship free ups ground?

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

    Default Re: UPS shipping returns incorrect quotes

    Edit the shipping module and comment out the test ...
    Code:
        // disable only when entire cart is free shipping
    //    if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
    //    }
    Next, go to the shipping class and add the code in RED:
    Code:
      function calculate_boxes_weight_and_tare() {
        global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;
    
    
    // bof: add back Always Free Shipping weight
        $total_weight += $_SESSION['cart']->free_shipping_weight;
    // eof: add back Always Free Shipping weight
    
        if (is_array($this->modules)) {
    Make sure you have the FREE SHIPPING! freeshipper installed ... and now you will see the Free Shipping *and* the regular shipping ...

    NOTE: make sure you add Product Weight to the Products marked as Always Free Shipping so that you get the rates quoted ...
    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. #4
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: UPS shipping returns incorrect quotes

    Ahh beautiful. Was having trouble finding the functions responsible. Thanks Ajeh!

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

    Default Re: UPS shipping returns incorrect quotes

    You are most welcome ... thanks for the update that this allows you to use both Always Free Shipping and UPS shipping quotes at the same time ...
    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
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: UPS shipping returns incorrect quotes

    Well I thought this solution was the end of the issue, but it seems not... This DID fix the original problem of multiple products processing shipping as a single item, but it has created another issue.

    The Quote's provided from UPS are correct, but the cost listed on the subtotal line used to calculate the order total is incorrect. It is over charging significantly. From my testing I have found it is charging for double the weight. *ack*

    Removing the edits to calculate_boxes_weight_and_tare() effects the quote only not the actual charge listed in the subtotal.

    Any Ideas?

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

    Default Re: UPS shipping returns incorrect quotes

    What are your settings in the Configuration ... Shipping/Packaging ...

    When you go to the Modules ... Shipping ... and click on UPS ... what are the settings in the right panel?
    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. #8
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: UPS shipping returns incorrect quotes

    Quote Originally Posted by Ajeh View Post
    What are your settings in the Configuration ... Shipping/Packaging ...
    Enter the Maximum Package Weight you will ship 500
    Package Tare Small to Medium - added percentage:weight 10:1
    Larger packages - added packaging percentage:weight 10:3
    Display Number of Boxes and Weight Status: 0
    Order Free Shipping 0 Weight Status: 0
    Shipping Estimator Display Settings for Shopping Cart 2
    Display Order Comments on Admin Invoice 1
    Display Order Comments on Admin Packing Slip 1

    Quote Originally Posted by Ajeh View Post
    When you go to the Modules ... Shipping ... and click on UPS ... what are the settings in the right panel?
    Enable UPS Shipping: True

    UPS Pickup Method: RDP

    UPS Packaging? CP

    Residential Delivery? RES

    Handling Fee: 4

    Handling Per Order or Per Box: Box

    Tax Class: --none--

    Tax Basis: Shipping

    Shipping Zone: --none--

    Sort order of display: 0

    Shipping Methods are: 2d air, 3d standard, ground, and worldwide express.

    I don't see anything in there that was changed.

    I create a cart and get quoted $65 and in the totals area its $88.39. When I change the quantity to 2, the quote shows $88.39. Matching to the cent doesn't seem coincidental. But I also noticed that my cart displays: Total Items: 2 Weight: 0lbs.

    Could it be the actual shipping line item in the order total isn't using calculate_boxes_weight_and_tare()?

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

    Default Re: UPS shipping returns incorrect quotes

    You need to make the setting for:
    Enter the Maximum Package Weight you will ship 500
    a valid amount for UPS, such as the default of 50 or 70 ...

    Your Tare Rates are adding 10% + 1 lb to the order for Small and Medium boxes and 10% plus 3 pounds to the order for Large boxes ...
    Package Tare Small to Medium - added percentage:weight 10:1
    Larger packages - added packaging percentage:weight 10:3
    If you have 0 weight on the order, then you are just getting quotes on the Tare Rates ...

    What weight do you have set on the Product Weight?
    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. #10
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: UPS shipping returns incorrect quotes

    Embarrasing I didn't include that... It is set to 4 lbs. *blush*

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v154 Always Free Shipping and UPS
    By joepixel in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 2 Feb 2016, 08:36 PM
  2. v139h Free shipping to just 1 country using free shipper and Yes, Always Free Shipping
    By boomy in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 20 Oct 2014, 01:43 AM
  3. I want: Always Free Shipping to USA Only & No Shipping to Any Other Country
    By jane in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 11 Dec 2010, 01:46 AM
  4. Replies: 5
    Last Post: 10 Sep 2010, 01:50 AM
  5. How to show Free Shipping AND other shipping options?
    By LRS in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 20 Jul 2010, 08:25 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