knitting

Author Topic: UPS Plugin configuration problem "We are sorry, no shipment method matches ..."  (Read 2210 times)

alatak

  • Development Team
  • Hero Member
  • *
  • Posts: 1271
    • alatak.net
Hello

It means that the from your shipping place to the destination, for your cart weigth, UPS returns the following delivery services

  • UPS Ground
  • UPS Three-Day Select®
  • UPS Second Day Air A.M.®
  • UPS Next Day Air®
  • UPS Next Day Air Saver®
  • UPS Next Day Air® Early A.M. SM
  • UPS Next Day Air®

And in your configuration you have selected the following services:
  • UPS Standard
  • UPS saver
And they are not in the list of the returned delivery services by UPS.
That is the reason why no shipment are listed.

To select the correct services, you can read this document:
http://www.ups.com/media/en/standard_list_rates.pdf

The section "choosing a Service" will help you to choose the correct service for you.

You can also have a look at this page:
http://www.ups.com/content/us/en/shipping/time/service/index.html?WT.svl=SubNav

If you click on the International tab, you will see that UPS standard is only for international deliveries.
www.alatak.net
Book about VirtueMart 2 in french : http://tinyurl.com/a63j643

alatak

  • Development Team
  • Hero Member
  • *
  • Posts: 1271
    • alatak.net
Hello,

I have updated the tutorial (http://extensions.virtuemart.net/all-tutorials/8-shipment/5-ups-shipment-plugin)
I hope those informations will help everybody to configure the UPS shipment.
Please note that the informations that are displayed when you are logged as vendor are only available from the version 1.9 of the plugin. You can get the latest version via this link: http://extensions.virtuemart.net/my-orders
www.alatak.net
Book about VirtueMart 2 in french : http://tinyurl.com/a63j643

MickeyBlueEyes

  • Beginner
  • *
  • Posts: 13
I think I'm blind. This is all I see there, There is nothing else to choose from. Why don't you log in with given username and password and see for your self

alatak

  • Development Team
  • Hero Member
  • *
  • Posts: 1271
    • alatak.net
Hello,
Quote
I think I'm blind. This is all I see there and choose from
lol... i hope not :)

I can see that the country in the shipment configuration is United states.
but what is the country of your shop?
Go in Shop>Shop, and "Additional Information" tab

Because you should have a lot more choices.
www.alatak.net
Book about VirtueMart 2 in french : http://tinyurl.com/a63j643

MickeyBlueEyes

  • Beginner
  • *
  • Posts: 13
LOL I'm not blind anymore. I just filled up those fields and now i have all the choices. Thanks

MickeyBlueEyes

  • Beginner
  • *
  • Posts: 13
It is working now, but only if i have weight more than 0.1 pound/kilogram, anything less throws an error

So a tweek would be nice, if the total weight is less then 0.1lb then just adjust the weight to min acceptable value.

MickeyBlueEyes

  • Beginner
  • *
  • Posts: 13
I'm trying to add 0.1 lb (which is arround 50 gramm - any package material will have that weight) just to meet the minimum weight required by UPS which is 0.1 LB/KG
Problem is that our products mostly have weight 10-20 gramms, so they not meet the min weight required by UPS



   /**
    * Get the total weight for the order, based on which the proper shipping rate
    * can be selected.
    *
    * @param object $cart Cart object
    * @return float Total weight for the order
    */
   protected function getOrderWeight (VirtueMartCart $cart, $to_weight_unit) {

      $weight = 0;
      $to_weight_unit = substr ($to_weight_unit, 0, 2);
      foreach ($cart->products as $product) {
         $weight += (ShopFunctions::convertWeigthUnit ($product->product_weight, $product->product_weight_uom, $to_weight_unit) * $product->quantity);
      }
      return $weight;
   }


so instead of  $weight = 0;   it would be    $weight = 0.1;

but there is no luck with this change

alatak

  • Development Team
  • Hero Member
  • *
  • Posts: 1271
    • alatak.net
Hello,

I have tested also. The request is sending the correct value, but UPS returns "Info : Packages must weigh more than zero pounds."
I do not see in the documentation where the minimum weigth value is.
www.alatak.net
Book about VirtueMart 2 in french : http://tinyurl.com/a63j643

alatak

  • Development Team
  • Hero Member
  • *
  • Posts: 1271
    • alatak.net
Hello,

ok i understood: 20 grams = 0.04 LBS,
and the weight is sent to UPS with one decimal, so 0 LBS is sent.
I have fixed that for the version 1.10.

The fix is  not done in that function getOrderWeight(), but before sending the request to UPS.
Txs MickeyBlueEyes
www.alatak.net
Book about VirtueMart 2 in french : http://tinyurl.com/a63j643

MickeyBlueEyes

  • Beginner
  • *
  • Posts: 13
Thanks for helping me out :-)

elijahweb

  • Beginner
  • *
  • Posts: 5
Well here I go... gonna download the plugin... hope I have a more simple experience.... ;)

VirtueMart Forum