coopdevs / lazona_connector

1 stars 0 forks source link

Control num of packages per vendor #109

Open daniquilez opened 3 years ago

daniquilez commented 3 years ago

Due to this bug issue: https://github.com/coopdevs/lazona_connector/issues/100 We've realized we need to force 1 package per vendor. Woocomerce must tell us how many packages every vendor has. Need to refactor based on this PR #108 Once moving to multiple packages per vendor, we'll have to address this bug: https://sentry.io/organizations/lazona-connector-production/issues/2509514643/?project=5762965&query=is%3Aunresolved

numeropi commented 3 years ago

There are two ways to tell a product that it needs its own shipping package per item (and latter read from the metadata sent in the webhook new order)...

Using the Shipping class ("Clase de envío") to use a predefined slug (ex. one-item-package) image

or use a new metadata attribute ex: single_page or whatever... to be used by the products that we want that the connector understand it as a single package and proceed acordingly when doing the Koiki's shipping request. image

In case that we would like to add/associate an extra cost for this extra package, we can use also the product's fees("comisión") option: image

or add the different fixes cost for that shipping class when editing the Koiki's shipping method... image