Sequence Management
Register Sequences
The register sequences is found in the Sequences tab in the Wordpress admin.
Sequence types
There are three sequence types:
- Single Sequence
- Sequence based on Brand
- Sequence based on Product Setting
Single sequence
Every order goes in the same sequence. The total quantity of products ordered is rounded up based on the "Labels per Pack" value.
Sequence based on Brand
If there arent any Brands set, the order is processed as a Single Sequence order.
Only one brand specified, the selector on the product page is hidden, and every order goes to the added brand sequence.
Multiple brands specified: every product has a brand selector on their product page. The user can select which brand they are ordering for. The customer can order the same product with two different brands. The order is grouped by brand, and each of the product quantities are summed, then rounded up based on the "Labels per Pack" value. For example, take this order:
- Product 1, Brand 1, quantity 75
- Product 1, brand 2, quantity 33
- Product 2, Brand 1, quantity 30
- Labels per Pack: 50
- The Order total: 105 labels for Brand 1, 33 labels for brand 2.
- Shipped: 150 Labels for Brand 1, 50 Labels for Brand 2
Sequence based on Product Setting
The store has multiple sequences. Each sequence is attached to a product. ( example: Product 1, 2 and 5 have Sequence 1, Products 3 and 4 have Sequence 2). Order quantities are rounded up based on the Labels per Pack value.
Changing the Sequence Year
Current Sequence Year is used to modify the current year of sequencing. Use it as "flip a switch" to start sequencing for the following year. Every sequence for that year will start from 0. Inventory count stays the same.
When an order is created
- Check which sequence is used in sequence options
- Define which sequences are used
- Define for how much each sequence increases by
- Write the used sequences in order meta
- Write in the order meta, how much each sequence is increased by
- Write in the order meta, how much quantity is for each sequence
- Save the new ending sequence for the sequence type
Nice to have
- Keep different number of packs based on selected brand. Walmart has 50, Sams has 25..
Sequence type set on sequence per product level
- Show which sequences are selected for which products, when the sequence is set on per product basis
- Select a sequence type, select a sequence number, check which order is associated with this combination
