$product = {"id":7876192305251,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!!","handle":"iphone-14-pro-mod-nx-magsafe-printable-em50","description":null,"published_at":"2025-09-04T09:04:40+08:00","created_at":"2025-09-03T12:25:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 14 Pro","merge","reseller-xiaolaofu"],"price":110000,"price_min":110000,"price_max":110000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":43675788083299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM50","requires_shipping":true,"taxable":true,"featured_image":{"id":34416759111779,"product_id":7876192305251,"position":10,"created_at":"2025-09-03T12:25:58+08:00","updated_at":"2025-09-03T12:26:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560","variant_ids":[43675788083299]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!! - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-EM50","featured_media":{"alt":null,"id":25989033885795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675788247139,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EM50","requires_shipping":true,"taxable":true,"featured_image":{"id":34416758882403,"product_id":7876192305251,"position":9,"created_at":"2025-09-03T12:25:57+08:00","updated_at":"2025-09-03T12:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d18061f55620470f5b9edc41325e46a1b9c383f.webp?v=1756873559","variant_ids":[43675788247139]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!! - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-EM50","featured_media":{"alt":null,"id":25989033656419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d18061f55620470f5b9edc41325e46a1b9c383f.webp?v=1756873559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675788345443,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EM50","requires_shipping":true,"taxable":true,"featured_image":{"id":34416758325347,"product_id":7876192305251,"position":7,"created_at":"2025-09-03T12:25:55+08:00","updated_at":"2025-09-03T12:25:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6804e4d91a4d9b9213cd165c43d0b4af837f1b.webp?v=1756873557","variant_ids":[43675788345443]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!! - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-EM50","featured_media":{"alt":null,"id":25989033099363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6804e4d91a4d9b9213cd165c43d0b4af837f1b.webp?v=1756873557"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/660349bd2a7e9736ccee1148ee118b0db6611dd1.webp?v=1756873553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06fa337d4dff6a2010c2bbf20dc64f87f8b4e650.webp?v=1756873554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a27f92ab31c6bac08b939395736eb28248672fd.webp?v=1756873554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1f0177b75cd1ae15171d178c9c781616484b4f.webp?v=1756873555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793d2f12a5a7d86c47f8d41b0c2c236f0332c015.webp?v=1756873556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0fcadc779a0a63e2cf39d288e2b12b32e85a8f4.webp?v=1756873556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6804e4d91a4d9b9213cd165c43d0b4af837f1b.webp?v=1756873557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1bb568d09717c4279823335336ceef1284cb9c.webp?v=1756873558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d18061f55620470f5b9edc41325e46a1b9c383f.webp?v=1756873559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a33124a79eeb906960d923b5479465f3850adf.webp?v=1756873561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28097a3c35b93e8f858ec47d0d735ecc63229aec.webp?v=1756873562"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/660349bd2a7e9736ccee1148ee118b0db6611dd1.webp?v=1756873553","options":["color"],"media":[{"alt":null,"id":25989031919715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/660349bd2a7e9736ccee1148ee118b0db6611dd1.webp?v=1756873553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/660349bd2a7e9736ccee1148ee118b0db6611dd1.webp?v=1756873553","width":2000},{"alt":null,"id":25989032083555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06fa337d4dff6a2010c2bbf20dc64f87f8b4e650.webp?v=1756873554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06fa337d4dff6a2010c2bbf20dc64f87f8b4e650.webp?v=1756873554","width":2000},{"alt":null,"id":25989032312931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a27f92ab31c6bac08b939395736eb28248672fd.webp?v=1756873554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a27f92ab31c6bac08b939395736eb28248672fd.webp?v=1756873554","width":2000},{"alt":null,"id":25989032509539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1f0177b75cd1ae15171d178c9c781616484b4f.webp?v=1756873555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1f0177b75cd1ae15171d178c9c781616484b4f.webp?v=1756873555","width":2000},{"alt":null,"id":25989032837219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793d2f12a5a7d86c47f8d41b0c2c236f0332c015.webp?v=1756873556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793d2f12a5a7d86c47f8d41b0c2c236f0332c015.webp?v=1756873556","width":2000},{"alt":null,"id":25989033033827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0fcadc779a0a63e2cf39d288e2b12b32e85a8f4.webp?v=1756873556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0fcadc779a0a63e2cf39d288e2b12b32e85a8f4.webp?v=1756873556","width":2000},{"alt":null,"id":25989033099363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6804e4d91a4d9b9213cd165c43d0b4af837f1b.webp?v=1756873557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6804e4d91a4d9b9213cd165c43d0b4af837f1b.webp?v=1756873557","width":2000},{"alt":null,"id":25989033394275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1bb568d09717c4279823335336ceef1284cb9c.webp?v=1756873558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1bb568d09717c4279823335336ceef1284cb9c.webp?v=1756873558","width":2000},{"alt":null,"id":25989033656419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d18061f55620470f5b9edc41325e46a1b9c383f.webp?v=1756873559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d18061f55620470f5b9edc41325e46a1b9c383f.webp?v=1756873559","width":2000},{"alt":null,"id":25989033885795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560","width":2000},{"alt":null,"id":25989034082403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a33124a79eeb906960d923b5479465f3850adf.webp?v=1756873561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a33124a79eeb906960d923b5479465f3850adf.webp?v=1756873561","width":2000},{"alt":null,"id":25989034279011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28097a3c35b93e8f858ec47d0d735ecc63229aec.webp?v=1756873562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28097a3c35b93e8f858ec47d0d735ecc63229aec.webp?v=1756873562","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675788083299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM50","requires_shipping":true,"taxable":true,"featured_image":{"id":34416759111779,"product_id":7876192305251,"position":10,"created_at":"2025-09-03T12:25:58+08:00","updated_at":"2025-09-03T12:26:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560","variant_ids":[43675788083299]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!! - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-EM50","featured_media":{"alt":null,"id":25989033885795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675788247139,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EM50","requires_shipping":true,"taxable":true,"featured_image":{"id":34416758882403,"product_id":7876192305251,"position":9,"created_at":"2025-09-03T12:25:57+08:00","updated_at":"2025-09-03T12:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d18061f55620470f5b9edc41325e46a1b9c383f.webp?v=1756873559","variant_ids":[43675788247139]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!! - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-EM50","featured_media":{"alt":null,"id":25989033656419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d18061f55620470f5b9edc41325e46a1b9c383f.webp?v=1756873559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675788345443,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EM50","requires_shipping":true,"taxable":true,"featured_image":{"id":34416758325347,"product_id":7876192305251,"position":7,"created_at":"2025-09-03T12:25:55+08:00","updated_at":"2025-09-03T12:25:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6804e4d91a4d9b9213cd165c43d0b4af837f1b.webp?v=1756873557","variant_ids":[43675788345443]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!! - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-EM50","featured_media":{"alt":null,"id":25989033099363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6804e4d91a4d9b9213cd165c43d0b4af837f1b.webp?v=1756873557"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675788083299,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM50","requires_shipping":true,"taxable":true,"featured_image":{"id":34416759111779,"product_id":7876192305251,"position":10,"created_at":"2025-09-03T12:25:58+08:00","updated_at":"2025-09-03T12:26:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560","variant_ids":[43675788083299]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 我好棒!! - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-EM50","featured_media":{"alt":null,"id":25989033885795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/debd38b80dc13f5f3d9e350d7fb399141f5c8daf.webp?v=1756873560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }