[DFC] Orders Part 1: Create order from OFN via DFC
Funded Feature. Please track ALL ASSOCIATED WORK under the associated tracking code #11678 DFC Orders
What is the problem we are solving
The UK project Food Data Collaboration (FDC) aims to connect Shopify and OFN via the Data Food Consortium (DFC) standard.
With DFC products completed, products can exist within OFN and be linked to products another platf…
Funded Feature. Please track ALL ASSOCIATED WORK under the associated tracking code #11678 DFC Orders
What is the problem we are solving
The UK project Food Data Collaboration (FDC) aims to connect Shopify and OFN via the Data Food Consortium (DFC) standard.
With DFC products completed, products can exist within OFN and be linked to products another platform.
An OFN Hub can add these products to their shopfront.
When a shopper buys these products the order must be placed on the originating platform.
The orders from different customers on a Hub order cycle must be aggregated into a single wholesale order.
In Part 1 the minimum requirement is only implementing sending orders from OFN to another Platform. Orders from the other platform back to OFN are currently out of scope. Stock is also out of scope in this case.
Success factors = expected outcome
OFN customer adds products to the cart which correspond to DFC products in another platform. The OFN products are created manually and linked to DFC products via an additional URL associated to the OFN Spree::Variant. Estimate: 3 days
After checkout, a new DFC order is placed containing the DFC products. OFN customer details are not forwarded. The buying agent is the OFN shop. The DFC endpoint to place an order will be a hard-coded URL in the first iteration. 3 days
If previous orders within the same order cycle created a DFC order already, we update that one instead of creating a new order. The supplier wants only one wholesale order instead of many small orders. Due to limitations within Shopify, we need to delete the old order and create a new one. 2 days
One product may be offered in several variants, a retail and a wholesale variant with different quantities per item. For example, flour may be sold in 1kg and in 20kg bags. When updating an existing DFC order, quantities should be aggregated and wholesale items should be ordered where possible. 3 days
The Shopify app needs to be notified at the end of the order cycle to finalise the order. Order states are not defined in DFC yet and we don't know how the endpoint will look like but it's probably some kind of DFC order update. 3 days
Ignoring for now:
Stock levels.
The OFN order cycle will be the sale session to associate orders to even though that's not correct.
Useful information for inception
Initial scoping and estimates.