Prints the ID of the product category in which the product bundle is set to display.
Syntaksi
{BundleCategoryID}
Displaying product bundle prices based on product categories
See this example to learn how to hide purchase tools for a product bundle if the product bundle belongs to a certain product category. You may want to do it, for instance, if the product bundle belongs to a product category limited to resellers, and you don't want consumer customers to order the product bundle.
- Set the product bundle to be displayed in the product category.
In this example, we use a product category whose id is 1.
When necessary, see our user guide to learn more about managing product bundles.
- Create a helper file with markup that should be displayed if the product bundle belongs to the set product category.
The helper in our example is saved to the store theme file helpers/price-note-1.html. The product category id is included in the file name.<p>This product bundle cannot be purchased.</p>
- Add markup for displaying prices to the product bundle template.
{Helper( file: 'helpers/price-note-{BundleCategoryID}', or: {{ {BundleBuy} }} )}
If the product bundle belongs to a product category whose id is 1, the contents of the helper file will be displayed. Otherwise, purchase tools are going to be displayed for the product bundle.
Attribuutit
after/before:
By using the
after
andbefore
attributes you can define content that is output either after or before the tag's output.Allowed values:HTML and Interface markup.
E.g.
before:
'<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'after:
'<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'
If the tag does not produce any content, neither the content of the
after
andbefore
attributes will be output.escape:
Adds an escape character before quotation marks in the output.
The attribute makes it easier to process the tag-produced content when using JavaScript.
Allowed values:true/false. The default value is false.
or:
Defines alternative content that is displayed if the tag itself does not produce any content.
Allowed values:HTML and Interface markup.
E.g.
or:
'Sisältöä ei löytynyt.'