people are viewing this right now
${function() {
const minInventory = parseInt('88');
const maxInventory = parseInt('188');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
${function() {
const variantData = data.variant || {"id":"b65cf967-86c6-4312-88a0-1aca39eec155","product_id":"e22b2261-f233-4217-a176-945a5110cbef","title":"Black-30L","weight_unit":"kg","inventory_quantity":0,"sku":"13ZYL230203-HEI-30L","barcode":"","position":1,"option1":"Black","option2":"30L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/87ad6b2c485f573de2a9f95e5f4651d8.webp","path":"87ad6b2c485f573de2a9f95e5f4651d8.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":79.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"79.99","retail_price":"89.99","available":true,"url":"\/products\/box-19?variant=b65cf967-86c6-4312-88a0-1aca39eec155","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Style","value":"30L"}],"off_ratio":11,"flashsale_info":[],"sales":27390};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Black
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Style
: 30L
${function(){
const optName = "Style";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$79.99
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"b65cf967-86c6-4312-88a0-1aca39eec155","product_id":"e22b2261-f233-4217-a176-945a5110cbef","title":"Black-30L","weight_unit":"kg","inventory_quantity":0,"sku":"13ZYL230203-HEI-30L","barcode":"","position":1,"option1":"Black","option2":"30L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/87ad6b2c485f573de2a9f95e5f4651d8.webp","path":"87ad6b2c485f573de2a9f95e5f4651d8.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":79.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"79.99","retail_price":"89.99","available":true,"url":"\/products\/box-19?variant=b65cf967-86c6-4312-88a0-1aca39eec155","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Style","value":"30L"}],"off_ratio":11,"flashsale_info":[],"sales":27390};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"b65cf967-86c6-4312-88a0-1aca39eec155","product_id":"e22b2261-f233-4217-a176-945a5110cbef","title":"Black-30L","weight_unit":"kg","inventory_quantity":0,"sku":"13ZYL230203-HEI-30L","barcode":"","position":1,"option1":"Black","option2":"30L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/87ad6b2c485f573de2a9f95e5f4651d8.webp","path":"87ad6b2c485f573de2a9f95e5f4651d8.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":79.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"79.99","retail_price":"89.99","available":true,"url":"\/products\/box-19?variant=b65cf967-86c6-4312-88a0-1aca39eec155","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Style","value":"30L"}],"off_ratio":11,"flashsale_info":[],"sales":27390};
return `
`
}()}
Free shipping on orders over 80
Free returns within fourteen days
Contact us: service@ispoeti.com