<%- include(helper.resolvePath('partial-template/header-cart/index').end()); %>
  • A-
  • A+

Spirituality, plenitude, Serenity, welcome to the world of the Angels. To guide you on this thrilling and sometimes perilous journey, I have sown a few secrets here, in my online occult store… A precious help to reach spiritual wellness.

    <% var location = helper.existsIn(session, 'lead.location.country', {alternatives: ['geoData.location.iso3'], defaultValue: 'USA'}).getLocation().end(); var currency = location.currency; var locale = location.defaultLocale; if(products) { products.forEach(product => { var ranks = ['☆☆☆☆☆', '★☆☆☆☆', '★★☆☆☆', '★★★☆☆', '★★★★☆', '★★★★★']; var rank = helper.existsIn(product, 'meta.rank', {defaultValue: 5}).end(); var url = helper.existsIn(product,'meta.url').end(); var name = helper.existsIn(product, 'meta.name').end(); var img = helper.existsIn(product, 'meta.img', {defaultValue: ''}).end(); var description = helper.existsIn(product, 'meta.description', {defaultValue: '...'}).marked().htmlToText().end(); var discount = helper.existsIn(product, 'price.discount', {defaultValue: 0}).end(); var realPrice = helper.existsIn(product, 'price.realPrice', {defaultValue: 0}).end(); var realPriceSpan = (discount !== 0) ? helper.formatPrice(realPrice, currency, locale, {minimumFractionDigits: 0}).end() : ''; var finalPrice = helper.existsIn(product, 'price.finalPrice', {defaultValue: 0}).end(); var finalPriceSpan = (finalPrice !== 0) ? helper.formatPrice(finalPrice, currency, locale, {minimumFractionDigits: 0}).end() : ''; %>
  • <%= name %>

    <%= ranks[rank] %>

    <%- helper.stringUtils.prune(description, 150, '[...]'); %>

    <%= realPriceSpan %> <%= finalPriceSpan %>
  • <% }); } %>