ssolovey / ecp

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

shipping module logic change #314

Closed ssolovey closed 9 years ago

ssolovey commented 9 years ago

Please find some changes customer want's to have: For selecting shipper we use both variables: time and cost. If customer is in LA and we don’t have product in closest warehouse we will ship from Milwaukee.

So it looks like we have to check first closest location, if it doesn't have required item. We should ship from Milwaukee.

NOTE: Please do just estimations in hour and investigate how to implement this. Do not implement it yet.

SkyLark commented 9 years ago

Shipping service has the field "Distance". This field could be used to determine the closest location.

It could be implemented approximately in 2 hours.

ssolovey commented 9 years ago

OK, I think we should implement this.

SkyLark commented 9 years ago

Shipping logic is extended with new rule. Calculate the closest distance to warehouse.

ssolovey commented 9 years ago

Please check: Automatic Transmissions>Ford>2004>Expedition>5.4L>4WD>4R70W

Ship to ZIP: 90001

I've got following result: Ship From: Availability: Immediate Ship Time: 1 Day

And Ship Time could be also wrong.

SkyLark commented 9 years ago

Do we have any update on this issue from customer?

ssolovey commented 9 years ago

Please consider file ShippingWarehouseOrder.xlsx. It should be used to determine warehouse for shipping. Shipping service still should be used to delivery time.

Logic is following: check primary warehouse and secondary warehouse Within all possible options select fastest one. If time is the same then select the cheapest within the fastest

SkyLark commented 9 years ago

I'like just to clarify again before implementation.

According to new logic:

  1. User enters some ZIP CODE.
  2. I need to identify the ZIP Prefix first according to your table. ex. Alabama AL
  3. Now I search only through warehouses from table. NOT from available from DATA????
  4. check primary warehouse and secondary warehouse
  5. Within all possible options select fastest one.
  6. If time is the same then select the cheapest within the fastest

Is it correct?

ssolovey commented 9 years ago

yes, I think it is right:

  1. User enter some ZIP CODE.
  2. I need to identify state basis on zip code
  3. Now I search only through warehouses from table. NOT from available from DATA???? You mean not within warehouse which has product but within 2 warehouses - secondary and primary. Right? If yes, then it is correct.
  4. check primary warehouse and secondary warehouse
  5. Within all possible options select fastest one.
  6. If time is the same then select the cheapest within the fastest
SkyLark commented 9 years ago

Implemented

3h