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 by using this tag as our system's further development may break any custom-made purchase forms.

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. The default value is '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).

after/before:

By using the after and before 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 and before 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.'