$product = {"id":7769737298019,"title":"iPhone 12 Pro Max Mod NX ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-12-pro-max-mod-nx-printable-xf55","description":null,"published_at":"2025-07-16T17:03:18+08:00","created_at":"2025-04-15T20:09:09+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 Pro Max","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":43303773175907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197047345251,"product_id":7769737298019,"position":7,"created_at":"2025-07-16T14:57:24+08:00","updated_at":"2025-07-16T14:57:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046","variant_ids":[43303773175907]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-XF55","featured_media":{"alt":null,"id":25829685756003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d92372f2664dabcb44fb945dd82b432aab77c49.webp?v=1744718955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3744a1367e4737f2206e9c197661ddd49c606876_b18dd075-27d8-454b-b3d1-6ab0f9c839de.webp?v=1752649043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286889d7c807ef73b53c906ace8ccc9632a916af_70bb58a5-137b-4499-a2af-606e0aec4d23.webp?v=1752649043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf3930ff1fa2dc7670264cfbc17f434ba363474_ff25f536-08f4-4301-987c-8116de58f2bc.webp?v=1752649044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f07cfd16e80b4cb2f47aa05ee483621efe62bf78_d0c4e71f-e5c9-4ba3-bd75-daa87a7d6082.webp?v=1752649045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6479120f42f451f5e21a7f08b734a203d980468a_6eea9362-fd50-4b46-af6c-4270b0e9236c.webp?v=1752649045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd4cb6efe2540e46cbe79a7dee94c81917e23ad3_75aa6cb5-c5fe-4aa5-b692-632a3ec26579.webp?v=1752649046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88239e2ad2b5dc7a1dd2ef687e9ad3512474e495_a6a662b4-9c63-4449-990b-67723335c05d.webp?v=1752649047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e22fd35233e69effc8fe60eb0f87bd9f53b9794_26a0a24a-6236-4a96-a834-2f1971e619b4.webp?v=1752649047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc45cefe5c685a1e9931d889c7642400f5d6383a_2809dec0-082d-4367-b89c-0d056bdbaf22.webp?v=1752649048"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d92372f2664dabcb44fb945dd82b432aab77c49.webp?v=1744718955","options":["color"],"media":[{"alt":null,"id":25496198840419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d92372f2664dabcb44fb945dd82b432aab77c49.webp?v=1744718955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d92372f2664dabcb44fb945dd82b432aab77c49.webp?v=1744718955","width":2000},{"alt":null,"id":25829684609123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3744a1367e4737f2206e9c197661ddd49c606876_b18dd075-27d8-454b-b3d1-6ab0f9c839de.webp?v=1752649043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3744a1367e4737f2206e9c197661ddd49c606876_b18dd075-27d8-454b-b3d1-6ab0f9c839de.webp?v=1752649043","width":2000},{"alt":null,"id":25829684838499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286889d7c807ef73b53c906ace8ccc9632a916af_70bb58a5-137b-4499-a2af-606e0aec4d23.webp?v=1752649043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286889d7c807ef73b53c906ace8ccc9632a916af_70bb58a5-137b-4499-a2af-606e0aec4d23.webp?v=1752649043","width":2000},{"alt":null,"id":25829685100643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf3930ff1fa2dc7670264cfbc17f434ba363474_ff25f536-08f4-4301-987c-8116de58f2bc.webp?v=1752649044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf3930ff1fa2dc7670264cfbc17f434ba363474_ff25f536-08f4-4301-987c-8116de58f2bc.webp?v=1752649044","width":2000},{"alt":null,"id":25829685297251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f07cfd16e80b4cb2f47aa05ee483621efe62bf78_d0c4e71f-e5c9-4ba3-bd75-daa87a7d6082.webp?v=1752649045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f07cfd16e80b4cb2f47aa05ee483621efe62bf78_d0c4e71f-e5c9-4ba3-bd75-daa87a7d6082.webp?v=1752649045","width":2000},{"alt":null,"id":25829685559395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6479120f42f451f5e21a7f08b734a203d980468a_6eea9362-fd50-4b46-af6c-4270b0e9236c.webp?v=1752649045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6479120f42f451f5e21a7f08b734a203d980468a_6eea9362-fd50-4b46-af6c-4270b0e9236c.webp?v=1752649045","width":2000},{"alt":null,"id":25829685756003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046","width":2000},{"alt":null,"id":25829685952611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd4cb6efe2540e46cbe79a7dee94c81917e23ad3_75aa6cb5-c5fe-4aa5-b692-632a3ec26579.webp?v=1752649046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd4cb6efe2540e46cbe79a7dee94c81917e23ad3_75aa6cb5-c5fe-4aa5-b692-632a3ec26579.webp?v=1752649046","width":2000},{"alt":null,"id":25829686149219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88239e2ad2b5dc7a1dd2ef687e9ad3512474e495_a6a662b4-9c63-4449-990b-67723335c05d.webp?v=1752649047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88239e2ad2b5dc7a1dd2ef687e9ad3512474e495_a6a662b4-9c63-4449-990b-67723335c05d.webp?v=1752649047","width":2000},{"alt":null,"id":25829686542435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e22fd35233e69effc8fe60eb0f87bd9f53b9794_26a0a24a-6236-4a96-a834-2f1971e619b4.webp?v=1752649047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e22fd35233e69effc8fe60eb0f87bd9f53b9794_26a0a24a-6236-4a96-a834-2f1971e619b4.webp?v=1752649047","width":2000},{"alt":null,"id":25829687099491,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc45cefe5c685a1e9931d889c7642400f5d6383a_2809dec0-082d-4367-b89c-0d056bdbaf22.webp?v=1752649048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc45cefe5c685a1e9931d889c7642400f5d6383a_2809dec0-082d-4367-b89c-0d056bdbaf22.webp?v=1752649048","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303773175907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197047345251,"product_id":7769737298019,"position":7,"created_at":"2025-07-16T14:57:24+08:00","updated_at":"2025-07-16T14:57:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046","variant_ids":[43303773175907]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-XF55","featured_media":{"alt":null,"id":25829685756003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303773175907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197047345251,"product_id":7769737298019,"position":7,"created_at":"2025-07-16T14:57:24+08:00","updated_at":"2025-07-16T14:57:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046","variant_ids":[43303773175907]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-XF55","featured_media":{"alt":null,"id":25829685756003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc898c22b43ec456ff19449c61b50b54400a42a8_25632605-0a1e-4e61-bdda-3f314827504e.webp?v=1752649046"}},"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: "停產" }