<% const isCrypto = ob.listing.metadata.contractType === 'CRYPTOCURRENCY'; // when multiple listings are supported, the prices array will have one price object for each const totalPrice = ob.prices[0].price + ob.prices[0].vPrice; const pricingCurrency = ob.listingPrice.currencyCode; %>
<% if (ob.vendor) { %>
<% } %>
<% // to support multiple items in a purchase, loop this section %>
<%= ob.listing.item.title %>
<% ob.variants.forEach(variant => { %>
<%= variant.name %>: <%= variant.value %>
<% }); %>
<% if (ob.phase === 'pay' || ob.phase === 'processing') { %>
<% if (isCrypto) { %>
<%= ob.polyT('purchase.inventory', { inventory: '' }) %>
<% } %>
<% } %>
<%= ob.currencyMod.convertAndFormatCurrency(totalPrice, pricingCurrency, ob.displayCurrency) %>
<% if (ob.phase === 'pay' || ob.phase === 'processing') { %> <% if (isCrypto) { %>
<% const coinType = ob.listing.metadata.coinType; const coinTranslationKey = `cryptoCurrencies.${coinType}`; const coinName = ob.polyT(coinTranslationKey) === coinTranslationKey ? coinType : ob.polyT(coinTranslationKey); const heading = ob.polyT('purchase.cryptoAddressHeading', { coinType: coinName, }); const placeholder = ob.polyT('purchase.cryptoAddressPlaceholder', { coinType: coinName, }); const warning = `${ob.polyT('purchase.cryptoAddressHelperWarning')}`; const helper = ob.polyT('purchase.cryptoAddressHelper', { coinType: coinName, warning, }); %>
/>
<%= helper %>
<% } else if (ob.listing.shippingOptions && ob.listing.shippingOptions.length) { %>
<% } %>

<%= ob.polyT('purchase.paymentTypeTitle') %>

<% if (ob.showModerators) { %> > <% } %>
<% if (ob.showModerators && !ob.noValidModerators) { %>
<% if (!ob.noValidModerators) { %>
<%= ob.polyT('purchase.moderatorsDisclaimer') %>
<% } %>
<% } %> <% // duplicate the moderator card html to make sure everything aligns %>
<%= ob.polyT('purchase.directPayment') %>
<%= ob.polyT('purchase.directPaymentDetails') %>

<%= ob.polyT('purchase.informationTitle') %> <%= ob.polyT('purchase.optional') %>

<%= ob.polyT('purchase.emailNote') %>
<% // coupons are inserted here after they are added by the user. %>

<% } %> <% if (ob.phase === 'pending') { %>
<% } %> <% if (ob.phase === 'complete') { %>
<% } %>