Product options
TheProductOptions object is the second argument to Selektable.open(). It provides product data and cart callbacks to the widget.
Reference
Product information
Primary image URL used for AI generation. This is the image the AI model uses to render the product in the customer’s photo.If not provided, the first image in
productImages is used.See Choosing the right product image for best practices on selecting this image.Variable product data
These fields are primarily used for WooCommerce-style variable products where a single product has multiple variations (e.g., different colors/sizes).Product dimensions
Optional physical measurements that help the AI render the product at its real-world size relative to the room.Physical dimensions of the product. When provided, the AI uses these measurements to calculate correct proportions relative to the room and other objects in the scene.At least one dimension value (
width, height, or depth) should be provided alongside the unit.Cart callbacks
Called when the customer clicks “Add to Cart” in the widget. See Cart Integration for details.Signature:CartProduct:CartVariation:CartResult:
Product context resolution
The widget resolves product data in this priority order:- Explicit options passed to
Selektable.open(widgetId, options)— highest priority - Data attributes on the context element (
data-selektable-widget) - Auto-detection from the page DOM (WooCommerce body classes, JSON-LD, variation forms, etc.)