Represents a product within the universal configurator.
What does it unlock?
Wrapper linking a product to its position and label inside the configurator's product list.
Each entry in UniversalConfigurator.products is of this type.
Practical Application
Iterate UniversalConfigurator.products to build a product selector. Use label for display text,
productId to switch products via SetProduct, and product for thumbnails and slot details.
AI Coding Best Practices
Use productId (not product.id) when calling new SetProduct(productId).
Sort by position if rendering a product list to match the order configured in MetaBox admin.
Represents a product within the universal configurator.
What does it unlock?
Wrapper linking a product to its position and label inside the configurator's product list. Each entry in
UniversalConfigurator.productsis of this type.Practical Application
Iterate
UniversalConfigurator.productsto build a product selector. Uselabelfor display text,productIdto switch products via SetProduct, andproductfor thumbnails and slot details.AI Coding Best Practices
Use
productId(notproduct.id) when callingnew SetProduct(productId). Sort bypositionif rendering a product list to match the order configured in MetaBox admin.