ProductTemplatesManager

This is for:

Developer
In this article

Attributes

registerTemplates

Registers any number of product templates in the manager.

selectLinkTemplate

Selects the highest priority link 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.

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