$product = {"id":7769890062435,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Lunar Mirage Cat - 月光貓","handle":"iphone-8-mod-nx-printable-xf53","description":null,"published_at":"2025-04-16T13:45:03+08:00","created_at":"2025-04-15T21:45:14+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 8","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":43304443740259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197428568163,"product_id":7769890062435,"position":9,"created_at":"2025-07-16T15:06:00+08:00","updated_at":"2025-07-16T15:06:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562","variant_ids":[43304443740259]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 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":"NPB0105424-XF53","featured_media":{"alt":null,"id":25829892685923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328e7ff647adb547fa84714dd3c540ef68fc1616.webp?v=1744724721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295fbf8e0b88185a3c5f0334f96fc292f74a53ee_6b280ec6-6e55-4e3f-846a-147df7f21e27.webp?v=1752649557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b66f14239856fa8194b40774d60dcac49f3344d_96e7103b-8eeb-4e9f-b841-73fa753204fa.webp?v=1752649558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ac2bc7ee2dc24f3dd84d6379b1b0cbad5bf87f_85816b41-047a-4195-a46f-ab1ffaee25fd.webp?v=1752649559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf36e7ca07edb62f39825ec707c8e444e3ab257_8bccd4b6-d6ee-4344-9b57-40f52432638e.webp?v=1752649559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1a361e0713052ef0c8f45db5a81b81ec5cd74d_d151721d-8da7-4cbf-9d60-ec9edfccaee9.webp?v=1752649560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca05b4da40814ae4e7546298c2372d3af9f81406_2e348c46-6722-4152-85ce-87f54b143957.webp?v=1752649561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c32613c903105acb190d274a307f65aeaaac2b2_93b10e8a-a1f7-46f3-979b-17798a1421d5.webp?v=1752649561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328e7ff647adb547fa84714dd3c540ef68fc1616.webp?v=1744724721","options":["color"],"media":[{"alt":null,"id":25496441684067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328e7ff647adb547fa84714dd3c540ef68fc1616.webp?v=1744724721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328e7ff647adb547fa84714dd3c540ef68fc1616.webp?v=1744724721","width":2000},{"alt":null,"id":25829891047523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295fbf8e0b88185a3c5f0334f96fc292f74a53ee_6b280ec6-6e55-4e3f-846a-147df7f21e27.webp?v=1752649557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295fbf8e0b88185a3c5f0334f96fc292f74a53ee_6b280ec6-6e55-4e3f-846a-147df7f21e27.webp?v=1752649557","width":2000},{"alt":null,"id":25829891342435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b66f14239856fa8194b40774d60dcac49f3344d_96e7103b-8eeb-4e9f-b841-73fa753204fa.webp?v=1752649558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b66f14239856fa8194b40774d60dcac49f3344d_96e7103b-8eeb-4e9f-b841-73fa753204fa.webp?v=1752649558","width":2000},{"alt":null,"id":25829891539043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ac2bc7ee2dc24f3dd84d6379b1b0cbad5bf87f_85816b41-047a-4195-a46f-ab1ffaee25fd.webp?v=1752649559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ac2bc7ee2dc24f3dd84d6379b1b0cbad5bf87f_85816b41-047a-4195-a46f-ab1ffaee25fd.webp?v=1752649559","width":2000},{"alt":null,"id":25829891768419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf36e7ca07edb62f39825ec707c8e444e3ab257_8bccd4b6-d6ee-4344-9b57-40f52432638e.webp?v=1752649559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf36e7ca07edb62f39825ec707c8e444e3ab257_8bccd4b6-d6ee-4344-9b57-40f52432638e.webp?v=1752649559","width":2000},{"alt":null,"id":25829892030563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1a361e0713052ef0c8f45db5a81b81ec5cd74d_d151721d-8da7-4cbf-9d60-ec9edfccaee9.webp?v=1752649560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f1a361e0713052ef0c8f45db5a81b81ec5cd74d_d151721d-8da7-4cbf-9d60-ec9edfccaee9.webp?v=1752649560","width":2000},{"alt":null,"id":25829892227171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca05b4da40814ae4e7546298c2372d3af9f81406_2e348c46-6722-4152-85ce-87f54b143957.webp?v=1752649561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca05b4da40814ae4e7546298c2372d3af9f81406_2e348c46-6722-4152-85ce-87f54b143957.webp?v=1752649561","width":2000},{"alt":null,"id":25829892423779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c32613c903105acb190d274a307f65aeaaac2b2_93b10e8a-a1f7-46f3-979b-17798a1421d5.webp?v=1752649561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c32613c903105acb190d274a307f65aeaaac2b2_93b10e8a-a1f7-46f3-979b-17798a1421d5.webp?v=1752649561","width":2000},{"alt":null,"id":25829892685923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304443740259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197428568163,"product_id":7769890062435,"position":9,"created_at":"2025-07-16T15:06:00+08:00","updated_at":"2025-07-16T15:06:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562","variant_ids":[43304443740259]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 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":"NPB0105424-XF53","featured_media":{"alt":null,"id":25829892685923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304443740259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197428568163,"product_id":7769890062435,"position":9,"created_at":"2025-07-16T15:06:00+08:00","updated_at":"2025-07-16T15:06:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562","variant_ids":[43304443740259]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 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":"NPB0105424-XF53","featured_media":{"alt":null,"id":25829892685923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4d154df3b5b773115a7ac0764ea97de02e7d9f5_6cdf8619-118b-4fb5-9126-9255319451cd.webp?v=1752649562"}},"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: "停產" }