Crocodile Leather Cover For iPhone
${function() {
const variantData = data.variant || {"id":"6a1da46f-62ce-42ca-962f-1e5ead9d7ba9","product_id":"1fc8bb28-3f30-4720-b37d-5730dcd28440","title":"For iPhone 7-Black With Ring","weight_unit":"kg","inventory_quantity":1140,"sku":"PC-002-For iPhone 7-Black With Ring","barcode":"","position":1,"option1":"For iPhone 7","option2":"Black With Ring","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/230e6bd2e2eee868dfbc3701e136aa6f.jpeg","path":"230e6bd2e2eee868dfbc3701e136aa6f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.98,"min_quantity":1}],"weight":"0","compare_at_price":"42.98","price":"22.98","retail_price":"42.98","available":true,"url":"\/products\/crocodile-leather-cover-for-iphone?variant=6a1da46f-62ce-42ca-962f-1e5ead9d7ba9","available_quantity":999999999,"options":[{"name":"Material","value":"For iPhone 7"},{"name":"Color","value":"Black With Ring"}],"off_ratio":47,"flashsale_info":[],"sales":23};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Material:
For iPhone 7
${function(){
const optName = "Material";
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}
`
}()}
Color:
Black With Ring
${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.98
${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":"6a1da46f-62ce-42ca-962f-1e5ead9d7ba9","product_id":"1fc8bb28-3f30-4720-b37d-5730dcd28440","title":"For iPhone 7-Black With Ring","weight_unit":"kg","inventory_quantity":1140,"sku":"PC-002-For iPhone 7-Black With Ring","barcode":"","position":1,"option1":"For iPhone 7","option2":"Black With Ring","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/230e6bd2e2eee868dfbc3701e136aa6f.jpeg","path":"230e6bd2e2eee868dfbc3701e136aa6f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.98,"min_quantity":1}],"weight":"0","compare_at_price":"42.98","price":"22.98","retail_price":"42.98","available":true,"url":"\/products\/crocodile-leather-cover-for-iphone?variant=6a1da46f-62ce-42ca-962f-1e5ead9d7ba9","available_quantity":999999999,"options":[{"name":"Material","value":"For iPhone 7"},{"name":"Color","value":"Black With Ring"}],"off_ratio":47,"flashsale_info":[],"sales":23};
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":"6a1da46f-62ce-42ca-962f-1e5ead9d7ba9","product_id":"1fc8bb28-3f30-4720-b37d-5730dcd28440","title":"For iPhone 7-Black With Ring","weight_unit":"kg","inventory_quantity":1140,"sku":"PC-002-For iPhone 7-Black With Ring","barcode":"","position":1,"option1":"For iPhone 7","option2":"Black With Ring","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/230e6bd2e2eee868dfbc3701e136aa6f.jpeg","path":"230e6bd2e2eee868dfbc3701e136aa6f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.98,"min_quantity":1}],"weight":"0","compare_at_price":"42.98","price":"22.98","retail_price":"42.98","available":true,"url":"\/products\/crocodile-leather-cover-for-iphone?variant=6a1da46f-62ce-42ca-962f-1e5ead9d7ba9","available_quantity":999999999,"options":[{"name":"Material","value":"For iPhone 7"},{"name":"Color","value":"Black With Ring"}],"off_ratio":47,"flashsale_info":[],"sales":23};
return `
`
}()}