Funny creative pan iPhone case
${function() {
const variantData = data.variant || {"id":"75485986-1933-4ebc-abd2-b4370c7e31a4","product_id":"6c618f16-fea0-44fa-9761-c6c81417c8fb","title":"iPhone 11-black pan","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"iPhone 11","option2":"black pan","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/97f16e2fd0813fcfd932097cb711bc07.jpg","path":"97f16e2fd0813fcfd932097cb711bc07.jpg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":1200,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1200","retail_price":"0","available":true,"url":"\/products\/\u03b1-iphone-n3lz-g0xr-6qn7-6l7p-q6m6?variant=75485986-1933-4ebc-abd2-b4370c7e31a4","available_quantity":999999999,"options":[{"name":"Mobile phone model","value":"iPhone 11"},{"name":"color","value":"black pan"}],"off_ratio":0,"flashsale_info":[],"sales":879};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Mobile phone model:
iPhone 11
${function(){
const optName = "Mobile phone model";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Por favor selecione um {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
color:
black pan
${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 = "Por favor selecione um {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Adicionar ao Carrinho
€1,200.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":"75485986-1933-4ebc-abd2-b4370c7e31a4","product_id":"6c618f16-fea0-44fa-9761-c6c81417c8fb","title":"iPhone 11-black pan","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"iPhone 11","option2":"black pan","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/97f16e2fd0813fcfd932097cb711bc07.jpg","path":"97f16e2fd0813fcfd932097cb711bc07.jpg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":1200,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1200","retail_price":"0","available":true,"url":"\/products\/\u03b1-iphone-n3lz-g0xr-6qn7-6l7p-q6m6?variant=75485986-1933-4ebc-abd2-b4370c7e31a4","available_quantity":999999999,"options":[{"name":"Mobile phone model","value":"iPhone 11"},{"name":"color","value":"black pan"}],"off_ratio":0,"flashsale_info":[],"sales":879};
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 ? `
` : ' ';
}
}()}
Compre Agora
Produto estava esgotado.
O produto está indisponível.
${function(){
const variantData = data.variant || {"id":"75485986-1933-4ebc-abd2-b4370c7e31a4","product_id":"6c618f16-fea0-44fa-9761-c6c81417c8fb","title":"iPhone 11-black pan","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"iPhone 11","option2":"black pan","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/97f16e2fd0813fcfd932097cb711bc07.jpg","path":"97f16e2fd0813fcfd932097cb711bc07.jpg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":1200,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1200","retail_price":"0","available":true,"url":"\/products\/\u03b1-iphone-n3lz-g0xr-6qn7-6l7p-q6m6?variant=75485986-1933-4ebc-abd2-b4370c7e31a4","available_quantity":999999999,"options":[{"name":"Mobile phone model","value":"iPhone 11"},{"name":"color","value":"black pan"}],"off_ratio":0,"flashsale_info":[],"sales":879};
return `
Sku : ${variantData && variantData.sku}
Peso : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Código de barras : ${variantData && variantData.barcode}
`
}()}