ssolovey / ecp

ECP - Ecommerce project based on Magento
Open Software License 3.0
1 stars 0 forks source link

new shipping service #349

Closed ssolovey closed 8 years ago

ssolovey commented 8 years ago

Address: http://webservice.ratelinxapp.com/ratelinxwebservice/ratelinx.asmx

Client ID = ETE Username = Webservice Password = eteweb1

RateLinx WebService Specifications.pdf

NOTE: please do not implement anything yet. We first of all have to prepare estimations. In terms of UI everything should remain as much the same as possible. Ideally only remote calls to be replaced with new ones.

SkyLark commented 8 years ago

Specification link is broken

ssolovey commented 8 years ago

updated the link and tested. should work)

SkyLark commented 8 years ago

investigation - 3 hours spent

ssolovey commented 8 years ago

some answers are provided from the service company: ShippingRateParams_answers.xlsx

I asked them also to share some samples of the code. Hopefully they can do that.

Also there is a question about some additional locations to be define. Right now they support shipping only from Milwaukee but they will define new ones and provide response soon.

Can you please review answer and let me know if something more required?

SkyLark commented 8 years ago

Сережа привет,

Я добавил свои вопросы рядом с ответами сервисной компании. (желтый) Пусть дадут пока какие-то дефолтные значения, чтобы я начал имплементацию логики.

Спасибо,

Игорь

2016-02-26 5:06 GMT+02:00 Sergii Solovei notifications@github.com:

some answers are provided from the service company: ShippingRateParams_answers.xlsx https://github.com/ssolovey/ecp/files/147620/ShippingRateParams_answers.xlsx

I asked them also to share some samples of the code. Hopefully they can do that.

Also there is a question about some additional locations to be define. Right now they support shipping only from Milwaukee but they will define new ones and provide response soon.

Can you please review answer and let me know if something more required?

— Reply to this email directly or view it on GitHub https://github.com/ssolovey/ecp/issues/349#issuecomment-189089511.

ssolovey commented 8 years ago

A bit more info: Height – 24.0” Width – 24.0” Length – 48.0” Weight – 175.0 lbs.

I'm pushing customer and service provider for rest of the answers.

ssolovey commented 8 years ago

more values: Freight class is 85 Default value should be 1 piece No pallet info is required (put 0)

ssolovey commented 8 years ago

Some more info from customer: ShippingRateParams_answers_v3.xlsx ETE ShipLinx Setup Doc.docx

I wrote some questions to clarify how to use DOC-file info. Can you please also have a look? Maybe you have better idea than me.

SkyLark commented 8 years ago

I would like to remind again that we need Shipping estimation only to get the fastest and carrier. The price is hardcoded for the compony in the profile. This shipping estimation is just for information. We don't handle all shipping service logic. Do we need now to handle all Shipping logic? It seems that this service is very complicated.

SkyLark commented 8 years ago

Regarding the Setup doc. I dont think that we need all that logic. We just need some hardcoded values for estimation. Our logic doesn't have all that options so we wouldn't be able to make precise estimation for each product

SkyLark commented 8 years ago

Please ask the Shipping service about the date when it will be possible to work with resource.

Yesterday, the service worked and I was able to recieve the estimation responses but today I'm recieving the following message -

"2004050No carriers available in the rate shop

Additional Info:
ShipVia (RNLO) Error: IGNORE; "

SkyLark commented 8 years ago

This is the complete request object that I send

$params = array(

                "ClientID" => "ETE",
                "Username" => "Webservice",
                "Password" => "eteweb1",
                "BillingType" => "1",
                "LocationID" => "1",
                "ShipDate" => date("m.d.y"),
                "ExpectedCount"=> "1",

                "ShipVia" => array(

                        "ShipVia" => "LTL",
                ),

                "Addresses" => array(

                        "Address" => array(

                                "Account"=>"",
                                "Address1"=>"address line 1",
                                "Address2"=>"address line 1",
                                "AddressType"=>"SHIPTO",
                                "Attention"=>"qeqwe",
                                "City"=>"Chicago",
                                "Country"=>"US",
                                "Phone"=>"555-555-1234",
                                "Name"=>"Vandilay Industries",
                                "State"=>"IL",
                                "Zip"=>"60601"

                        )
                ),

                "SpecialServices" => array(

                    "SpecialService" => array(

                        "ID" => "",
                        "Value"=>""
                    )

                ),

                "Packages"=>array(

                    "Package"=>array(

                        "Height"=>"24.0",
                        "Length"=>"48.0",
                        "Width"=>"24.0",
                        "ActualWeight"=>"175.0",
                        "SpecialServices"=> array(

                            "SpecialService"=>array(

                                "ID" => "",
                                "Value"=>""

                            )

                        )
                    )

                ),

                "BOLDetails"=>array(

                    "BOLDetail"=>array(

                        "Class"=>"85",
                        "Pallets"=>"0",
                        "Pieces"=>"1",
                        "Height"=>"24.0",
                        "Length"=>"48.0",
                        "Width"=>"24.0",
                        "Weight"=>"175.0"
                    )

                )

    );
SkyLark commented 8 years ago

Question:

Previously in Shipping estimation we used a _DISTANCE _value to determin the best carrier. As you remember we have a list of warehouses that should be used according to the ZIP value that is entered to the form. https://docs.google.com/spreadsheets/d/1z0DZClK-PzFEAr_FurWdQHAJ71qTFgqMJQZCTF-LFU4/edit#gid=28198171

The logic is following:

  1. Get the State label according to the entered ZIP value;
  2. Get available warehouses for this area;
  3. Run shipping service only for this selected warehouses;
  4. Get the fastest wharehouse;
  5. Get the closets warehouse according to the DISTANCE value.

The current service doesn't have DISTANCE value. It was a key value for our shipping estimation logic.

Is it acceptable if we estimate only by Shipping time? Also according to the current logic we don't care about price. The shipping price is hardoced in the company profile

ssolovey commented 8 years ago

got some update from service: The location and shipvia setup is complete for ShipLinx. This means the setup for the web services is complete as well.

ETESLX Locations.xlsx

IDs are in column B, such as 3236, 3237, etc.

Please check if it works. We probably can discuss logic tomorrow over Skype.

SkyLark commented 8 years ago

Сережа,

У меня Exel не открывается. Пересохрани его в другой более ранней версии пожалуйста Office 2010.

Спасибо,

Игорь

2016-03-18 23:52 GMT+02:00 Sergii Solovei notifications@github.com:

got some update from service: The location and shipvia setup is complete for ShipLinx. This means the setup for the web services is complete as well.

ETESLX Locations.xlsx https://github.com/ssolovey/ecp/files/180442/ETESLX.Locations.xlsx

I guess IDs are "V1", "V2", ...

Please check if it works. We probably can discuss logic tomorrow over Skype.

— You are receiving this because you were assigned. Reply to this email directly or view it on GitHub https://github.com/ssolovey/ecp/issues/349#issuecomment-198558819

SkyLark commented 8 years ago

Service is working not with all ZIP codes.

For example if Location ID is 3237 and the Destination ZIP is 60001 the Service sends the response with the shipping estimation info, BUT if the Destination ZIP is 15656 the Service sends an error (error id = "2004049" , error desc = "No carriers available in the rate shop")

Please clarify this topic with the Shipping Service. What is the limitation for Destination ZIP codes?

If there is some limitations the customer should revise the warehouse list -
https://docs.google.com/spreadsheets/d/1z0DZClK-PzFEAr_FurWdQHAJ71qTFgqMJQZCTF-LFU4/edit#gid=28198171

SkyLark commented 8 years ago

The new shipping service is implemented c6813e2b21282a87931abe2f55752aafc72c04c1 All new logic related to the service is integrated. The price calculation was refactored. Moved from JS to Backend.

Issues related to the Shipping recalculation will be implemented within this task - https://github.com/ssolovey/ecp/issues/342