$product = {"id":7769793953891,"title":"iPhone 14 Plus Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓","handle":"iphone-14-plus-mod-nx-printable-xf50","description":null,"published_at":"2025-04-16T14:22:05+08:00","created_at":"2025-04-15T20:38:18+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":43303974928483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197442592867,"product_id":7769793953891,"position":10,"created_at":"2025-07-16T15:06:18+08:00","updated_at":"2025-07-16T15:06:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580","variant_ids":[43303974928483]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829900681315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81a937aa4506c666b2a2e7cbbb4d88fb18c6a06e_eb78a0d6-1a08-4e4a-83a6-38b7483a455f.webp?v=1744720705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0fc8deb9a87ccac28e07b36ce839e6b18aa17b_ed88a7e4-377f-4918-bca5-df1f6b706fb9.webp?v=1752649575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6008e85f16fcdb07bc3d9ed626785dd45ebe77_a0e16957-5e08-4553-9640-dbbaccbb650a.webp?v=1752649575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e58a11903ceed98467d7bff7db4f85a8a40271a1_5171e295-9c05-4a64-880f-597c42965add.webp?v=1752649576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b34cdb58fca2eca596be613926af32e96e0a64be_616d5b12-9d08-4a3e-a8e2-e9f219630968.webp?v=1752649577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3da00c02cf93f6d21c7b0fb99670270d7436bf7_5b534012-bb93-4e14-8624-060723f4023b.webp?v=1752649577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a3cc3169c7203c7806229b0fcfbc948f0c5283_31d61469-9203-471d-b30f-76783d3ab453.webp?v=1752649578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf652fbd9e4601454102ed154846a0046d91ed9_de97efb2-4e88-477d-ae3d-6552ad3a6b02.webp?v=1752649579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f98e67e3583f0a52d01d4de124cbd0fba2661edf_15f7ac43-a3da-45ce-98a5-d5c7e6a35ea7.webp?v=1752649579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2860a08036e6ea24307fcb092b51d779dc9b02aa_504a75da-5984-47bf-b7f1-766cdfa23e70.webp?v=1752649580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c03ed02b1858b4a6e5946beaa7c8aab551e8e3ba_4a2b36eb-32ac-48cc-a0bf-ca65c8fdb3b5.webp?v=1752649581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ff971db0e9082363840bb398118e8b8047996c0_fbed1068-1761-4854-8978-86cf3e0784a3.webp?v=1752649582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/532df29fe17851449d5e0b3cec805c9dafe84e46_23e58cb4-2573-44b3-a8e9-51846662ebf9.webp?v=1752649583"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81a937aa4506c666b2a2e7cbbb4d88fb18c6a06e_eb78a0d6-1a08-4e4a-83a6-38b7483a455f.webp?v=1744720705","options":["color"],"media":[{"alt":null,"id":25496287182947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81a937aa4506c666b2a2e7cbbb4d88fb18c6a06e_eb78a0d6-1a08-4e4a-83a6-38b7483a455f.webp?v=1744720705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81a937aa4506c666b2a2e7cbbb4d88fb18c6a06e_eb78a0d6-1a08-4e4a-83a6-38b7483a455f.webp?v=1744720705","width":2000},{"alt":null,"id":25829897863267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0fc8deb9a87ccac28e07b36ce839e6b18aa17b_ed88a7e4-377f-4918-bca5-df1f6b706fb9.webp?v=1752649575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0fc8deb9a87ccac28e07b36ce839e6b18aa17b_ed88a7e4-377f-4918-bca5-df1f6b706fb9.webp?v=1752649575","width":2000},{"alt":null,"id":25829898190947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6008e85f16fcdb07bc3d9ed626785dd45ebe77_a0e16957-5e08-4553-9640-dbbaccbb650a.webp?v=1752649575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6008e85f16fcdb07bc3d9ed626785dd45ebe77_a0e16957-5e08-4553-9640-dbbaccbb650a.webp?v=1752649575","width":2000},{"alt":null,"id":25829898453091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e58a11903ceed98467d7bff7db4f85a8a40271a1_5171e295-9c05-4a64-880f-597c42965add.webp?v=1752649576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e58a11903ceed98467d7bff7db4f85a8a40271a1_5171e295-9c05-4a64-880f-597c42965add.webp?v=1752649576","width":2000},{"alt":null,"id":25829898780771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b34cdb58fca2eca596be613926af32e96e0a64be_616d5b12-9d08-4a3e-a8e2-e9f219630968.webp?v=1752649577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b34cdb58fca2eca596be613926af32e96e0a64be_616d5b12-9d08-4a3e-a8e2-e9f219630968.webp?v=1752649577","width":2000},{"alt":null,"id":25829898977379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3da00c02cf93f6d21c7b0fb99670270d7436bf7_5b534012-bb93-4e14-8624-060723f4023b.webp?v=1752649577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3da00c02cf93f6d21c7b0fb99670270d7436bf7_5b534012-bb93-4e14-8624-060723f4023b.webp?v=1752649577","width":2000},{"alt":null,"id":25829899632739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a3cc3169c7203c7806229b0fcfbc948f0c5283_31d61469-9203-471d-b30f-76783d3ab453.webp?v=1752649578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a3cc3169c7203c7806229b0fcfbc948f0c5283_31d61469-9203-471d-b30f-76783d3ab453.webp?v=1752649578","width":2000},{"alt":null,"id":25829899960419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf652fbd9e4601454102ed154846a0046d91ed9_de97efb2-4e88-477d-ae3d-6552ad3a6b02.webp?v=1752649579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bf652fbd9e4601454102ed154846a0046d91ed9_de97efb2-4e88-477d-ae3d-6552ad3a6b02.webp?v=1752649579","width":2000},{"alt":null,"id":25829900517475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f98e67e3583f0a52d01d4de124cbd0fba2661edf_15f7ac43-a3da-45ce-98a5-d5c7e6a35ea7.webp?v=1752649579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f98e67e3583f0a52d01d4de124cbd0fba2661edf_15f7ac43-a3da-45ce-98a5-d5c7e6a35ea7.webp?v=1752649579","width":2000},{"alt":null,"id":25829900681315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580","width":2000},{"alt":null,"id":25829900779619,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2860a08036e6ea24307fcb092b51d779dc9b02aa_504a75da-5984-47bf-b7f1-766cdfa23e70.webp?v=1752649580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2860a08036e6ea24307fcb092b51d779dc9b02aa_504a75da-5984-47bf-b7f1-766cdfa23e70.webp?v=1752649580","width":2000},{"alt":null,"id":25829900943459,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c03ed02b1858b4a6e5946beaa7c8aab551e8e3ba_4a2b36eb-32ac-48cc-a0bf-ca65c8fdb3b5.webp?v=1752649581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c03ed02b1858b4a6e5946beaa7c8aab551e8e3ba_4a2b36eb-32ac-48cc-a0bf-ca65c8fdb3b5.webp?v=1752649581","width":2000},{"alt":null,"id":25829901434979,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ff971db0e9082363840bb398118e8b8047996c0_fbed1068-1761-4854-8978-86cf3e0784a3.webp?v=1752649582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ff971db0e9082363840bb398118e8b8047996c0_fbed1068-1761-4854-8978-86cf3e0784a3.webp?v=1752649582","width":2000},{"alt":null,"id":25829901729891,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/532df29fe17851449d5e0b3cec805c9dafe84e46_23e58cb4-2573-44b3-a8e9-51846662ebf9.webp?v=1752649583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/532df29fe17851449d5e0b3cec805c9dafe84e46_23e58cb4-2573-44b3-a8e9-51846662ebf9.webp?v=1752649583","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303974928483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197442592867,"product_id":7769793953891,"position":10,"created_at":"2025-07-16T15:06:18+08:00","updated_at":"2025-07-16T15:06:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580","variant_ids":[43303974928483]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829900681315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303974928483,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197442592867,"product_id":7769793953891,"position":10,"created_at":"2025-07-16T15:06:18+08:00","updated_at":"2025-07-16T15:06:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580","variant_ids":[43303974928483]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829900681315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20707eff7cfb010bd643895081415900d79deacd_fe2ef209-0c36-4c7c-bf88-0b4ce5123877.webp?v=1752649580"}},"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: "停產" }