$product = {"id":7769739133027,"title":"iPhone 14 Plus Mod NX ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-14-plus-mod-nx-printable-xf55","description":null,"published_at":"2025-07-16T17:03:08+08:00","created_at":"2025-04-15T20:10:34+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":43303780483171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34196628340835,"product_id":7769739133027,"position":7,"created_at":"2025-07-16T14:47:46+08:00","updated_at":"2025-07-16T14:47:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468","variant_ids":[43303780483171]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25829458280547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4db672e78e8819aef6486dc2ac1f163fa6edb7c_b75a927c-5340-4541-a3b3-414aadd51e22.webp?v=1744719041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabf4253033f74620fd6a3743522641f3e3e087_cdc70e09-1e65-4dfa-849e-c47d4c490306.webp?v=1752648465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4538c1eb3785647f7161e86d9f36cda9becb6214_5d128aba-a5c4-402f-b8bb-93c0e3ceb52a.webp?v=1752648465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d6861a7e15dd9425a97760c8f18986f094341f_54a5d309-9106-4c1c-b76d-478fad5ef92d.webp?v=1752648466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226eaf75040d581d24b10d52223633b659911213_17f21e09-1e89-466e-8641-c3818f505005.webp?v=1752648466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b77c7b3f74ab52f4b5ed0d6080f09b7ec2b0e5_741570e0-40ea-4efb-ace3-90f96d711d5c.webp?v=1752648467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/497785e956f15ff47bdec07d7f054407a4eac921_4526163b-5b62-4ef1-bc41-0e706d04a8e1.webp?v=1752648468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c28acb2a596f5652991cbbad56a442764366581_6ecf69d4-4370-489b-b846-6f176924ec54.webp?v=1752648469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b16a0924e602f5e335ee47102f1d3ccd7b92b4f_9fe110cb-61df-40b7-8051-48ea3837cf68.webp?v=1752648469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/795da59e38651e1a40fdbe1cfcf06bbd9801c810_4accf2d8-189a-451d-923a-1a8bfa0cf7d0.webp?v=1752648470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f72c7f3811e9300c2f6324b44a149b42b77354b3_a5157efb-77d4-4d3a-b78f-341a8a653afd.webp?v=1752648471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a87d4d8b4112469f02b28dc3cd02b4d321298c1c_53732b97-c73e-4ded-8a8c-46f447b8e374.webp?v=1752648471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c779a51b75f13637e24db1854485f331c24bf8e_3e47d4eb-66f2-41e5-9562-875d2b6b2b72.webp?v=1752648472"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4db672e78e8819aef6486dc2ac1f163fa6edb7c_b75a927c-5340-4541-a3b3-414aadd51e22.webp?v=1744719041","options":["color"],"media":[{"alt":null,"id":25496200904803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4db672e78e8819aef6486dc2ac1f163fa6edb7c_b75a927c-5340-4541-a3b3-414aadd51e22.webp?v=1744719041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4db672e78e8819aef6486dc2ac1f163fa6edb7c_b75a927c-5340-4541-a3b3-414aadd51e22.webp?v=1744719041","width":2000},{"alt":null,"id":25829457199203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabf4253033f74620fd6a3743522641f3e3e087_cdc70e09-1e65-4dfa-849e-c47d4c490306.webp?v=1752648465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabf4253033f74620fd6a3743522641f3e3e087_cdc70e09-1e65-4dfa-849e-c47d4c490306.webp?v=1752648465","width":2000},{"alt":null,"id":25829457330275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4538c1eb3785647f7161e86d9f36cda9becb6214_5d128aba-a5c4-402f-b8bb-93c0e3ceb52a.webp?v=1752648465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4538c1eb3785647f7161e86d9f36cda9becb6214_5d128aba-a5c4-402f-b8bb-93c0e3ceb52a.webp?v=1752648465","width":2000},{"alt":null,"id":25829457461347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d6861a7e15dd9425a97760c8f18986f094341f_54a5d309-9106-4c1c-b76d-478fad5ef92d.webp?v=1752648466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d6861a7e15dd9425a97760c8f18986f094341f_54a5d309-9106-4c1c-b76d-478fad5ef92d.webp?v=1752648466","width":2000},{"alt":null,"id":25829457592419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226eaf75040d581d24b10d52223633b659911213_17f21e09-1e89-466e-8641-c3818f505005.webp?v=1752648466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226eaf75040d581d24b10d52223633b659911213_17f21e09-1e89-466e-8641-c3818f505005.webp?v=1752648466","width":2000},{"alt":null,"id":25829457985635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b77c7b3f74ab52f4b5ed0d6080f09b7ec2b0e5_741570e0-40ea-4efb-ace3-90f96d711d5c.webp?v=1752648467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b77c7b3f74ab52f4b5ed0d6080f09b7ec2b0e5_741570e0-40ea-4efb-ace3-90f96d711d5c.webp?v=1752648467","width":2000},{"alt":null,"id":25829458280547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468","width":2000},{"alt":null,"id":25829458542691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/497785e956f15ff47bdec07d7f054407a4eac921_4526163b-5b62-4ef1-bc41-0e706d04a8e1.webp?v=1752648468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/497785e956f15ff47bdec07d7f054407a4eac921_4526163b-5b62-4ef1-bc41-0e706d04a8e1.webp?v=1752648468","width":2000},{"alt":null,"id":25829458706531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c28acb2a596f5652991cbbad56a442764366581_6ecf69d4-4370-489b-b846-6f176924ec54.webp?v=1752648469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c28acb2a596f5652991cbbad56a442764366581_6ecf69d4-4370-489b-b846-6f176924ec54.webp?v=1752648469","width":2000},{"alt":null,"id":25829459034211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b16a0924e602f5e335ee47102f1d3ccd7b92b4f_9fe110cb-61df-40b7-8051-48ea3837cf68.webp?v=1752648469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b16a0924e602f5e335ee47102f1d3ccd7b92b4f_9fe110cb-61df-40b7-8051-48ea3837cf68.webp?v=1752648469","width":2000},{"alt":null,"id":25829459394659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/795da59e38651e1a40fdbe1cfcf06bbd9801c810_4accf2d8-189a-451d-923a-1a8bfa0cf7d0.webp?v=1752648470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/795da59e38651e1a40fdbe1cfcf06bbd9801c810_4accf2d8-189a-451d-923a-1a8bfa0cf7d0.webp?v=1752648470","width":2000},{"alt":null,"id":25829459558499,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f72c7f3811e9300c2f6324b44a149b42b77354b3_a5157efb-77d4-4d3a-b78f-341a8a653afd.webp?v=1752648471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f72c7f3811e9300c2f6324b44a149b42b77354b3_a5157efb-77d4-4d3a-b78f-341a8a653afd.webp?v=1752648471","width":2000},{"alt":null,"id":25829459787875,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a87d4d8b4112469f02b28dc3cd02b4d321298c1c_53732b97-c73e-4ded-8a8c-46f447b8e374.webp?v=1752648471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a87d4d8b4112469f02b28dc3cd02b4d321298c1c_53732b97-c73e-4ded-8a8c-46f447b8e374.webp?v=1752648471","width":2000},{"alt":null,"id":25829460344931,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c779a51b75f13637e24db1854485f331c24bf8e_3e47d4eb-66f2-41e5-9562-875d2b6b2b72.webp?v=1752648472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c779a51b75f13637e24db1854485f331c24bf8e_3e47d4eb-66f2-41e5-9562-875d2b6b2b72.webp?v=1752648472","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303780483171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34196628340835,"product_id":7769739133027,"position":7,"created_at":"2025-07-16T14:47:46+08:00","updated_at":"2025-07-16T14:47:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468","variant_ids":[43303780483171]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25829458280547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303780483171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34196628340835,"product_id":7769739133027,"position":7,"created_at":"2025-07-16T14:47:46+08:00","updated_at":"2025-07-16T14:47:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468","variant_ids":[43303780483171]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25829458280547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eaee94139f3b7eaa6c2e6f9682babd3cdb25c25_7af9ec0d-3991-4c99-bea1-e58bbad6d29d.webp?v=1752648468"}},"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: "停產" }