Samsung Magnetic Double-Sided Protection Tempered Glass Phone Case
${function() {
const variantData = data.variant || {"id":"c66d67fc-d800-4d0b-977a-63842274b9e6","product_id":"2af8d0ed-357a-4e09-a67d-66ca908d1721","title":"Galaxy Note 20 Ultra-Bronze Gold","weight_unit":"kg","inventory_quantity":998,"sku":"225-Galaxy Note 20 Ultra-Bronze Gold","barcode":"","position":1,"option1":"Galaxy Note 20 Ultra","option2":"Bronze Gold","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff3bd8365d9d35990bfe85af9fa34cf3.jpeg","path":"ff3bd8365d9d35990bfe85af9fa34cf3.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.98","price":"34.99","retail_price":"68.98","available":true,"url":"\/products\/samsung?variant=c66d67fc-d800-4d0b-977a-63842274b9e6","available_quantity":999999999,"options":[{"name":"Size","value":"Galaxy Note 20 Ultra"},{"name":"Color","value":"Bronze Gold"}],"off_ratio":49,"flashsale_info":[],"sales":1};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Size:
Galaxy Note 20 Ultra
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Por favor seleccione un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Color:
Bronze Gold
${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 seleccione un {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Añadir a la cesta
$34.99
${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":"c66d67fc-d800-4d0b-977a-63842274b9e6","product_id":"2af8d0ed-357a-4e09-a67d-66ca908d1721","title":"Galaxy Note 20 Ultra-Bronze Gold","weight_unit":"kg","inventory_quantity":998,"sku":"225-Galaxy Note 20 Ultra-Bronze Gold","barcode":"","position":1,"option1":"Galaxy Note 20 Ultra","option2":"Bronze Gold","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff3bd8365d9d35990bfe85af9fa34cf3.jpeg","path":"ff3bd8365d9d35990bfe85af9fa34cf3.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.98","price":"34.99","retail_price":"68.98","available":true,"url":"\/products\/samsung?variant=c66d67fc-d800-4d0b-977a-63842274b9e6","available_quantity":999999999,"options":[{"name":"Size","value":"Galaxy Note 20 Ultra"},{"name":"Color","value":"Bronze Gold"}],"off_ratio":49,"flashsale_info":[],"sales":1};
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 ? `
` : ' ';
}
}()}
Compra ahora
El producto estaba agotado.
El producto no está disponible.
${function(){
const variantData = data.variant || {"id":"c66d67fc-d800-4d0b-977a-63842274b9e6","product_id":"2af8d0ed-357a-4e09-a67d-66ca908d1721","title":"Galaxy Note 20 Ultra-Bronze Gold","weight_unit":"kg","inventory_quantity":998,"sku":"225-Galaxy Note 20 Ultra-Bronze Gold","barcode":"","position":1,"option1":"Galaxy Note 20 Ultra","option2":"Bronze Gold","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff3bd8365d9d35990bfe85af9fa34cf3.jpeg","path":"ff3bd8365d9d35990bfe85af9fa34cf3.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.98","price":"34.99","retail_price":"68.98","available":true,"url":"\/products\/samsung?variant=c66d67fc-d800-4d0b-977a-63842274b9e6","available_quantity":999999999,"options":[{"name":"Size","value":"Galaxy Note 20 Ultra"},{"name":"Color","value":"Bronze Gold"}],"off_ratio":49,"flashsale_info":[],"sales":1};
return `
Peso : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Código de barras : ${variantData && variantData.barcode}
`
}()}