${function() {
const variantData = data.variant || {"id":"fb8205ea-288b-4de6-807c-7bd198fd678b","product_id":"30e4d798-69a5-475d-9bea-4ec79b8bb2e2","title":"Pink-For Samsung Galaxy Z Fold 4 5G","weight_unit":"kg","inventory_quantity":200,"sku":"stn02-221104-Pink-For Samsung Galaxy Z Fold 4 5G","barcode":"","position":3,"option1":"Pink","option2":"For Samsung Galaxy Z Fold 4 5G","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bacabe1cd9c4913ee30baa1f4ffde682.jpg","path":"bacabe1cd9c4913ee30baa1f4ffde682.jpg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"33.99","retail_price":"39.99","available":true,"url":"\/products\/2022-new-luxury-plating-high-glossy-soft-case-for-samsung-galaxy-z-fold-4-5g?variant=fb8205ea-288b-4de6-807c-7bd198fd678b","available_quantity":999999999,"options":[{"name":"COLOR","value":"Pink"},{"name":"SAMSUNG SIZE","value":"For Samsung Galaxy Z Fold 4 5G"}],"off_ratio":15,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Pink
${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}
`
}()}
Samsung Size
: For Samsung Galaxy Z Fold 4 5G
${function(){
const optName = "SAMSUNG SIZE";
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
$33.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":"fb8205ea-288b-4de6-807c-7bd198fd678b","product_id":"30e4d798-69a5-475d-9bea-4ec79b8bb2e2","title":"Pink-For Samsung Galaxy Z Fold 4 5G","weight_unit":"kg","inventory_quantity":200,"sku":"stn02-221104-Pink-For Samsung Galaxy Z Fold 4 5G","barcode":"","position":3,"option1":"Pink","option2":"For Samsung Galaxy Z Fold 4 5G","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bacabe1cd9c4913ee30baa1f4ffde682.jpg","path":"bacabe1cd9c4913ee30baa1f4ffde682.jpg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"33.99","retail_price":"39.99","available":true,"url":"\/products\/2022-new-luxury-plating-high-glossy-soft-case-for-samsung-galaxy-z-fold-4-5g?variant=fb8205ea-288b-4de6-807c-7bd198fd678b","available_quantity":999999999,"options":[{"name":"COLOR","value":"Pink"},{"name":"SAMSUNG SIZE","value":"For Samsung Galaxy Z Fold 4 5G"}],"off_ratio":15,"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.
${function(){
const variantData = data.variant || {"id":"fb8205ea-288b-4de6-807c-7bd198fd678b","product_id":"30e4d798-69a5-475d-9bea-4ec79b8bb2e2","title":"Pink-For Samsung Galaxy Z Fold 4 5G","weight_unit":"kg","inventory_quantity":200,"sku":"stn02-221104-Pink-For Samsung Galaxy Z Fold 4 5G","barcode":"","position":3,"option1":"Pink","option2":"For Samsung Galaxy Z Fold 4 5G","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bacabe1cd9c4913ee30baa1f4ffde682.jpg","path":"bacabe1cd9c4913ee30baa1f4ffde682.jpg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"33.99","retail_price":"39.99","available":true,"url":"\/products\/2022-new-luxury-plating-high-glossy-soft-case-for-samsung-galaxy-z-fold-4-5g?variant=fb8205ea-288b-4de6-807c-7bd198fd678b","available_quantity":999999999,"options":[{"name":"COLOR","value":"Pink"},{"name":"SAMSUNG SIZE","value":"For Samsung Galaxy Z Fold 4 5G"}],"off_ratio":15,"flashsale_info":[],"sales":0};
return `
`
}()}