Title selector (cart)
Description
Define a CSS selector to an element with the search result title to extract its text to set it as a cart item title. CSS selector should be relative to its parent defined in item.list
.
Default value
The default HTML is sourced from the results page default template (simple.ftl
).
<li data-fb-result=URL class="result">
<h4>
<a style="cursor: pointer" title="Add to cart" class="flb-cart-item-trigger"><span class="glyphicon glyphicon-pushpin flb-cart-icon"></span></a>
<a href="/s/redirect?collection=collectionId" title=URL>Title text</a>
</h4>
</li>
item: {
title: 'h4 a:nth-child(2)'
}
Custom Example
<div class="listing-item__header">
<a href="/s/redirect?collection=collectionID" data-live-url="exampleURL/home.html" title="Current students - The University of Sydney" class="listing-item__title-link">
<h3 class="listing-item__title">Current students</h3></a>
<cite class="listing-item__subtitle listing-item__subtitle--highlight">Item URL</cite>
</div>
item: {
title: '.listing-item__header > a > h3'
}