@liquidcommerce/elements-sdk 2.6.0-beta.85 → 2.6.0-beta.86
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.
- package/dist/index.checkout.esm.js +7090 -7064
- package/dist/index.esm.js +11301 -11275
- package/docs/v1/guides/product-component.md +14 -0
- package/package.json +1 -1
|
@@ -157,6 +157,20 @@ For products with multiple sizes:
|
|
|
157
157
|
- Availability checking per size
|
|
158
158
|
- Out-of-stock indication
|
|
159
159
|
|
|
160
|
+
#### Preselect a Size via URL
|
|
161
|
+
|
|
162
|
+
Use the `lce_size` query parameter to preselect a size when the product page loads:
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
https://yoursite.com/products/buffalo-trace?lce_size=750ml
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
- The value is matched against each size's display value (e.g. `750ml`).
|
|
169
|
+
- Matching is case-insensitive and ignores whitespace, so `750 ML`, `750ml`, and `750ML` all select a `750ml` size.
|
|
170
|
+
- If the value matches no size, the default size selection is used.
|
|
171
|
+
|
|
172
|
+
`lce_size` is a fixed parameter name (not configured through a script attribute) and only applies to the product page.
|
|
173
|
+
|
|
160
174
|
### Fulfillment Types
|
|
161
175
|
|
|
162
176
|
Two fulfillment options:
|
package/package.json
CHANGED