$product = {"id":7769498976355,"title":"iPhone 12 Pro Max Mod NX ilovedoodle Lunar Mirage Cat - 月光貓","handle":"iphone-12-pro-max-mod-nx-printable-xf53","description":null,"published_at":"2025-07-16T17:29:38+08:00","created_at":"2025-04-15T16:57:41+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":43302638092387,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34196967227491,"product_id":7769498976355,"position":2,"created_at":"2025-07-16T14:55:26+08:00","updated_at":"2025-07-16T14:55:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928","variant_ids":[43302638092387]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Lunar Mirage Cat - 月光貓 - 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-XF53","featured_media":{"alt":null,"id":25829642731619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312.webp?v=1744707467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f9b2fbcfcb4661c36d69a61d447ac90328856e6_93340e3e-c5c2-4d3a-a851-2572d7eef63a.webp?v=1752648929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767cb92d13053c07c6ca3c43f21d38bc1e197cd_f5ba6450-aa5b-4bae-8332-1d7e0bfeffe8.webp?v=1752648930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6874ec67529406c9dc4fa96ec3c988bc32d9d75_87e78643-8e54-4a68-8dc8-958dff77d82b.webp?v=1752648930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fec7e6de73a080bfc241c61c248f284911c1ed2_287bc7ec-60e7-4590-9634-ce13c5969317.webp?v=1752648931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded5ea43f212626a8f16cafb163126f897b7d962_06c44fe1-814e-4cc4-aa95-917550cdf96b.webp?v=1752648931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5814a64981de82a38082d264c02cc80b46ad8f68_328b72f5-6da9-4b90-8f5b-c7cdc017e72b.webp?v=1752648931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d07fa1c699bc62ed84ef648fe3cf9322ff67b6_3c0539f3-750c-4a97-b32a-23ce286f353d.webp?v=1752648932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d7aa290068a40615cbf0944f0fda967e658c7b_97d36206-b42b-484e-a0cb-f3d67b72609a.webp?v=1752648933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b848bdc7137e3aa5a0ade717ccf9ce4092aeff2d_ff61c423-afbb-425f-8226-9f6a0a7de725.webp?v=1752648933"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312.webp?v=1744707467","options":["color"],"media":[{"alt":null,"id":25495620288611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312.webp?v=1744707467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a33e412987a06b954ec652367120870b2ad01312.webp?v=1744707467","width":2000},{"alt":null,"id":25829642731619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928","width":2000},{"alt":null,"id":25829642829923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f9b2fbcfcb4661c36d69a61d447ac90328856e6_93340e3e-c5c2-4d3a-a851-2572d7eef63a.webp?v=1752648929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f9b2fbcfcb4661c36d69a61d447ac90328856e6_93340e3e-c5c2-4d3a-a851-2572d7eef63a.webp?v=1752648929","width":2000},{"alt":null,"id":25829643124835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767cb92d13053c07c6ca3c43f21d38bc1e197cd_f5ba6450-aa5b-4bae-8332-1d7e0bfeffe8.webp?v=1752648930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767cb92d13053c07c6ca3c43f21d38bc1e197cd_f5ba6450-aa5b-4bae-8332-1d7e0bfeffe8.webp?v=1752648930","width":2000},{"alt":null,"id":25829643354211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6874ec67529406c9dc4fa96ec3c988bc32d9d75_87e78643-8e54-4a68-8dc8-958dff77d82b.webp?v=1752648930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6874ec67529406c9dc4fa96ec3c988bc32d9d75_87e78643-8e54-4a68-8dc8-958dff77d82b.webp?v=1752648930","width":2000},{"alt":null,"id":25829643681891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fec7e6de73a080bfc241c61c248f284911c1ed2_287bc7ec-60e7-4590-9634-ce13c5969317.webp?v=1752648931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fec7e6de73a080bfc241c61c248f284911c1ed2_287bc7ec-60e7-4590-9634-ce13c5969317.webp?v=1752648931","width":2000},{"alt":null,"id":25829643878499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded5ea43f212626a8f16cafb163126f897b7d962_06c44fe1-814e-4cc4-aa95-917550cdf96b.webp?v=1752648931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded5ea43f212626a8f16cafb163126f897b7d962_06c44fe1-814e-4cc4-aa95-917550cdf96b.webp?v=1752648931","width":2000},{"alt":null,"id":25829644075107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5814a64981de82a38082d264c02cc80b46ad8f68_328b72f5-6da9-4b90-8f5b-c7cdc017e72b.webp?v=1752648931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5814a64981de82a38082d264c02cc80b46ad8f68_328b72f5-6da9-4b90-8f5b-c7cdc017e72b.webp?v=1752648931","width":2000},{"alt":null,"id":25829644238947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d07fa1c699bc62ed84ef648fe3cf9322ff67b6_3c0539f3-750c-4a97-b32a-23ce286f353d.webp?v=1752648932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d07fa1c699bc62ed84ef648fe3cf9322ff67b6_3c0539f3-750c-4a97-b32a-23ce286f353d.webp?v=1752648932","width":2000},{"alt":null,"id":25829644566627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d7aa290068a40615cbf0944f0fda967e658c7b_97d36206-b42b-484e-a0cb-f3d67b72609a.webp?v=1752648933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d7aa290068a40615cbf0944f0fda967e658c7b_97d36206-b42b-484e-a0cb-f3d67b72609a.webp?v=1752648933","width":2000},{"alt":null,"id":25829644828771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b848bdc7137e3aa5a0ade717ccf9ce4092aeff2d_ff61c423-afbb-425f-8226-9f6a0a7de725.webp?v=1752648933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b848bdc7137e3aa5a0ade717ccf9ce4092aeff2d_ff61c423-afbb-425f-8226-9f6a0a7de725.webp?v=1752648933","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302638092387,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34196967227491,"product_id":7769498976355,"position":2,"created_at":"2025-07-16T14:55:26+08:00","updated_at":"2025-07-16T14:55:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928","variant_ids":[43302638092387]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Lunar Mirage Cat - 月光貓 - 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-XF53","featured_media":{"alt":null,"id":25829642731619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302638092387,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34196967227491,"product_id":7769498976355,"position":2,"created_at":"2025-07-16T14:55:26+08:00","updated_at":"2025-07-16T14:55:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928","variant_ids":[43302638092387]},"available":true,"name":"iPhone 12 Pro Max Mod NX ilovedoodle Lunar Mirage Cat - 月光貓 - 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-XF53","featured_media":{"alt":null,"id":25829642731619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/135b33f784b7a57aaf6ee765281bdd7e7b8d7573_f3b3e649-60a7-4dc0-bb6d-a95fe7c65307.webp?v=1752648928"}},"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: "停產" }