<%= ob.item.title %>
<%=
ob.currencyMod.formattedCurrency(
ob.price.amount,
ob.price.currencyCode,
ob.displayCurrency
)
%>
style="background-image: url(<%= ob.getServerUrl(`ob/images/${ob.isHiRez() ? ob.item.images[0].large : ob.item.images[0].medium}`) %>), url('../imgs/defaultItem.png')"
<% } else { %>
style="background-image: url('../imgs/defaultItem.png')"
<% } %>
>
<% ob.item.options.forEach((item) => { %>
<%= item.name %>
<% }); %>
<%
let tip;
let buyNowClass = 'disabled';
let unpurchaseable = true;
const serverCur = ob.currencyMod.getServerCurrency();
const serverCurCode = serverCur.isTestnet ? serverCur.testnetCode : serverCur.code;
if (ob.metadata.acceptedCurrencies.indexOf(serverCurCode) === -1) {
tip = ob.polyT('listingDetail.unableToPurchase.incompatibleCrypto',
{
acceptedCurrencies: ob.metadata.acceptedCurrencies.join(', '),
serverCur: serverCurCode,
});
} else if (ob.metadata.contractType !== 'CRYPTOCURRENCY' &&
ob.currencyMod.getCurrencyValidity(ob.price.currencyCode) !== 'VALID') {
tip = ob.currencyValidity === 'UNRECOGNIZED_CURRENCY' ?
ob.polyT('listingDetail.unableToPurchase.unrecognizedCur') :
ob.polyT('listingDetail.unableToPurchase.noExchangeRateInfo');
} else if (ob.metadata.contractType === 'CRYPTOCURRENCY' &&
!ob.currencyMod.getExchangeRate(ob.price.currencyCode)) {
tip = ob.polyT('listingDetail.unableToPurchase.noExchangeRateInfo');
} else {
buyNowClass = '';
unpurchaseable = false;
}
let unpurchasableMarkup = `
${ob.polyT('listingDetail.unableToPurchase.unpurchaseable') }
`;
%>
<%= unpurchaseable ? unpurchasableMarkup : '' %>
<% if (ob.shipsFreeToMe) { %>
<% } %>
<%= ob.polyT('listingDetail.type', { type: `${ob.polyT(`formats.${ob.metadata.contractType}`)}` }) %>
<% if (ob.isCrypto) { %>
<%= ob.polyT('listingDetail.inventory', {
inventory: ''
}) %>
<% } else if (ob.metadata.type === 'PHYSICAL_GOOD') { %>
<%= ob.polyT('listingDetail.condition', { condition: `${ob.polyT(`conditionTypes.${ob.item.condition.toUpperCase()}`)}` }) %>
<% } %>
<%= ob.polyT('listingDetail.tags') %>
<% ob.item.tags.forEach(function(tag){
print(`
#${ob.parseEmojis(tag)}`);
}); %>
<% if(!ob.item.tags.length) { print(`
${ob.polyT('listingDetail.noTags')}`) } %>
<%= ob.polyT('listingDetail.paymentsAccepted') %>
<% if (ob.hasVerifiedMods) { %>
<%= ob.polyT('verifiedMod.modVerified.titleLong') %>
<%
const providerName = `
${ob.verifiedModsData.name}`;
const verifiedModLink = `
${ob.polyT('verifiedMod.link')}`;
%>
<%= ob.polyT('verifiedMod.genericDescription', { name: providerName, link: verifiedModLink }) %>
<% } %>
<%= ob.polyT('listingDetail.description') %>
<%= ob.item.description %>
<% if(!ob.item.description) { print(`${ob.polyT('listingDetail.noDescription')}`) } %>
<% if (ob.item.images.length) { %>
<% if (ob.item.images.length > 1) { %>
<% } %>
<% if(ob.item.images.length > 1) { %>
<% ob.item.images.forEach(function(image, index){
const chk = index === 0 ? "checked" : "";
print(``);
print(``);
}); %>
<% } %>
<% } %>
<% if (ob.shippingOptions.length) { %>
<%= ob.polyT('listingDetail.shipping') %>
<%= ob.polyT('listingDetail.shipTo') %>
<% } %>
<%= ob.polyT('listingDetail.refundPolicy') %>
<%= ob.refundPolicy %>
<% if (!ob.refundPolicy) { print(`${ob.polyT('listingDetail.noRefundPolicy')}`) } %>
<%= ob.polyT('listingDetail.termsAndConditions') %>
<%= ob.termsAndConditions %>
<% if (!ob.termsAndConditions) { print(`${ob.polyT('listingDetail.noTermsAndConditions')}`) } %>