Order generation

Order generation

Unique order ID

By default, when an order is created, Onestock will assign a random identifier. However, the id_formatter configuration can be used to set a custom management rule.

Path : Configuration > Store App > Pages > Catalog > Specific settings > Options

{ "id_formatter": "OIS" }

This management rule must first be created in the Configuration > Orders > Order ID format configuration page of the BackOffice. You can add a prefix, a suffix, and a number of characters in the sequence.

The first OIS order will have the following identifier : OIS00000001, and so on.

Order orchestration

By default, the order is posted without ruleset or ruleset_chaining. So, it's the assignment feature (Orchestration > Assignation) that decide in which ruleset to assign the order.

However, it is possible to force assignment to particular rulesets or chaining rulesets directly from the configuration, using the keys rulesets.ffs (for Home delivery orders) and rulesets.ckc for Click & Collect orders). Configuration can also be done with the ruleset_chaining key.

Assignments cannot be differentiated within delivery types

Path : Configuration > Store App > Pages > Catalog > Specific settings > Options

{ "rulesets": { "ckc": "ois_click_collect", "ffs": "ois_home_delivery" } }

Order content

  • order_script : Script custom to override order content

Internal use only