$product = {"id":7769787826275,"title":"iPhone 14 Plus Mod NX ilovedoodle Cat Dive - 跳水貓咪","handle":"iphone-14-plus-mod-nx-printable-xf51","description":null,"published_at":"2025-07-16T16:59:33+08:00","created_at":"2025-04-15T20:34:52+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 14 Plus","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":43303954251875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34196810956899,"product_id":7769787826275,"position":6,"created_at":"2025-07-16T14:51:55+08:00","updated_at":"2025-07-16T14:51:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717","variant_ids":[43303954251875]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XF51","featured_media":{"alt":null,"id":25829557960803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52b4bd3adb2e3c7c45bbd53db1d46cca7649f32_e892b1cf-76b0-4e53-8890-dd946a47b3e7.webp?v=1744720500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7ab36408ffb8374f86b0a1f567abaa98e623c5a_18f1c5d9-e148-4614-90b4-d8f7cde68f92.webp?v=1752648715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0705805f46b8e92a0af8fbc1bcef9cd1f7ea3312_096c7f14-ebcd-4371-93a2-117f5d943e7c.webp?v=1752648716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d971af6689307fe68ecf823e390754a49aee52a_efde2116-22e1-4343-991a-cd2480574eea.webp?v=1752648716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cb736d96dae82798b3077358d80f5e135075efe_2c0a4ec4-2508-44dc-bf13-53dde6bbe6ac.webp?v=1752648717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d334eb4785ae3e1319d6a71f931b8525e7a7e2_198ee13c-eecc-4f52-89de-f612dcdea39e.webp?v=1752648718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eabdf206e0c90b4f68d49875eccdcfc77718b8_4664c3cc-b0ec-4cb7-bf67-3f947100edf4.webp?v=1752648718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e68c1de486d8a847fd7acfe36c0eb69dc026e42_0882fc48-ee5c-4f7b-9449-4365838e292d.webp?v=1752648719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40842b4a0636cb01d5405a3340eca94779043745_23c805c4-76ae-4739-967a-c7e9f83578a5.webp?v=1752648720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b45fb8dbb20497969b5c0349cbff3248ce91405_549fec6f-87b1-45bb-89e8-4b396385b08b.webp?v=1752648720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c50d01e6f69222b4ff4e6de2fc986dd64bd87f_519be48a-cbde-4a20-8068-f7b5b887bdf6.webp?v=1752648721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd8562d2dbe60615ecd46a05e5793c9242e784e_311e2219-2ac7-42e5-bdae-bb067fc9e475.webp?v=1752648721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757c9df789083824683eba62a5277395a914fc78_88001ea5-a7fe-4287-9aa8-c530ffb2fe17.webp?v=1752648722"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52b4bd3adb2e3c7c45bbd53db1d46cca7649f32_e892b1cf-76b0-4e53-8890-dd946a47b3e7.webp?v=1744720500","options":["color"],"media":[{"alt":null,"id":25496280531043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52b4bd3adb2e3c7c45bbd53db1d46cca7649f32_e892b1cf-76b0-4e53-8890-dd946a47b3e7.webp?v=1744720500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52b4bd3adb2e3c7c45bbd53db1d46cca7649f32_e892b1cf-76b0-4e53-8890-dd946a47b3e7.webp?v=1744720500","width":2000},{"alt":null,"id":25829557239907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7ab36408ffb8374f86b0a1f567abaa98e623c5a_18f1c5d9-e148-4614-90b4-d8f7cde68f92.webp?v=1752648715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7ab36408ffb8374f86b0a1f567abaa98e623c5a_18f1c5d9-e148-4614-90b4-d8f7cde68f92.webp?v=1752648715","width":2000},{"alt":null,"id":25829557502051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0705805f46b8e92a0af8fbc1bcef9cd1f7ea3312_096c7f14-ebcd-4371-93a2-117f5d943e7c.webp?v=1752648716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0705805f46b8e92a0af8fbc1bcef9cd1f7ea3312_096c7f14-ebcd-4371-93a2-117f5d943e7c.webp?v=1752648716","width":2000},{"alt":null,"id":25829557731427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d971af6689307fe68ecf823e390754a49aee52a_efde2116-22e1-4343-991a-cd2480574eea.webp?v=1752648716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d971af6689307fe68ecf823e390754a49aee52a_efde2116-22e1-4343-991a-cd2480574eea.webp?v=1752648716","width":2000},{"alt":null,"id":25829557862499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cb736d96dae82798b3077358d80f5e135075efe_2c0a4ec4-2508-44dc-bf13-53dde6bbe6ac.webp?v=1752648717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cb736d96dae82798b3077358d80f5e135075efe_2c0a4ec4-2508-44dc-bf13-53dde6bbe6ac.webp?v=1752648717","width":2000},{"alt":null,"id":25829557960803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717","width":2000},{"alt":null,"id":25829558157411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d334eb4785ae3e1319d6a71f931b8525e7a7e2_198ee13c-eecc-4f52-89de-f612dcdea39e.webp?v=1752648718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d334eb4785ae3e1319d6a71f931b8525e7a7e2_198ee13c-eecc-4f52-89de-f612dcdea39e.webp?v=1752648718","width":2000},{"alt":null,"id":25829558419555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eabdf206e0c90b4f68d49875eccdcfc77718b8_4664c3cc-b0ec-4cb7-bf67-3f947100edf4.webp?v=1752648718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eabdf206e0c90b4f68d49875eccdcfc77718b8_4664c3cc-b0ec-4cb7-bf67-3f947100edf4.webp?v=1752648718","width":2000},{"alt":null,"id":25829558780003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e68c1de486d8a847fd7acfe36c0eb69dc026e42_0882fc48-ee5c-4f7b-9449-4365838e292d.webp?v=1752648719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e68c1de486d8a847fd7acfe36c0eb69dc026e42_0882fc48-ee5c-4f7b-9449-4365838e292d.webp?v=1752648719","width":2000},{"alt":null,"id":25829559107683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40842b4a0636cb01d5405a3340eca94779043745_23c805c4-76ae-4739-967a-c7e9f83578a5.webp?v=1752648720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40842b4a0636cb01d5405a3340eca94779043745_23c805c4-76ae-4739-967a-c7e9f83578a5.webp?v=1752648720","width":2000},{"alt":null,"id":25829559435363,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b45fb8dbb20497969b5c0349cbff3248ce91405_549fec6f-87b1-45bb-89e8-4b396385b08b.webp?v=1752648720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b45fb8dbb20497969b5c0349cbff3248ce91405_549fec6f-87b1-45bb-89e8-4b396385b08b.webp?v=1752648720","width":2000},{"alt":null,"id":25829559763043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c50d01e6f69222b4ff4e6de2fc986dd64bd87f_519be48a-cbde-4a20-8068-f7b5b887bdf6.webp?v=1752648721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c50d01e6f69222b4ff4e6de2fc986dd64bd87f_519be48a-cbde-4a20-8068-f7b5b887bdf6.webp?v=1752648721","width":2000},{"alt":null,"id":25829560221795,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd8562d2dbe60615ecd46a05e5793c9242e784e_311e2219-2ac7-42e5-bdae-bb067fc9e475.webp?v=1752648721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd8562d2dbe60615ecd46a05e5793c9242e784e_311e2219-2ac7-42e5-bdae-bb067fc9e475.webp?v=1752648721","width":2000},{"alt":null,"id":25829560582243,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757c9df789083824683eba62a5277395a914fc78_88001ea5-a7fe-4287-9aa8-c530ffb2fe17.webp?v=1752648722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757c9df789083824683eba62a5277395a914fc78_88001ea5-a7fe-4287-9aa8-c530ffb2fe17.webp?v=1752648722","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303954251875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34196810956899,"product_id":7769787826275,"position":6,"created_at":"2025-07-16T14:51:55+08:00","updated_at":"2025-07-16T14:51:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717","variant_ids":[43303954251875]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XF51","featured_media":{"alt":null,"id":25829557960803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303954251875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34196810956899,"product_id":7769787826275,"position":6,"created_at":"2025-07-16T14:51:55+08:00","updated_at":"2025-07-16T14:51:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717","variant_ids":[43303954251875]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XF51","featured_media":{"alt":null,"id":25829557960803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38b9fcf414d3108d80fc0da4aa980dbfb6d1c9f_1f57ab46-03ea-4c78-bab7-b20747bd9731.webp?v=1752648717"}},"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: "停產" }