$product = {"id":7769453199459,"title":"iPhone 12 mini Mod NX ilovedoodle Stay Curious - 保持好奇心","handle":"iphone-12-mini-mod-nx-printable-xf57","description":null,"published_at":"2025-07-16T17:34:47+08:00","created_at":"2025-04-15T16:20:08+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 Mini","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":43302419267683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197574058083,"product_id":7769453199459,"position":2,"created_at":"2025-07-16T15:09:27+08:00","updated_at":"2025-07-16T15:09:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769","variant_ids":[43302419267683]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF57","featured_media":{"alt":null,"id":25829971427427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd.webp?v=1744705215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f2862c1bee0cde2925e435582b9d892e0fb895_a9b29557-283a-4808-abe0-76230e38a28c.webp?v=1752649769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d297fcca9123bfdd347680dd2473a62b6638f4_da776275-fbf6-4187-927b-7ff663389369.webp?v=1752649770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0d91bed56c26652e9c3326a54e0c3e6e992cfd_b823bcb5-3aa7-4819-8457-26f9eca56969.webp?v=1752649770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce03d56b043930fed973e9c7f90a725d20e4d7cd_498cfb5f-d08b-4b40-9b31-ec2d0d829dbd.webp?v=1752649771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffae4519ffe3a08ee93c6b5e94f6c1987ebca3a_37c43271-29d6-402f-8580-0fb195f8d571.webp?v=1752649772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded68cd39877ae4f1992e86f94bde491fb5046ec_06d22c17-3461-439e-a2bb-e1e7f78f9209.webp?v=1752649772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f7afd0f47f792821f8d30b2720956859d9e307_d25bdc9e-f6ef-407c-b912-a0c66a7e20b9.webp?v=1752649773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a90a4e042d1fc0a11c05abe873b258ff19234546_801a24dc-9313-43fa-9d6b-3e4a07199e57.webp?v=1752649773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbd3cd5b66a64ece77207f230c6899ec23a5804_0bbc5914-b746-437b-bc46-6720f93bf7e7.webp?v=1752649774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820b7a053f1c84931a908d1386b7cff78abb2968_01b81f11-018c-46c7-b98a-2fa9bf6dfe27.webp?v=1752649774"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd.webp?v=1744705215","options":["color"],"media":[{"alt":null,"id":25495481188451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd.webp?v=1744705215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b7ed752918514f8c86a857fbb3798f0e36eccd.webp?v=1744705215","width":2000},{"alt":null,"id":25829971427427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769","width":2000},{"alt":null,"id":25829971624035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f2862c1bee0cde2925e435582b9d892e0fb895_a9b29557-283a-4808-abe0-76230e38a28c.webp?v=1752649769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f2862c1bee0cde2925e435582b9d892e0fb895_a9b29557-283a-4808-abe0-76230e38a28c.webp?v=1752649769","width":2000},{"alt":null,"id":25829971820643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d297fcca9123bfdd347680dd2473a62b6638f4_da776275-fbf6-4187-927b-7ff663389369.webp?v=1752649770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d297fcca9123bfdd347680dd2473a62b6638f4_da776275-fbf6-4187-927b-7ff663389369.webp?v=1752649770","width":2000},{"alt":null,"id":25829972213859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0d91bed56c26652e9c3326a54e0c3e6e992cfd_b823bcb5-3aa7-4819-8457-26f9eca56969.webp?v=1752649770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0d91bed56c26652e9c3326a54e0c3e6e992cfd_b823bcb5-3aa7-4819-8457-26f9eca56969.webp?v=1752649770","width":2000},{"alt":null,"id":25829972443235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce03d56b043930fed973e9c7f90a725d20e4d7cd_498cfb5f-d08b-4b40-9b31-ec2d0d829dbd.webp?v=1752649771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce03d56b043930fed973e9c7f90a725d20e4d7cd_498cfb5f-d08b-4b40-9b31-ec2d0d829dbd.webp?v=1752649771","width":2000},{"alt":null,"id":25829972607075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffae4519ffe3a08ee93c6b5e94f6c1987ebca3a_37c43271-29d6-402f-8580-0fb195f8d571.webp?v=1752649772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffae4519ffe3a08ee93c6b5e94f6c1987ebca3a_37c43271-29d6-402f-8580-0fb195f8d571.webp?v=1752649772","width":2000},{"alt":null,"id":25829972738147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded68cd39877ae4f1992e86f94bde491fb5046ec_06d22c17-3461-439e-a2bb-e1e7f78f9209.webp?v=1752649772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded68cd39877ae4f1992e86f94bde491fb5046ec_06d22c17-3461-439e-a2bb-e1e7f78f9209.webp?v=1752649772","width":2000},{"alt":null,"id":25829972967523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f7afd0f47f792821f8d30b2720956859d9e307_d25bdc9e-f6ef-407c-b912-a0c66a7e20b9.webp?v=1752649773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f7afd0f47f792821f8d30b2720956859d9e307_d25bdc9e-f6ef-407c-b912-a0c66a7e20b9.webp?v=1752649773","width":2000},{"alt":null,"id":25829973164131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a90a4e042d1fc0a11c05abe873b258ff19234546_801a24dc-9313-43fa-9d6b-3e4a07199e57.webp?v=1752649773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a90a4e042d1fc0a11c05abe873b258ff19234546_801a24dc-9313-43fa-9d6b-3e4a07199e57.webp?v=1752649773","width":2000},{"alt":null,"id":25829973360739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbd3cd5b66a64ece77207f230c6899ec23a5804_0bbc5914-b746-437b-bc46-6720f93bf7e7.webp?v=1752649774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbd3cd5b66a64ece77207f230c6899ec23a5804_0bbc5914-b746-437b-bc46-6720f93bf7e7.webp?v=1752649774","width":2000},{"alt":null,"id":25829973622883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820b7a053f1c84931a908d1386b7cff78abb2968_01b81f11-018c-46c7-b98a-2fa9bf6dfe27.webp?v=1752649774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820b7a053f1c84931a908d1386b7cff78abb2968_01b81f11-018c-46c7-b98a-2fa9bf6dfe27.webp?v=1752649774","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302419267683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197574058083,"product_id":7769453199459,"position":2,"created_at":"2025-07-16T15:09:27+08:00","updated_at":"2025-07-16T15:09:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769","variant_ids":[43302419267683]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF57","featured_media":{"alt":null,"id":25829971427427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302419267683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197574058083,"product_id":7769453199459,"position":2,"created_at":"2025-07-16T15:09:27+08:00","updated_at":"2025-07-16T15:09:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769","variant_ids":[43302419267683]},"available":true,"name":"iPhone 12 mini Mod NX ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-XF57","featured_media":{"alt":null,"id":25829971427427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8706260e37f0c75c4f2e91cdf81db36e241441_b37e829f-c0d6-49a3-ba65-557b9272eea5.webp?v=1752649769"}},"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: "停產" }