Collection Path built-in helper functions
Last updated
Last updated
A number of built-in functions are provided for common needs when populating product string values. These values generated by these functions are uniformly provided for each collection path item and can be found within an object named '_helpers'. These helper function values are as follows and may used within any part of the product string (except for the Category portion).
_helpers.true (returns a boolean true for each collection path item).
_helpers.false (returns a boolean false for each collection path item).
_helpers.index (returns the index of each collection path item starting with 1 ).
_helpers.indexZeroBased (returns the index of each collection path item starting with 0 ).
_helpers.productCategory (returns the value used as category for each collection item).
_helpers.productCategoryPlusIndex (returns the category value suffixed with "_N" where N is the collection item index).