<% if(ob.vendor_offer.listing.metadata.max_quantity && ob.vendor_offer.listing.metadata.max_quantity < 999999 || ob.vendor_offer.listing.metadata.max_quantity === 0) { %>
<% if(ob.vendor_offer.listing.metadata.max_quantity > 0) { %>
<%= polyglot.t('MaxQuantityDisplay', {quantity: ob.vendor_offer.listing.metadata.max_quantity}) %>
<% } else { %>
<%= polyglot.t('NoQuantityDisplay') %>
<% } %>
<% } %>
<% if(ob.displayShippingOrigin) { %>
<%= ob.displayShippingOrigin %>
<% } %>
<% if(ob.vendor_offer.listing.metadata.category) { %>
<%= polyglot.t(ob.vendor_offer.listing.metadata.category.split(' ')[0].replace(/^\w/, function (chr) {
return chr.toUpperCase();
})) %>
<% } %>
<% if(ob.vendor_offer.listing.item.condition) { %>
<%= polyglot.t(ob.vendor_offer.listing.item.condition.replace(/^\w/, function (chr) {
return chr.toUpperCase();
})) %>
<% } %>
<% if( ob.vendor_offer.listing.metadata.category === "physical good" && ob.vendor_offer.listing.shipping.free ) { %>
<%= polyglot.t('FreeShipping') %>
<% } %>
<% if(ob.vendor_offer.listing.item.keywords != "") { %>
<%= polyglot.t('Tags') %>
<% } %>
<% if(ob.vendor_offer.listing.shipping && ob.vendor_offer.listing.shipping.shipping_regions && ob.vendor_offer.listing.shipping.shipping_regions.length > 0){ %>
<%= polyglot.t('CanBeShippedTo') %>
<% var matchedItemShippableCountries = _.uniq(_.intersection(_.pluck(ob.userAddresses, 'country'), ob.vendor_offer.listing.shipping.shipping_regions));
if(ob.userAddresses.length > 0) {
if(matchedItemShippableCountries.length > 0){
_.each(matchedItemShippableCountries, function(data){
print("
" + polyglot.t(`countries.${data}`) + "
");
});
} else if(!ob.worldwide){
print(polyglot.t('NoShippableAddress'));
} else {
_.each(_.uniq(_.pluck(ob.userAddresses, 'country')), function(data){
print("
" + polyglot.t(`countries.${data}`) + "
");
});
}
} else {
print(polyglot.t('NoSavedAddresses'));
}
%>
<% } %>