magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

About Shipping method #4297

Closed davidbilly closed 8 years ago

davidbilly commented 8 years ago

Hi guys, i need a shipping method with min weight(KGS).

if a user order an item below 5KG then shipping method will hidden. otherwise it will show.

i tried with UPS, this not working due to always show "Carrier with such method not found: null, ups"

screen shot 2016-04-26 at 1 17 50 am screen shot 2016-04-26 at 1 19 07 am

please help :(

davidalger commented 8 years ago

@davidbilly Could you let us know what version of M2 you installed, how you installed it, what version of PHP / MySql you are using, and if you have any 3rd party modules installed? Trying to collect more info here so the team can try and reproduce the issue. I don't believe 'null' should ever show up in that message on the front, so there is something going awry, that I know ;)

davidbilly commented 8 years ago

Hi @davidalger , My setup : Magento2 : 2.0.4 CE PHP : 5.6.20-1+deb.sury.org~trusty+1 MYSQL : 5.6.30-0ubuntu0.14.04.1 3rd party module : MagePal_GmailSmtpApp and Plumrocket_SocialLoginFree only

Thanks, hope can someone can assist me :)

joni-jones commented 8 years ago

@davidbilly hi, did you configure UPS module? Seems UPS gateway url is missed related on your screenshot. Also, why you has empty shipping address?

davidbilly commented 8 years ago

@joni-jones Hi, im using http://www.ups.com/using/services/rave/qcostcgi.cgi for gateway url.

It's seem cant get the method name. on screenshot the method name is blank. Can i hard code it or something?

Actually i just need its max and min weight condition, not going use the UPS services :)

Still not working :(

For empty shipping address , i use photoshop remove it. due to its personal address :)

joni-jones commented 8 years ago

Please, attach debug or exception log, I've tried for different cases, UPS is works.

davidbilly commented 8 years ago

@joni-jones how about this log?

screen shot 2016-04-26 at 8 39 09 pm screen shot 2016-04-26 at 8 39 31 pm

Thanks for reply :)

joni-jones commented 8 years ago

Sorry, but this log says nothing about your problem, message from this response you got on frontend. Please, attach application debug|exception log.

davidbilly commented 8 years ago

@joni-jones sorry , may i know where i can get those log? i search log from nginx cant find those magento error :(

joni-jones commented 8 years ago

By default application logs located in %application_path%/var/log, also you need to enable debug mode for UPS.

davidbilly commented 8 years ago

@joni-jones how about this: i got it from debug.log

[2016-04-26 13:56:09] main.DEBUG: array ( 'request' => array ( 'accept_UPS_license_agreement' => 'yes', '10_action' => '4', '13_product' => 'GNDCOM', '14_origCountry' => 'MY', '15_origPostal' => '81100', 'origCity' => 'Johor Bahru', '19_destPostal' => '81100', '22_destCountry' => 'MY', '23_weight' => 150, '47_rate_chart' => 'Customer Counter', '48_container' => '00', '49_residential' => '02', 'weight_std' => 'kgs', ), 'result' => 'UPSOnLine5%Unsupported country specified%6920 ', ) {"is_exception":false} [] [2016-04-26 13:56:09] main.DEBUG: Sorry, something went wrong. Please try again or contact us and we'll try to help.: Unsupported country specified {"is_exception":false} []

Seem like not support my country code :(

There's any module that support shipping method with min weight ? Thanks!

Edit: I manage pass-by UPS checking by : $params = [ 'accept_UPS_license_agreement' => 'yes', '10_action' => $rowRequest->getAction(), '13_product' => $rowRequest->getProduct(), '14_origCountry' => 'US',// $rowRequest->getOrigCountry(), '15_origPostal' => '10005',//$rowRequest->getOrigPostal(), 'origCity' => 'New York',//$rowRequest->getOrigCity(), '19_destPostal' => '10005',//$destPostal, '22_destCountry' => 'US',//$rowRequest->getDestCountry(), '23_weight' => '10',//$rowRequest->getWeight(), '47_rate_chart' => $rowRequest->getPickup(), '48_container' => $rowRequest->getContainer(), '49_residential' => $rowRequest->getDestType(), 'weight_std' => strtolower($rowRequest->getUnitMeasure()), ];

But UPS Minimum Package Weight is not working, i was set min 500KG then order item with 1KG. Still can process to payment page :( any idea?

joni-jones commented 8 years ago

The UPS carrier (based on cgi) allows to ship only if origin country is USA, your origin country is Malaysia, that's why you get this error. You can use UPS XML type instead.

davidbilly commented 8 years ago

@joni-jones but i'm actually not using the UPS shipping service. Just need validate the total order is above min weight. Now the problem is Minimum Package Weight is not working :( We using our own lorry to send goods :)

joni-jones commented 8 years ago

If you not use UPS, please, disable it and attach new screenshot with your problem.

davidbilly commented 8 years ago

@joni-jones, noted. will open new issue. Thanks for help.