Trigger position (cart)
Description
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: beforeselectorelement itself -
afterbegin: just inside theselectorelement, before its first child -
beforeend: just inside theselectorelement, after its last child -
afterend: after theselectorelement 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',
}