@spree/docs 0.1.256 → 0.1.257
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,6 +92,12 @@ spree api post /prices/bulk_upsert -d '{
|
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
|
|
95
|
+
`?expand=variants.prices` returns every price a variant has, Price List amounts
|
|
96
|
+
and quantity breaks included; each row carries its `price_list_id`, which is
|
|
97
|
+
`null` for a base price. Writing `prices` back on a variant sets **base prices
|
|
98
|
+
only** — a currency left out is removed — so filter the rows you read before
|
|
99
|
+
sending them back. To write what a Price List charges, use `/prices`.
|
|
100
|
+
|
|
95
101
|
## Price Lists
|
|
96
102
|
|
|
97
103
|
Price Lists allow you to create different pricing strategies based on various conditions. This enables advanced pricing scenarios like:
|