Handcrafted Floral Ring
${function() {
const variantData = data.variant || {"id":"cae00ebc-875e-4b50-b064-76e0c0cf0a09","product_id":"a6b9ff81-f3a2-4400-a9f4-b9a43f7507f1","title":"Style A-No Thanks.","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Style A","option2":"No Thanks.","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/00c4d8098876010de3a89b67a6bb8e45.png","path":"00c4d8098876010de3a89b67a6bb8e45.png","width":1252,"height":1250,"alt":"","aspect_ratio":1.0016},"wholesale_price":[{"price":9.9,"min_quantity":1}],"weight":"0","compare_at_price":"19.98","price":"9.9","retail_price":"19.98","available":true,"url":"\/products\/big-floral-ring?variant=cae00ebc-875e-4b50-b064-76e0c0cf0a09","available_quantity":999999999,"options":[{"name":"Style","value":"Style A"},{"name":"Gift Box","value":"No Thanks."}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
people are viewing this right now
Style:
Style A
${function(){
const optName = "Style";
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}
`
}()}
Gift Box:
No Thanks.
${function(){
const optName = "Gift Box";
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
$9.90
${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":"cae00ebc-875e-4b50-b064-76e0c0cf0a09","product_id":"a6b9ff81-f3a2-4400-a9f4-b9a43f7507f1","title":"Style A-No Thanks.","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Style A","option2":"No Thanks.","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/00c4d8098876010de3a89b67a6bb8e45.png","path":"00c4d8098876010de3a89b67a6bb8e45.png","width":1252,"height":1250,"alt":"","aspect_ratio":1.0016},"wholesale_price":[{"price":9.9,"min_quantity":1}],"weight":"0","compare_at_price":"19.98","price":"9.9","retail_price":"19.98","available":true,"url":"\/products\/big-floral-ring?variant=cae00ebc-875e-4b50-b064-76e0c0cf0a09","available_quantity":999999999,"options":[{"name":"Style","value":"Style A"},{"name":"Gift Box","value":"No Thanks."}],"off_ratio":50,"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":"cae00ebc-875e-4b50-b064-76e0c0cf0a09","product_id":"a6b9ff81-f3a2-4400-a9f4-b9a43f7507f1","title":"Style A-No Thanks.","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Style A","option2":"No Thanks.","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/00c4d8098876010de3a89b67a6bb8e45.png","path":"00c4d8098876010de3a89b67a6bb8e45.png","width":1252,"height":1250,"alt":"","aspect_ratio":1.0016},"wholesale_price":[{"price":9.9,"min_quantity":1}],"weight":"0","compare_at_price":"19.98","price":"9.9","retail_price":"19.98","available":true,"url":"\/products\/big-floral-ring?variant=cae00ebc-875e-4b50-b064-76e0c0cf0a09","available_quantity":999999999,"options":[{"name":"Style","value":"Style A"},{"name":"Gift Box","value":"No Thanks."}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
`
}()}