Camp Kit Duffel
${function() {
const variantData = data.variant || {"id":"bbecbce8-1cf1-4d29-8f73-b6e04f7ae666","product_id":"86e03d5f-f9d5-491e-bc2d-33709431660f","title":"45L","weight_unit":"kg","inventory_quantity":1000,"sku":"LCKD45L22","barcode":"","position":1,"option1":"45L","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc2d40c90e892f41f600c204406c93d9.png","path":"fc2d40c90e892f41f600c204406c93d9.png","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":119.95,"min_quantity":1}],"weight":"0","compare_at_price":"119.95","price":"119.95","retail_price":"119.95","available":true,"url":"\/products\/camp-kit-duffel?variant=bbecbce8-1cf1-4d29-8f73-b6e04f7ae666","available_quantity":999999999,"options":[{"name":"Size","value":"45L"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Size:
45L
${function(){
const optName = "Size";
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
$119.95
${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":"bbecbce8-1cf1-4d29-8f73-b6e04f7ae666","product_id":"86e03d5f-f9d5-491e-bc2d-33709431660f","title":"45L","weight_unit":"kg","inventory_quantity":1000,"sku":"LCKD45L22","barcode":"","position":1,"option1":"45L","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc2d40c90e892f41f600c204406c93d9.png","path":"fc2d40c90e892f41f600c204406c93d9.png","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":119.95,"min_quantity":1}],"weight":"0","compare_at_price":"119.95","price":"119.95","retail_price":"119.95","available":true,"url":"\/products\/camp-kit-duffel?variant=bbecbce8-1cf1-4d29-8f73-b6e04f7ae666","available_quantity":999999999,"options":[{"name":"Size","value":"45L"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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":"bbecbce8-1cf1-4d29-8f73-b6e04f7ae666","product_id":"86e03d5f-f9d5-491e-bc2d-33709431660f","title":"45L","weight_unit":"kg","inventory_quantity":1000,"sku":"LCKD45L22","barcode":"","position":1,"option1":"45L","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fc2d40c90e892f41f600c204406c93d9.png","path":"fc2d40c90e892f41f600c204406c93d9.png","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":119.95,"min_quantity":1}],"weight":"0","compare_at_price":"119.95","price":"119.95","retail_price":"119.95","available":true,"url":"\/products\/camp-kit-duffel?variant=bbecbce8-1cf1-4d29-8f73-b6e04f7ae666","available_quantity":999999999,"options":[{"name":"Size","value":"45L"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}