Plush Heart Sunglasses Heart Ball Party Sunglasses
${function() {
const variantData = data.variant || {"id":"8b5c96df-d015-44d6-a61e-0d30ff9180f3","product_id":"ebea22c4-877a-4105-b99f-26f3705a693e","title":"C1","weight_unit":"kg","inventory_quantity":999999,"sku":"EO23113016-C1","barcode":"","position":1,"option1":"C1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/734bb35699e16d33ae48a36de95dfc42.jpeg","path":"734bb35699e16d33ae48a36de95dfc42.jpeg","width":686,"height":684,"alt":"Plush Heart Sunglasses Heart Ball Party Sunglasses","aspect_ratio":1.0029239766081872},"wholesale_price":[{"price":5,"min_quantity":1}],"weight":"0.04","compare_at_price":"5","price":"5","retail_price":"5","available":true,"url":"\/products\/plush-heart-sunglasses-heart-ball-party-sunglasses?variant=8b5c96df-d015-44d6-a61e-0d30ff9180f3","available_quantity":999999999,"options":[{"name":"Color","value":"C1"}],"off_ratio":0,"flashsale_info":[],"sales":11};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
C1
${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
$5.00
${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":"8b5c96df-d015-44d6-a61e-0d30ff9180f3","product_id":"ebea22c4-877a-4105-b99f-26f3705a693e","title":"C1","weight_unit":"kg","inventory_quantity":999999,"sku":"EO23113016-C1","barcode":"","position":1,"option1":"C1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/734bb35699e16d33ae48a36de95dfc42.jpeg","path":"734bb35699e16d33ae48a36de95dfc42.jpeg","width":686,"height":684,"alt":"Plush Heart Sunglasses Heart Ball Party Sunglasses","aspect_ratio":1.0029239766081872},"wholesale_price":[{"price":5,"min_quantity":1}],"weight":"0.04","compare_at_price":"5","price":"5","retail_price":"5","available":true,"url":"\/products\/plush-heart-sunglasses-heart-ball-party-sunglasses?variant=8b5c96df-d015-44d6-a61e-0d30ff9180f3","available_quantity":999999999,"options":[{"name":"Color","value":"C1"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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":"8b5c96df-d015-44d6-a61e-0d30ff9180f3","product_id":"ebea22c4-877a-4105-b99f-26f3705a693e","title":"C1","weight_unit":"kg","inventory_quantity":999999,"sku":"EO23113016-C1","barcode":"","position":1,"option1":"C1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/734bb35699e16d33ae48a36de95dfc42.jpeg","path":"734bb35699e16d33ae48a36de95dfc42.jpeg","width":686,"height":684,"alt":"Plush Heart Sunglasses Heart Ball Party Sunglasses","aspect_ratio":1.0029239766081872},"wholesale_price":[{"price":5,"min_quantity":1}],"weight":"0.04","compare_at_price":"5","price":"5","retail_price":"5","available":true,"url":"\/products\/plush-heart-sunglasses-heart-ball-party-sunglasses?variant=8b5c96df-d015-44d6-a61e-0d30ff9180f3","available_quantity":999999999,"options":[{"name":"Color","value":"C1"}],"off_ratio":0,"flashsale_info":[],"sales":11};
return `
Sku : ${variantData && variantData.sku}
`
}()}
people are viewing this right now