Ice Cube Maker
${function() {
const variantData = data.variant || {"id":"38a55754-9f05-42cb-8588-eb6645b83e91","product_id":"fc265be9-3167-4790-9c69-50514dd209df","title":"style 2","weight_unit":"kg","inventory_quantity":999,"sku":"ICM-bear-style 2","barcode":"","position":1,"option1":"style 2","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/31242fe2b0facf13c4b8ed10209c3949.jpeg","path":"31242fe2b0facf13c4b8ed10209c3949.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.42,"min_quantity":1}],"weight":"0","compare_at_price":"44.84","price":"22.42","retail_price":"44.84","available":true,"url":"\/products\/ice-cube-maker-little-bear-dogshape-tray-ice-cream-tool-whiskey-wine-cocktail-ice-cube-\u0444\u043e\u0440\u043c\u0430-\u0434\u043b\u044f-\u043b\u044c\u0434\u0430-\u0441\u0438\u043b\u0438\u043a\u043e\u043d\u043e\u0432\u044b\u0435-\u0444\u043e\u0440\u043c\u044b-\u0444\u043e\u0440\u043c\u044b?variant=38a55754-9f05-42cb-8588-eb6645b83e91","available_quantity":999999999,"options":[{"name":"Color","value":"style 2"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
style 2
${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
$22.42
${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":"38a55754-9f05-42cb-8588-eb6645b83e91","product_id":"fc265be9-3167-4790-9c69-50514dd209df","title":"style 2","weight_unit":"kg","inventory_quantity":999,"sku":"ICM-bear-style 2","barcode":"","position":1,"option1":"style 2","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/31242fe2b0facf13c4b8ed10209c3949.jpeg","path":"31242fe2b0facf13c4b8ed10209c3949.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.42,"min_quantity":1}],"weight":"0","compare_at_price":"44.84","price":"22.42","retail_price":"44.84","available":true,"url":"\/products\/ice-cube-maker-little-bear-dogshape-tray-ice-cream-tool-whiskey-wine-cocktail-ice-cube-\u0444\u043e\u0440\u043c\u0430-\u0434\u043b\u044f-\u043b\u044c\u0434\u0430-\u0441\u0438\u043b\u0438\u043a\u043e\u043d\u043e\u0432\u044b\u0435-\u0444\u043e\u0440\u043c\u044b-\u0444\u043e\u0440\u043c\u044b?variant=38a55754-9f05-42cb-8588-eb6645b83e91","available_quantity":999999999,"options":[{"name":"Color","value":"style 2"}],"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.