Trigger position (cart)


Define relative position to selector element where trigger to add an item to the cart or delete it from the cart will be inserted. Acceptable values to insert trigger are:

  • beforebegin: before selector element itself

  • afterbegin: just inside the selector element, before its first child

  • beforeend: just inside the selector element, after its last child

  • afterend: after the selector element itself

Default value

By default trigger will be inserted inside <h4> as a first child of it.

<h4>Result item title</h4>
itemTrigger: {
  selector: 'h4',
  position: 'afterbegin',

See also