$product = {"id":7888481747043,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 格紋拼貼","handle":"iphone-14-plus-mod-nx-magsafe-printable-es05","description":null,"published_at":"2025-09-23T09:14:52+08:00","created_at":"2025-09-22T15:53:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-annnbrownie","device-iPhone 14 Plus","merge","reseller-annnbrownie"],"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":43743286100067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES05","requires_shipping":true,"taxable":true,"featured_image":{"id":34514594824291,"product_id":7888481747043,"position":12,"created_at":"2025-09-22T15:53:49+08:00","updated_at":"2025-09-22T15:53:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631","variant_ids":[43743286100067]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 格紋拼貼 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-ES05","featured_media":{"alt":null,"id":26085037310051,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d32bdbe7e7a6d177b3f8cb29d9cfd3a61e329fd.webp?v=1758527625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655bf52ceeb446954e5e9d2bc200e01266fa7166.webp?v=1758527625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df38944fd7369a83d22d4cd201516d2387ba1edf.webp?v=1758527626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c680c8fba9d70d96aaab94e743d4029b41c812.webp?v=1758527627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613618e975510d828df1d7e066851b6674fdd86c.webp?v=1758527627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62a34a6a041e6fc6e4388012bc54051a216645f4.webp?v=1758527628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75e59cac594e831042862b57b900e4a2ab50e39.webp?v=1758527628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/248e8e5c02edfd2724196a62ce34f85e39078d30.webp?v=1758527629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/126b3a2cea37611614aa4aacb5568a0a82690d32.webp?v=1758527629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6df775494e3861833a098f4c82ba50f0cfbb72b.webp?v=1758527630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a6aaeb8c4f5c5585025dbb2b85d48fd2d8fb25c.webp?v=1758527630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe609eff186972390fcaca0f5b50b1dfbfd561c.webp?v=1758527631"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d32bdbe7e7a6d177b3f8cb29d9cfd3a61e329fd.webp?v=1758527625","options":["color"],"media":[{"alt":null,"id":26085035507811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d32bdbe7e7a6d177b3f8cb29d9cfd3a61e329fd.webp?v=1758527625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d32bdbe7e7a6d177b3f8cb29d9cfd3a61e329fd.webp?v=1758527625","width":2000},{"alt":null,"id":26085035606115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655bf52ceeb446954e5e9d2bc200e01266fa7166.webp?v=1758527625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655bf52ceeb446954e5e9d2bc200e01266fa7166.webp?v=1758527625","width":2000},{"alt":null,"id":26085035868259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df38944fd7369a83d22d4cd201516d2387ba1edf.webp?v=1758527626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df38944fd7369a83d22d4cd201516d2387ba1edf.webp?v=1758527626","width":2000},{"alt":null,"id":26085036163171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c680c8fba9d70d96aaab94e743d4029b41c812.webp?v=1758527627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c680c8fba9d70d96aaab94e743d4029b41c812.webp?v=1758527627","width":2000},{"alt":null,"id":26085036359779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613618e975510d828df1d7e066851b6674fdd86c.webp?v=1758527627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613618e975510d828df1d7e066851b6674fdd86c.webp?v=1758527627","width":2000},{"alt":null,"id":26085036523619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62a34a6a041e6fc6e4388012bc54051a216645f4.webp?v=1758527628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62a34a6a041e6fc6e4388012bc54051a216645f4.webp?v=1758527628","width":2000},{"alt":null,"id":26085036720227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75e59cac594e831042862b57b900e4a2ab50e39.webp?v=1758527628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75e59cac594e831042862b57b900e4a2ab50e39.webp?v=1758527628","width":2000},{"alt":null,"id":26085036818531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/248e8e5c02edfd2724196a62ce34f85e39078d30.webp?v=1758527629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/248e8e5c02edfd2724196a62ce34f85e39078d30.webp?v=1758527629","width":2000},{"alt":null,"id":26085036884067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/126b3a2cea37611614aa4aacb5568a0a82690d32.webp?v=1758527629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/126b3a2cea37611614aa4aacb5568a0a82690d32.webp?v=1758527629","width":2000},{"alt":null,"id":26085036982371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6df775494e3861833a098f4c82ba50f0cfbb72b.webp?v=1758527630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6df775494e3861833a098f4c82ba50f0cfbb72b.webp?v=1758527630","width":2000},{"alt":null,"id":26085037146211,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a6aaeb8c4f5c5585025dbb2b85d48fd2d8fb25c.webp?v=1758527630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a6aaeb8c4f5c5585025dbb2b85d48fd2d8fb25c.webp?v=1758527630","width":2000},{"alt":null,"id":26085037310051,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631","width":2000},{"alt":null,"id":26085037506659,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe609eff186972390fcaca0f5b50b1dfbfd561c.webp?v=1758527631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe609eff186972390fcaca0f5b50b1dfbfd561c.webp?v=1758527631","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743286100067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES05","requires_shipping":true,"taxable":true,"featured_image":{"id":34514594824291,"product_id":7888481747043,"position":12,"created_at":"2025-09-22T15:53:49+08:00","updated_at":"2025-09-22T15:53:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631","variant_ids":[43743286100067]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 格紋拼貼 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-ES05","featured_media":{"alt":null,"id":26085037310051,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743286100067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-ES05","requires_shipping":true,"taxable":true,"featured_image":{"id":34514594824291,"product_id":7888481747043,"position":12,"created_at":"2025-09-22T15:53:49+08:00","updated_at":"2025-09-22T15:53:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631","variant_ids":[43743286100067]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 布朗尼 annnbrownie 格紋拼貼 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-ES05","featured_media":{"alt":null,"id":26085037310051,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace035700f5d396fb44201423389c63cc043d23e.webp?v=1758527631"}},"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: "停產" }