Three-dimensional luminous cow mobile phone case
${function() {
const variantData = data.variant || {"id":"dda17637-dae5-4b9d-b782-5edea4ccdde2","product_id":"c37114c9-1db2-4d6c-84fb-74919a416fab","title":"iPhone 11","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"iPhone 11","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":1200,"min_quantity":1}],"weight":"0","compare_at_price":"48","price":"1200","retail_price":"48","available":true,"url":"\/products\/three-dimensional-luminous-cow-mobile-phone-case?variant=dda17637-dae5-4b9d-b782-5edea4ccdde2","available_quantity":999999999,"options":[{"name":"model","value":"iPhone 11"}],"off_ratio":0,"flashsale_info":[],"sales":619};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
model:
iPhone 11
${function(){
const optName = "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}
`
}()}
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":"dda17637-dae5-4b9d-b782-5edea4ccdde2","product_id":"c37114c9-1db2-4d6c-84fb-74919a416fab","title":"iPhone 11","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"iPhone 11","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":1200,"min_quantity":1}],"weight":"0","compare_at_price":"48","price":"1200","retail_price":"48","available":true,"url":"\/products\/three-dimensional-luminous-cow-mobile-phone-case?variant=dda17637-dae5-4b9d-b782-5edea4ccdde2","available_quantity":999999999,"options":[{"name":"model","value":"iPhone 11"}],"off_ratio":0,"flashsale_info":[],"sales":619};
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":"dda17637-dae5-4b9d-b782-5edea4ccdde2","product_id":"c37114c9-1db2-4d6c-84fb-74919a416fab","title":"iPhone 11","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"iPhone 11","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":1200,"min_quantity":1}],"weight":"0","compare_at_price":"48","price":"1200","retail_price":"48","available":true,"url":"\/products\/three-dimensional-luminous-cow-mobile-phone-case?variant=dda17637-dae5-4b9d-b782-5edea4ccdde2","available_quantity":999999999,"options":[{"name":"model","value":"iPhone 11"}],"off_ratio":0,"flashsale_info":[],"sales":619};
return `
Sku : ${variantData && variantData.sku}
Peso : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Código de barras : ${variantData && variantData.barcode}
`
}()}