MagSafe GlassShield Pro Case
${function() {
const variantData = data.variant || {"id":"f5e92b1d-3f8a-4f15-8258-9ad8b6b99dfa","product_id":"e836a1b2-b890-4943-9d91-3dd78d243bbb","title":"Black-iPhone 15 Pro Max","weight_unit":"kg","inventory_quantity":1000,"sku":"SJJ-Black-iPhone 15 Pro Max","barcode":"","position":15,"option1":"Black","option2":"iPhone 15 Pro Max","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2f3acbe1496d14419b08fb05774776f6.jpeg","path":"2f3acbe1496d14419b08fb05774776f6.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"25.99","retail_price":"49.99","available":true,"url":"\/products\/ag-inside-magsafe-phone-case?variant=f5e92b1d-3f8a-4f15-8258-9ad8b6b99dfa","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Type","value":"iPhone 15 Pro Max"}],"off_ratio":48,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Black
${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}
`
}()}
Type:
iPhone 15 Pro Max
${function(){
const optName = "Type";
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
$25.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":"f5e92b1d-3f8a-4f15-8258-9ad8b6b99dfa","product_id":"e836a1b2-b890-4943-9d91-3dd78d243bbb","title":"Black-iPhone 15 Pro Max","weight_unit":"kg","inventory_quantity":1000,"sku":"SJJ-Black-iPhone 15 Pro Max","barcode":"","position":15,"option1":"Black","option2":"iPhone 15 Pro Max","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2f3acbe1496d14419b08fb05774776f6.jpeg","path":"2f3acbe1496d14419b08fb05774776f6.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"25.99","retail_price":"49.99","available":true,"url":"\/products\/ag-inside-magsafe-phone-case?variant=f5e92b1d-3f8a-4f15-8258-9ad8b6b99dfa","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Type","value":"iPhone 15 Pro Max"}],"off_ratio":48,"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.