$product = {"id":7769534955619,"title":"iPhone 12 Pro Max Mod NX ilovedoodle Cat People - 貓派","handle":"iphone-12-pro-max-mod-nx-printable-xf54","description":null,"published_at":"2025-07-16T17:26:03+08:00","created_at":"2025-04-15T17:27:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 12 Pro Max","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":43302804488291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34196564017251,"product_id":7769534955619,"position":9,"created_at":"2025-07-16T14:46:15+08:00","updated_at":"2025-07-16T14:46:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376","variant_ids":[43302804488291]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF54","featured_media":{"alt":null,"id":25829423349859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976c745a8e50c7316a89d76dbb022007802e6c44_59e51210-fd2b-4fb0-9eb3-b8c92c7f83ba.webp?v=1744709253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a353a4538fc09dfd71efd9cf621164e92d6290_57b1b5b7-f8aa-4c8a-a64d-76cb4db5e892.webp?v=1752648373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de74ea199de9b7c1494c8936407b68d766e97426_7d1789da-11b5-4fc2-a676-5b729f898805.webp?v=1752648373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e50dd951ac14a471355e21a7f4f8311c41b9f43_baae0b09-16f6-47c1-832d-34190132a5e0.webp?v=1752648374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e640ae83399ebbc3636c2b46d796b91eb4441bee_73b996af-09f3-4cda-ad63-b06105d25b9c.webp?v=1752648374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6b70a4c8886ccb261a9efe6c17d8d9c78ef6ec_7c493057-406e-4fea-afaf-a372d2cb71d6.webp?v=1752648375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe15fbc80fa6e274e8f1001adb45f7ab1316328_209a7567-3159-48c7-9c0e-a5b205618708.webp?v=1752648375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d92594444fc0b4be28cbe26e6c2cf30daa6eed3_f9051443-6b32-4609-becd-1afa89537fa8.webp?v=1752648376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e9ad0de442183069e9d5f558ee69da88a07ff02_49a64d54-30b7-40e6-a86d-b4dc46a3a27f.webp?v=1752648377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b31b7c7409ce2f43a5a1d37fc2e45aef4ab2ea0_445968d0-c12c-43d6-ad9b-9ff1c63eb968.webp?v=1752648377"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976c745a8e50c7316a89d76dbb022007802e6c44_59e51210-fd2b-4fb0-9eb3-b8c92c7f83ba.webp?v=1744709253","options":["color"],"media":[{"alt":null,"id":25495732617315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976c745a8e50c7316a89d76dbb022007802e6c44_59e51210-fd2b-4fb0-9eb3-b8c92c7f83ba.webp?v=1744709253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/976c745a8e50c7316a89d76dbb022007802e6c44_59e51210-fd2b-4fb0-9eb3-b8c92c7f83ba.webp?v=1744709253","width":2000},{"alt":null,"id":25829421482083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a353a4538fc09dfd71efd9cf621164e92d6290_57b1b5b7-f8aa-4c8a-a64d-76cb4db5e892.webp?v=1752648373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a353a4538fc09dfd71efd9cf621164e92d6290_57b1b5b7-f8aa-4c8a-a64d-76cb4db5e892.webp?v=1752648373","width":2000},{"alt":null,"id":25829421580387,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de74ea199de9b7c1494c8936407b68d766e97426_7d1789da-11b5-4fc2-a676-5b729f898805.webp?v=1752648373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de74ea199de9b7c1494c8936407b68d766e97426_7d1789da-11b5-4fc2-a676-5b729f898805.webp?v=1752648373","width":2000},{"alt":null,"id":25829421744227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e50dd951ac14a471355e21a7f4f8311c41b9f43_baae0b09-16f6-47c1-832d-34190132a5e0.webp?v=1752648374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e50dd951ac14a471355e21a7f4f8311c41b9f43_baae0b09-16f6-47c1-832d-34190132a5e0.webp?v=1752648374","width":2000},{"alt":null,"id":25829422301283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e640ae83399ebbc3636c2b46d796b91eb4441bee_73b996af-09f3-4cda-ad63-b06105d25b9c.webp?v=1752648374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e640ae83399ebbc3636c2b46d796b91eb4441bee_73b996af-09f3-4cda-ad63-b06105d25b9c.webp?v=1752648374","width":2000},{"alt":null,"id":25829422727267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6b70a4c8886ccb261a9efe6c17d8d9c78ef6ec_7c493057-406e-4fea-afaf-a372d2cb71d6.webp?v=1752648375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6b70a4c8886ccb261a9efe6c17d8d9c78ef6ec_7c493057-406e-4fea-afaf-a372d2cb71d6.webp?v=1752648375","width":2000},{"alt":null,"id":25829422956643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe15fbc80fa6e274e8f1001adb45f7ab1316328_209a7567-3159-48c7-9c0e-a5b205618708.webp?v=1752648375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fe15fbc80fa6e274e8f1001adb45f7ab1316328_209a7567-3159-48c7-9c0e-a5b205618708.webp?v=1752648375","width":2000},{"alt":null,"id":25829423153251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d92594444fc0b4be28cbe26e6c2cf30daa6eed3_f9051443-6b32-4609-becd-1afa89537fa8.webp?v=1752648376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d92594444fc0b4be28cbe26e6c2cf30daa6eed3_f9051443-6b32-4609-becd-1afa89537fa8.webp?v=1752648376","width":2000},{"alt":null,"id":25829423349859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376","width":2000},{"alt":null,"id":25829423480931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e9ad0de442183069e9d5f558ee69da88a07ff02_49a64d54-30b7-40e6-a86d-b4dc46a3a27f.webp?v=1752648377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e9ad0de442183069e9d5f558ee69da88a07ff02_49a64d54-30b7-40e6-a86d-b4dc46a3a27f.webp?v=1752648377","width":2000},{"alt":null,"id":25829423644771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b31b7c7409ce2f43a5a1d37fc2e45aef4ab2ea0_445968d0-c12c-43d6-ad9b-9ff1c63eb968.webp?v=1752648377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b31b7c7409ce2f43a5a1d37fc2e45aef4ab2ea0_445968d0-c12c-43d6-ad9b-9ff1c63eb968.webp?v=1752648377","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302804488291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34196564017251,"product_id":7769534955619,"position":9,"created_at":"2025-07-16T14:46:15+08:00","updated_at":"2025-07-16T14:46:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376","variant_ids":[43302804488291]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF54","featured_media":{"alt":null,"id":25829423349859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302804488291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF54","requires_shipping":true,"taxable":true,"featured_image":{"id":34196564017251,"product_id":7769534955619,"position":9,"created_at":"2025-07-16T14:46:15+08:00","updated_at":"2025-07-16T14:46:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376","variant_ids":[43302804488291]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Cat People - 貓派 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-XF54","featured_media":{"alt":null,"id":25829423349859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee23a1b3f728eaf3c3e9fbaae5b2fa78e9599cf_367c32e7-9b18-4bfc-b06b-1854fbbf502a.webp?v=1752648376"}},"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: "停產" }