Fascia Stretcher | finally flexible again
${function() {
const variantData = data.variant || {"id":"298c48c2-c690-4bf8-9168-df84f8397c78","product_id":"9a149776-aac8-4910-8d25-e6f33139d48c","title":"Buy 1 Fascia Stretcher-RED","weight_unit":"kg","inventory_quantity":1000,"sku":"YH1392258-\u026b","barcode":"","position":3,"option1":"Buy 1 Fascia Stretcher","option2":"RED","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b7e3f010ed37a052fea199424fe4cc1e.jpeg","path":"b7e3f010ed37a052fea199424fe4cc1e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27,"min_quantity":1}],"weight":"0","compare_at_price":"39","price":"27","retail_price":"39","available":true,"url":"\/products\/fascia-stretcher-finally-flexible-again?variant=298c48c2-c690-4bf8-9168-df84f8397c78","available_quantity":999999999,"options":[{"name":"quantity(155cm)","value":"Buy 1 Fascia Stretcher"},{"name":"Color","value":"RED"}],"off_ratio":31,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Quantity(155Cm):
Buy 1 Fascia Stretcher
${function(){
const optName = "quantity(155cm)";
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}
`
}()}
Color:
RED
${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}
`
}()}
Add to cart
S$27.00
${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":"298c48c2-c690-4bf8-9168-df84f8397c78","product_id":"9a149776-aac8-4910-8d25-e6f33139d48c","title":"Buy 1 Fascia Stretcher-RED","weight_unit":"kg","inventory_quantity":1000,"sku":"YH1392258-\u026b","barcode":"","position":3,"option1":"Buy 1 Fascia Stretcher","option2":"RED","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b7e3f010ed37a052fea199424fe4cc1e.jpeg","path":"b7e3f010ed37a052fea199424fe4cc1e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27,"min_quantity":1}],"weight":"0","compare_at_price":"39","price":"27","retail_price":"39","available":true,"url":"\/products\/fascia-stretcher-finally-flexible-again?variant=298c48c2-c690-4bf8-9168-df84f8397c78","available_quantity":999999999,"options":[{"name":"quantity(155cm)","value":"Buy 1 Fascia Stretcher"},{"name":"Color","value":"RED"}],"off_ratio":31,"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":"298c48c2-c690-4bf8-9168-df84f8397c78","product_id":"9a149776-aac8-4910-8d25-e6f33139d48c","title":"Buy 1 Fascia Stretcher-RED","weight_unit":"kg","inventory_quantity":1000,"sku":"YH1392258-\u026b","barcode":"","position":3,"option1":"Buy 1 Fascia Stretcher","option2":"RED","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b7e3f010ed37a052fea199424fe4cc1e.jpeg","path":"b7e3f010ed37a052fea199424fe4cc1e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27,"min_quantity":1}],"weight":"0","compare_at_price":"39","price":"27","retail_price":"39","available":true,"url":"\/products\/fascia-stretcher-finally-flexible-again?variant=298c48c2-c690-4bf8-9168-df84f8397c78","available_quantity":999999999,"options":[{"name":"quantity(155cm)","value":"Buy 1 Fascia Stretcher"},{"name":"Color","value":"RED"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}