Vintage Rocking Horse Quilt Template Set(A+B Style)-With Instructions
${function() {
const variantData = data.variant || {"id":"8542ed4a-fca9-4259-a5ee-774a7acac8a6","product_id":"f5dc83ec-9ae0-4ef9-9c87-9f9b6a436784","title":"S\uff088 inch\uff09","weight_unit":"kg","inventory_quantity":0,"sku":"FYWYYBMS","barcode":"","position":1,"option1":"S\uff088 inch\uff09","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.98,"min_quantity":1}],"weight":"0","compare_at_price":"28.69","price":"14.98","retail_price":"28.69","available":true,"url":"\/products\/vintage-rocking-horse-quilt-template-seta-b-style-with-instructions?variant=8542ed4a-fca9-4259-a5ee-774a7acac8a6","available_quantity":999999999,"options":[{"name":"Size","value":"S\uff088 inch\uff09"}],"off_ratio":48,"flashsale_info":[],"sales":2};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Size:
S(8 inch)
${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
$14.98
${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":"8542ed4a-fca9-4259-a5ee-774a7acac8a6","product_id":"f5dc83ec-9ae0-4ef9-9c87-9f9b6a436784","title":"S\uff088 inch\uff09","weight_unit":"kg","inventory_quantity":0,"sku":"FYWYYBMS","barcode":"","position":1,"option1":"S\uff088 inch\uff09","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.98,"min_quantity":1}],"weight":"0","compare_at_price":"28.69","price":"14.98","retail_price":"28.69","available":true,"url":"\/products\/vintage-rocking-horse-quilt-template-seta-b-style-with-instructions?variant=8542ed4a-fca9-4259-a5ee-774a7acac8a6","available_quantity":999999999,"options":[{"name":"Size","value":"S\uff088 inch\uff09"}],"off_ratio":48,"flashsale_info":[],"sales":2};
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":"8542ed4a-fca9-4259-a5ee-774a7acac8a6","product_id":"f5dc83ec-9ae0-4ef9-9c87-9f9b6a436784","title":"S\uff088 inch\uff09","weight_unit":"kg","inventory_quantity":0,"sku":"FYWYYBMS","barcode":"","position":1,"option1":"S\uff088 inch\uff09","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.98,"min_quantity":1}],"weight":"0","compare_at_price":"28.69","price":"14.98","retail_price":"28.69","available":true,"url":"\/products\/vintage-rocking-horse-quilt-template-seta-b-style-with-instructions?variant=8542ed4a-fca9-4259-a5ee-774a7acac8a6","available_quantity":999999999,"options":[{"name":"Size","value":"S\uff088 inch\uff09"}],"off_ratio":48,"flashsale_info":[],"sales":2};
return `
`
}()}