Metadata selector (cart)
Description
Define CSS selectors to the elements with the search result metadata to extract its text to set it as a cart item metadata object. CSS selector should be relative to its parent defined in item.list
.
Custom Example
<li data-fb-result="URL" class="result">
<h4>
<a style="cursor: pointer" title="Remove from cart" class="flb-cart-item-trigger"></a>
<a href="/s/redirect?collection=collectionId" title="Title URL">Max Muller</a>
</h4>
<dl class="dl-horizontal text-muted">
<dt>H:</dt><dd>The Minor Law Books</dd>
</dl>
</li>
item: {
metadataSelectors: {
author: 'h4 a:nth-child(2)',
book: 'dl dd'
}
}