🎁💝 Glitter Diamond Magnetic Ring Holder Case for iPhone
₦96,000
₦192,000
SAVE 50%
${(function() {
var variantData = data.variant;
var productData = data.product;
var hasDiscount = false;
var discountPercentage = 0;
var currentPrice = 0;
var comparePrice = 0;
// 关键修复:更全面地检查所有可能的原价字段
if (variantData) {
currentPrice = variantData.price;
// 按优先级尝试获取原价
comparePrice = variantData.compare_at_price
|| variantData.compareAtPrice
|| (productData && productData.compare_at_price_max)
|| (productData && productData.compareAtPriceMax)
|| 0;
// 确保 comparePrice 是数字
comparePrice = Number(comparePrice) || 0;
currentPrice = Number(currentPrice) || 0;
if (comparePrice > currentPrice && currentPrice > 0) {
hasDiscount = true;
discountPercentage = Math.round(((comparePrice - currentPrice) / comparePrice) * 100);
}
} else if (productData) {
// 产品级别的价格
currentPrice = productData.price || productData.price_min || productData.priceMin || 0;
comparePrice = productData.compare_at_price_max
|| productData.compareAtPriceMax
|| productData.compare_at_price
|| productData.compareAtPrice
|| 0;
// 确保是数字
comparePrice = Number(comparePrice) || 0;
currentPrice = Number(currentPrice) || 0;
if (comparePrice > currentPrice && currentPrice > 0) {
hasDiscount = true;
discountPercentage = Math.round(((comparePrice - currentPrice) / comparePrice) * 100);
}
}
// 调试信息(生产环境可删除)
console.log('Price Debug:', {
variantData: variantData,
productData: productData,
currentPrice: currentPrice,
comparePrice: comparePrice,
hasDiscount: hasDiscount,
discountPercentage: discountPercentage
});
var priceHtml = '';
priceHtml += '
';
priceHtml += '
';
priceHtml += '
';
if (variantData || productData) {
priceHtml += '';
if (hasDiscount && comparePrice > 0) {
priceHtml += '';
}
}
priceHtml += '
';
if (hasDiscount && discountPercentage > 0) {
priceHtml += '
SAVE ' + discountPercentage + '%
';
}
priceHtml += '
';
return priceHtml;
})()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
Glitter Diamond Magnetic Ring Holder Case for iPhone
✅Available for iPhone 16/15/14 Series
【Hidden Stand】Built-in adjustable stand with different angles, you just put your phone with this case on the desk to watch video at a comfortable angle with hands free. 360 Degree All Around Protection Allow you to easily cheerful every day, has a good mood.
【Magnetic and Wireless Charging】Offering a magnetic ring and stand function, the built-in magnet strengthens the connected. No more taking off your case every time you charge your phone.
【Durable Material】Made of TPU material, and easy to install or disassemble. The soft and comfortable rubber frame provides excellent drop protection and shock resistance. It provides your iPhone with maximum protection.Precise cutting ensures easy access to all ports, buttons, speakers and cameras.