Simple Striped Chenille Anti-scratch Couch Cover
${function() {
const variantData = data.variant || {"id":"2e83cd23-f9c8-4c87-a953-35adcddf9f3f","product_id":"5f7503af-9bb6-4fb8-b557-81f185e10992","title":"Grey-27.6*27.6 in(1 pc)","weight_unit":"g","inventory_quantity":0,"sku":"FF56090GY01","barcode":"","position":1,"option1":"Grey","option2":"27.6*27.6 in(1 pc)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ac77945788d803a9fc3d33f7e7b9ac18.jpeg","path":"ac77945788d803a9fc3d33f7e7b9ac18.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.3,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.3","retail_price":"0","available":true,"url":"\/products\/simple-striped-chenille-anti-scratch-couch-cover?variant=2e83cd23-f9c8-4c87-a953-35adcddf9f3f","available_quantity":999999999,"options":[{"name":"COLOR","value":"Grey"},{"name":"SIZE","value":"27.6*27.6 in(1 pc)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Grey
${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}
`
}()}
Size:
27.6*27.6 in(1 pc)
${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
$27.30
${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":"2e83cd23-f9c8-4c87-a953-35adcddf9f3f","product_id":"5f7503af-9bb6-4fb8-b557-81f185e10992","title":"Grey-27.6*27.6 in(1 pc)","weight_unit":"g","inventory_quantity":0,"sku":"FF56090GY01","barcode":"","position":1,"option1":"Grey","option2":"27.6*27.6 in(1 pc)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ac77945788d803a9fc3d33f7e7b9ac18.jpeg","path":"ac77945788d803a9fc3d33f7e7b9ac18.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.3,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.3","retail_price":"0","available":true,"url":"\/products\/simple-striped-chenille-anti-scratch-couch-cover?variant=2e83cd23-f9c8-4c87-a953-35adcddf9f3f","available_quantity":999999999,"options":[{"name":"COLOR","value":"Grey"},{"name":"SIZE","value":"27.6*27.6 in(1 pc)"}],"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":"2e83cd23-f9c8-4c87-a953-35adcddf9f3f","product_id":"5f7503af-9bb6-4fb8-b557-81f185e10992","title":"Grey-27.6*27.6 in(1 pc)","weight_unit":"g","inventory_quantity":0,"sku":"FF56090GY01","barcode":"","position":1,"option1":"Grey","option2":"27.6*27.6 in(1 pc)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ac77945788d803a9fc3d33f7e7b9ac18.jpeg","path":"ac77945788d803a9fc3d33f7e7b9ac18.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.3,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.3","retail_price":"0","available":true,"url":"\/products\/simple-striped-chenille-anti-scratch-couch-cover?variant=2e83cd23-f9c8-4c87-a953-35adcddf9f3f","available_quantity":999999999,"options":[{"name":"COLOR","value":"Grey"},{"name":"SIZE","value":"27.6*27.6 in(1 pc)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}