${function() {
const variantData = data.variant || {"id":"872522de-17ea-4a7a-8c09-959560f7708f","product_id":"cdba2989-822c-4f44-8e5a-dc8c42fa1618","title":"White","weight_unit":"kg","inventory_quantity":999,"sku":"K578145633216413696","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c35d264300c22c97f2017d9a15b89bc.jpeg","path":"4c35d264300c22c97f2017d9a15b89bc.jpeg","width":898,"height":1200,"alt":"Cute Dachshund Dog Rhinestone Keychain Keyring","aspect_ratio":0.7483333333333333},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0.01","compare_at_price":"15.99","price":"7.99","retail_price":"15.99","available":true,"url":"\/products\/cute-dachshund-dog-rhinestone-keychain-keyring?variant=872522de-17ea-4a7a-8c09-959560f7708f","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":50,"flashsale_info":[],"sales":213};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: White
${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
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"872522de-17ea-4a7a-8c09-959560f7708f","product_id":"cdba2989-822c-4f44-8e5a-dc8c42fa1618","title":"White","weight_unit":"kg","inventory_quantity":999,"sku":"K578145633216413696","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c35d264300c22c97f2017d9a15b89bc.jpeg","path":"4c35d264300c22c97f2017d9a15b89bc.jpeg","width":898,"height":1200,"alt":"Cute Dachshund Dog Rhinestone Keychain Keyring","aspect_ratio":0.7483333333333333},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0.01","compare_at_price":"15.99","price":"7.99","retail_price":"15.99","available":true,"url":"\/products\/cute-dachshund-dog-rhinestone-keychain-keyring?variant=872522de-17ea-4a7a-8c09-959560f7708f","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":50,"flashsale_info":[],"sales":213};
return `
`
}()}