Tooth Care Soothing Dental Discomfort Care Solution
${function() {
const variantData = data.variant || {"id":"f3c95aee-9f5b-498e-912d-6cd9a947c35e","product_id":"14ad15ec-a1dc-423c-a1d1-eaa9b218484e","title":"Buy 1","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Buy 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e7b91e14e9eba2ee895f57f3d4d828c9.png","path":"e7b91e14e9eba2ee895f57f3d4d828c9.png","width":1518,"height":1345,"alt":"","aspect_ratio":1.1286245353159852},"wholesale_price":[{"price":24.93,"min_quantity":1}],"weight":"0","compare_at_price":"48.93","price":"24.93","retail_price":"48.93","available":true,"url":"\/products\/tooth-care-soothing-dental-discomfort-care-solution?variant=f3c95aee-9f5b-498e-912d-6cd9a947c35e","available_quantity":999999999,"options":[{"name":"Quantity","value":"Buy 1"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Quantity:
Buy 1
${function(){
const optName = "Quantity";
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}
`
}()}
Supports return and exchange within 30 days
Add to cart
$24.93
${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":"f3c95aee-9f5b-498e-912d-6cd9a947c35e","product_id":"14ad15ec-a1dc-423c-a1d1-eaa9b218484e","title":"Buy 1","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Buy 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e7b91e14e9eba2ee895f57f3d4d828c9.png","path":"e7b91e14e9eba2ee895f57f3d4d828c9.png","width":1518,"height":1345,"alt":"","aspect_ratio":1.1286245353159852},"wholesale_price":[{"price":24.93,"min_quantity":1}],"weight":"0","compare_at_price":"48.93","price":"24.93","retail_price":"48.93","available":true,"url":"\/products\/tooth-care-soothing-dental-discomfort-care-solution?variant=f3c95aee-9f5b-498e-912d-6cd9a947c35e","available_quantity":999999999,"options":[{"name":"Quantity","value":"Buy 1"}],"off_ratio":49,"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.