Get saved size/fit
get_user_prefsReturns the shopper's saved default size and fit so you can apply sizing automatically and search products in their preferred style before asking for a size.
Instructions
Return the shopper's saved default size and fit. Call this BEFORE asking the user for a size — if a default is set, apply it automatically (add_to_cart uses it when size is omitted), and search in their fit: search_products style='oversized' for oversized, style='tee' for basic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Saved fit preference: basic | oversized, or null. | |
| size | No | Saved default size, or null. |