${(data.title || '').toLowerCase().replace(/^[a-z]/, c => c.toUpperCase())}
${("{number} selected").replace('{number}', (data.selectedOptions && data.selectedOptions.length) || data.selectCount || 0)}
Sort by
${data.label.split("_").slice(-1)[0]}
Clear all
${data.label.split("_").slice(-1)[0]}
Clear all
Filter and sort
${function() {
if(!data){
return '';
};
const settings_tags = ",FlashDeal01,Discount" || '';
const settings_tag_text = ",FLASH SALE,3DAY ONLY 40% OFF CODE:CD40" || '';
const settings_tag_link = ",https:\/\/www.jingus.com\/collections\/flash-sale?placeholder=women_ad_placeholderC,https:\/\/www.jingus.com\/collections\/y-discount?placeholder=women_ad_placeholderC" || '';
const force_image_size = "1.5";
const product_hover_on = true;
const product_show_sale_label = false;
const product_save_type = "percent";
const tags = data && data.tags.split(',') || [];
const product_tags = tags && tags.join();
const has_only_default_variant = false;
let badge1 = '';
const pd_tags = ["FlashDeal01,FLASH SALE","Discount,40-70%OFF"] || [];
let tag_text = ''
for(let item of pd_tags){
let tag_conf = item.split(',')
let tag_match = tag_conf[0]
if(tags.includes(tag_match)){
tag_text = tag_conf[1]
break
}
}
tags.find(function(tag){
if(tag.includes('__Label::')){
badge1 = tag.split('__Label::')[1] || '';
return true;
}
return false;
});
let badge_img = '';
let badge_img_md_w = 0;
let badge_img_md_h = 0;
let badge_img_lg_w = 0;
let badge_img_lg_h = 0;
if(tags.includes('4thoffline')){
badge_img = '//img.staticdj.com/98a8a2d5119e329e2806937e23637245.png';
badge_img_md_w = 30;
badge_img_md_h = 28;
badge_img_lg_w = 44;
badge_img_lg_h = 40;
}else if(tags.includes('Products.us')){
badge_img = '//img.staticdj.com/8bf05637a629f9276d3a47c224edb0eb.png';
badge_img_md_w = 50;
badge_img_md_h = 20;
badge_img_lg_w = 70;
badge_img_lg_h = 30;
}
const badge2 = '';
const badge3 = '';
const product_title_mobile_hide = false;
const product_title_style = "hide";
const enable_collection_thumb_image = false;
const variantNames = [];
const thumbMaxNum = 4;
const url = data.url;
const productId = data.id;
const price = data.price;
const productAvailable = data.available;
const productVariants = data.variants || [];
const images = data.images || [];
const image = data.image || {};
const imageWidth = image.width;
let imageHeight = image.height;
let image2 = null;
let imageHoverOn = false;
if (force_image_size !== 'natural') {
imageHeight = imageWidth * force_image_size;
}
if (product_hover_on) {
for (let i = 1; i < images.length; i++) {
const img = images[i];
if (img.src && img.src.indexOf('video=') === -1) {
image2 = img;
imageHoverOn = true;
break;
}
}
}
let compareAtPrice = data.compare_at_price;
let offRatio = data.off_ratio;
let discountMaxUrl = url;
const showFrom = data.price_min != data.price_max ? true : false;
for (let i = 0; i < productVariants.length; i++) {
const variant = productVariants[i];
if (variant.price == price && compareAtPrice < variant.compare_at_price) {
compareAtPrice = variant.compare_at_price;
offRatio = variant.off_ratio;
variant.available && (discountMaxUrl = variant.url);
}
}
const soldOutText = "Sold out";
let soldOn = false;
let saleOn = false;
if (productAvailable) {
if (product_show_sale_label && price < compareAtPrice) {
saleOn = true;
}
} else {
soldOn = true;
}
const diffPrice = compareAtPrice - price;
const saveLabelContent = product_save_type == 'percent' ? (offRatio + '%') : ` `;
let saveText = "Save {off_ratio}";
saveText = saveText.replace('{off_ratio}', saveLabelContent);
if( product_save_type == 'percent' ){
saveText = '-' + offRatio + '%';
}
const productTitle = data.title;
const heading = "title" === 'subtitle' ? data.brief : productTitle;
const variantValues = [];
const showVariants = [];
if (data.need_variant_image && enable_collection_thumb_image && variantNames.length > 0) {
for (let i = 0; i < (data.options || []).length; i++) {
const option = data.options[i];
const optionName = option.name.toLowerCase();
if (variantNames.includes(optionName)) {
for (let j = 0; j < productVariants.length; j++) {
const variant = productVariants[j];
const value = variant.options[i].value;
if (!variantValues.includes(value)) {
variantValues.push(value);
showVariants.push(variant);
}
}
break;
}
}
}
let handle = '';
let color = '';
if(data.options && data.options[1] && data.options[1].values && data.options[1].values[0] && data.available){
color = data.options[1].values[0];
color = color == 'Multi' ? "url(\/\/img.staticdj.com\/e76230fea84d6e0167bc081e667e66c1_60x.png)" : color;
};
let _price = price, _saveText = saveText,with_code_info = '', discount_redirect='';
const discount_info = "" || ''
if(discount_info){
if(tags.includes(discount_info.tag)){
const discount = 100 - discount_info.discount_off.replace('%','') * 1
_price = (price * discount / 100).toFixed(0)
_saveText = '-' + ((+compareAtPrice - (+_price)) / +compareAtPrice * 100).toFixed(0) + '%'
with_code_info = 'With Code: ' + discount_info.discount_code
discount_redirect = discount_info.redirect_url.url
}
}
return `
${_saveText}
${_saveText}
${with_code_info}
${showVariants.map((item, idx) => {
let showMoreHtml = '';
if (idx == thumbMaxNum) {
showMoreHtml += `
`;
}
return `
${showMoreHtml}
`;
}).join('')
}
${settings_tags.split(",").map((item, idx) => {
if(item && product_tags.indexOf(item) != -1 && settings_tag_text) {
const tag_link = settings_tag_link.split(",");
const tag_text = settings_tag_text.split(",");
return `
${tag_text[idx]}
`;
}
}).join('')
}
`;
}()}
${heading}
FromNo products found
Use fewer filters or clear all
Use fewer filters or clear all