Prints the product bundle's purchase form.

Kuvaus

Purchase tools include the quantity field and the button for adding the product bundle to the shopping cart.

You can set the quantity field to function as an open text field or as a <select> list with pre-defined values by using the tag's attributes.

The purchase form should always be implemented using this tag, because custom purchase forms may break as the software evolves.

Syntaksi

{BundleBuy( quantity: string, values: int, default: int )}

Näkyvyys

Toimii näkyvyydessä: tuotepaketti

The required scope is always set in the following templates:

Templates
Product bundle

Attribuutit

quantity:

Defines the type of the quantity field's HTML element.

Allowed values:

  • 'input'
  • 'select'
values:

Defines the values that can be selected if the quantity attribute has the value 'select'.

Allowed values: list of integers separated by pipe characters. Default value: '1|2|3|4|5|6|7|8|9|10'.

default:

Defines the pre-selected default value if the quantity attribute has the value 'select'.

Allowed values: integers (default value: 1).

before/after:

With the before and after attributes, you can define content that is output before or after the content produced by the tag.

Allowed values: text that may contain HTML and Interface markup.

E.g.

  • before: '<p>This markup appears before the tag's own content.</p>'.
  • after: '<p>This appears after the tag's own content.</p>'

If the tag does not produce any content, the content of the before and after attributes will also not be displayed.

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: text that may contain HTML and Interface markup.

E.g. or:'Content not found.'