ProductTemplatesManager
ProductTemplatesManager
This is for:
DeveloperIn this article
Attributes
registerTemplates
Registers any number of product templates in the manager.
selectTemplate
Selects the highest priority template for which the given product satisfies all conditions. In the case where satisfied templates have equal priority, the template that was registered first is returned.
Initialize
buildProductTemplatesManager
A manager in which product templates can be registered and selected based on a list of conditions and a priority index.
Parameters
Returns ProductTemplatesManager