$product = {"id":7769753714787,"title":"iPhone 12 Pro Max Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓","handle":"iphone-12-pro-max-mod-nx-printable-xf50","description":null,"published_at":"2025-07-16T17:02:14+08:00","created_at":"2025-04-15T20:15:43+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":43303833796707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197578973283,"product_id":7769753714787,"position":9,"created_at":"2025-07-16T15:09:33+08:00","updated_at":"2025-07-16T15:09:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775","variant_ids":[43303833796707]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-XF50","featured_media":{"alt":null,"id":25829973786723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0e5023eb6bb0f903fe9d0fbc2bdf0a28a89af8_aed49c3b-4b71-4148-99ca-89fb4cacaf93.webp?v=1744719350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cd5ed5db213b1cdd507e2ae06dbbb5db62765b_59c22ade-ddbd-4edc-9430-5c5b8fc3e93f.webp?v=1752649771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3d9e684671b0b8de0f26b71aa4afe74484bd998_b82db8a0-9a7f-4d51-b03e-67550dd988bf.webp?v=1752649772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f7a2ed01a9a073d5c46cc5b33469777dfcd850_ba886bcb-d0b2-459f-a39b-7b89d92156e4.webp?v=1752649772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d599c39d8f9a4d23fdd4090efa7ce58a69a506_fb594fdc-909b-4750-a6ee-943a989920b1.webp?v=1752649773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2753bc290c81e5eb3a96686e2567aaa6890bac64_8ce23778-4384-46ae-937e-90df5386614b.webp?v=1752649773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31015553c76f992aab066794c8accaa9a02e96a7_643cb255-6dcc-45dc-b8bc-b42b95bc26b6.webp?v=1752649773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c0c7962619ba94476356d0a20ec4316573ad84_2e0f2424-7fed-4f37-8edb-94a9ce69f548.webp?v=1752649774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154853023da47ca5445057fd0e612dfe3d6a1f66_38ef7b90-b674-4406-9cbf-97fa60d3fb7b.webp?v=1752649775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a482d226339ba1c097133c9b68b5a5fc959a855_c1eb01af-7d25-4d24-94e1-ecce205277fc.webp?v=1752649776"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0e5023eb6bb0f903fe9d0fbc2bdf0a28a89af8_aed49c3b-4b71-4148-99ca-89fb4cacaf93.webp?v=1744719350","options":["color"],"media":[{"alt":null,"id":25496245764195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0e5023eb6bb0f903fe9d0fbc2bdf0a28a89af8_aed49c3b-4b71-4148-99ca-89fb4cacaf93.webp?v=1744719350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a0e5023eb6bb0f903fe9d0fbc2bdf0a28a89af8_aed49c3b-4b71-4148-99ca-89fb4cacaf93.webp?v=1744719350","width":2000},{"alt":null,"id":25829972476003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cd5ed5db213b1cdd507e2ae06dbbb5db62765b_59c22ade-ddbd-4edc-9430-5c5b8fc3e93f.webp?v=1752649771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cd5ed5db213b1cdd507e2ae06dbbb5db62765b_59c22ade-ddbd-4edc-9430-5c5b8fc3e93f.webp?v=1752649771","width":2000},{"alt":null,"id":25829972639843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3d9e684671b0b8de0f26b71aa4afe74484bd998_b82db8a0-9a7f-4d51-b03e-67550dd988bf.webp?v=1752649772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3d9e684671b0b8de0f26b71aa4afe74484bd998_b82db8a0-9a7f-4d51-b03e-67550dd988bf.webp?v=1752649772","width":2000},{"alt":null,"id":25829972770915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f7a2ed01a9a073d5c46cc5b33469777dfcd850_ba886bcb-d0b2-459f-a39b-7b89d92156e4.webp?v=1752649772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f7a2ed01a9a073d5c46cc5b33469777dfcd850_ba886bcb-d0b2-459f-a39b-7b89d92156e4.webp?v=1752649772","width":2000},{"alt":null,"id":25829972934755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d599c39d8f9a4d23fdd4090efa7ce58a69a506_fb594fdc-909b-4750-a6ee-943a989920b1.webp?v=1752649773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d599c39d8f9a4d23fdd4090efa7ce58a69a506_fb594fdc-909b-4750-a6ee-943a989920b1.webp?v=1752649773","width":2000},{"alt":null,"id":25829973131363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2753bc290c81e5eb3a96686e2567aaa6890bac64_8ce23778-4384-46ae-937e-90df5386614b.webp?v=1752649773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2753bc290c81e5eb3a96686e2567aaa6890bac64_8ce23778-4384-46ae-937e-90df5386614b.webp?v=1752649773","width":2000},{"alt":null,"id":25829973327971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31015553c76f992aab066794c8accaa9a02e96a7_643cb255-6dcc-45dc-b8bc-b42b95bc26b6.webp?v=1752649773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31015553c76f992aab066794c8accaa9a02e96a7_643cb255-6dcc-45dc-b8bc-b42b95bc26b6.webp?v=1752649773","width":2000},{"alt":null,"id":25829973557347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c0c7962619ba94476356d0a20ec4316573ad84_2e0f2424-7fed-4f37-8edb-94a9ce69f548.webp?v=1752649774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c0c7962619ba94476356d0a20ec4316573ad84_2e0f2424-7fed-4f37-8edb-94a9ce69f548.webp?v=1752649774","width":2000},{"alt":null,"id":25829973786723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775","width":2000},{"alt":null,"id":25829974048867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154853023da47ca5445057fd0e612dfe3d6a1f66_38ef7b90-b674-4406-9cbf-97fa60d3fb7b.webp?v=1752649775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/154853023da47ca5445057fd0e612dfe3d6a1f66_38ef7b90-b674-4406-9cbf-97fa60d3fb7b.webp?v=1752649775","width":2000},{"alt":null,"id":25829974245475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a482d226339ba1c097133c9b68b5a5fc959a855_c1eb01af-7d25-4d24-94e1-ecce205277fc.webp?v=1752649776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a482d226339ba1c097133c9b68b5a5fc959a855_c1eb01af-7d25-4d24-94e1-ecce205277fc.webp?v=1752649776","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303833796707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197578973283,"product_id":7769753714787,"position":9,"created_at":"2025-07-16T15:09:33+08:00","updated_at":"2025-07-16T15:09:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775","variant_ids":[43303833796707]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-XF50","featured_media":{"alt":null,"id":25829973786723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303833796707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34197578973283,"product_id":7769753714787,"position":9,"created_at":"2025-07-16T15:09:33+08:00","updated_at":"2025-07-16T15:09:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775","variant_ids":[43303833796707]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-XF50","featured_media":{"alt":null,"id":25829973786723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b646a7e62ea2c5b811325b766d35c3719efe5015_469900c5-2a98-4849-8168-8ae12c59da9f.webp?v=1752649775"}},"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: "停產" }