Fabric Roses - With Instructions + Template
${function() {
const variantData = data.variant || {"id":"867e3b81-0ce2-4f84-b3af-592558057ad6","product_id":"cc8d4f3f-49c4-4cae-b51e-c511ec985f03","title":"S -6 inches","weight_unit":"kg","inventory_quantity":998,"sku":"MGH-S-LX","barcode":"","position":1,"option1":"S -6 inches","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":17.85,"min_quantity":1}],"weight":"0","compare_at_price":"29","price":"17.85","retail_price":"29","available":true,"url":"\/products\/fabric-roses-with-instructions-template3c63518c-4ad1-4f39-8ada-778c78058d4f?variant=867e3b81-0ce2-4f84-b3af-592558057ad6","available_quantity":999999999,"options":[{"name":"SIZE","value":"S -6 inches"}],"off_ratio":38,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Size:
S -6 inches
${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
$17.85
${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":"867e3b81-0ce2-4f84-b3af-592558057ad6","product_id":"cc8d4f3f-49c4-4cae-b51e-c511ec985f03","title":"S -6 inches","weight_unit":"kg","inventory_quantity":998,"sku":"MGH-S-LX","barcode":"","position":1,"option1":"S -6 inches","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":17.85,"min_quantity":1}],"weight":"0","compare_at_price":"29","price":"17.85","retail_price":"29","available":true,"url":"\/products\/fabric-roses-with-instructions-template3c63518c-4ad1-4f39-8ada-778c78058d4f?variant=867e3b81-0ce2-4f84-b3af-592558057ad6","available_quantity":999999999,"options":[{"name":"SIZE","value":"S -6 inches"}],"off_ratio":38,"flashsale_info":[],"sales":1};
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.