Untitled
unknown
plain_text
2 years ago
1.7 kB
2
Indexable
var price = parsePrice(Insider.dom('.variants-list__item--selected .entry-price__total:first').text().trim() || Insider.dom('e2-product-info e2-entry-price ' + '.entry-price_total:first').text().trim() || Insider.dom('.pdp-page_main-content e2-entry-price ' + '.entry-price__total:first').text().trim()); var productId = Insider.fns.getParameter('varSel') || window.location.pathname.split('/p/').slice(-1)[0].split('/')[0].replace('BP_', ''); var product = { id: productId, name: encodeURIComponent(Insider.dom('.brand-info__range-name:first').text().trim()), price: price, originalPrice: parsePrice(Insider.dom('.variants-list__item--selected e2-entry-price .entry-price__total' + '-without-promotions:first').text() || Insider.dom('e2-product-info e2-' + 'entry-price .entry-price__total-without-promotions:first').text().trim() || Insider.dom('.pdp-page__main-content e2-entry-price .entry-' + 'price__total-without-promotions:first').text()) || price, img: Insider.dom('.product-images__thumbs-item img').prop('src') || Insider.dom('.product-images__thumbs-wrapper--mobile img').prop('src') || '', url: window.location.protocol + '//' + window.location.host + window.location.pathname .replace('my-account/order/', '') + '?varSel=' + productId, cats: Insider.systemRules.call('getProductCategories'), quantity: Insider.dom('e2-product-notify-me:visible').exists() ? 0 : 1, };
Editor is loading...