$product = {"id":7769408667747,"title":"iPhone 13 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓","handle":"iphone-13-pro-max-mod-nx-printable-xf48","description":null,"published_at":"2025-07-16T17:39:30+08:00","created_at":"2025-04-15T15:38:04+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 13 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":43302189596771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34196652064867,"product_id":7769408667747,"position":4,"created_at":"2025-07-16T14:48:15+08:00","updated_at":"2025-07-16T14:48:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497","variant_ids":[43302189596771]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-XF48","featured_media":{"alt":null,"id":25829471256675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302195298403,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34196652327011,"product_id":7769408667747,"position":5,"created_at":"2025-07-16T14:48:16+08:00","updated_at":"2025-07-16T14:48:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af080e41229a232771ed419eaf8b053ca828bcf4_3ad0f3b7-8dfd-40e5-8197-bccf1e57a2f8.webp?v=1752648497","variant_ids":[43302195298403]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-XF48","featured_media":{"alt":null,"id":25829471387747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af080e41229a232771ed419eaf8b053ca828bcf4_3ad0f3b7-8dfd-40e5-8197-bccf1e57a2f8.webp?v=1752648497"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc8dd6ee6c0c1e475141f24f03bcbac8b42c24f.webp?v=1744702691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8377eba501f8d41c49936775e41c325e9d486711_e70e2dfb-8eb6-4b5d-824a-49028e2e1755.webp?v=1752648496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e6437dc76b6b1406314df8bbe5c47e8048dec0_8d124bc2-33dd-4acc-8572-bb58297f8960.webp?v=1752648496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af080e41229a232771ed419eaf8b053ca828bcf4_3ad0f3b7-8dfd-40e5-8197-bccf1e57a2f8.webp?v=1752648497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3776ba3e40719bbad9247f952cd819abf16ea9b7_b3cbbd93-2f95-4f28-b6c0-8d87125bea90.webp?v=1752648498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36695ad22df31d265e5fa684c84587dfe70b3c2_b96964df-d7bc-4e48-bb39-7bfa393276ff.webp?v=1752648499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acbd9c83878e2332af32d84a0a8c1bfd6b9ea085_262e205a-c8d8-4540-9ff0-5013b234f8ed.webp?v=1752648499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587306821aa24783a1607b0ef37fd27917048a03_c9d3ce99-8f18-4042-8cad-3ea2cb7ae699.webp?v=1752648500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da447b6546db5225a2b927fd856e8c0d2b298350_6e537872-b23d-45b9-a7ee-d4d390b43c6c.webp?v=1752648500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2f8b98749b302b70c95113d7cfd2c04039d1f5_65e9c4e2-15bf-434d-8c95-593cc10bb28b.webp?v=1752648501"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc8dd6ee6c0c1e475141f24f03bcbac8b42c24f.webp?v=1744702691","options":["color"],"media":[{"alt":null,"id":25495324590179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc8dd6ee6c0c1e475141f24f03bcbac8b42c24f.webp?v=1744702691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc8dd6ee6c0c1e475141f24f03bcbac8b42c24f.webp?v=1744702691","width":2000},{"alt":null,"id":25829471027299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8377eba501f8d41c49936775e41c325e9d486711_e70e2dfb-8eb6-4b5d-824a-49028e2e1755.webp?v=1752648496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8377eba501f8d41c49936775e41c325e9d486711_e70e2dfb-8eb6-4b5d-824a-49028e2e1755.webp?v=1752648496","width":2000},{"alt":null,"id":25829471125603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e6437dc76b6b1406314df8bbe5c47e8048dec0_8d124bc2-33dd-4acc-8572-bb58297f8960.webp?v=1752648496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e6437dc76b6b1406314df8bbe5c47e8048dec0_8d124bc2-33dd-4acc-8572-bb58297f8960.webp?v=1752648496","width":2000},{"alt":null,"id":25829471256675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497","width":2000},{"alt":null,"id":25829471387747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af080e41229a232771ed419eaf8b053ca828bcf4_3ad0f3b7-8dfd-40e5-8197-bccf1e57a2f8.webp?v=1752648497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af080e41229a232771ed419eaf8b053ca828bcf4_3ad0f3b7-8dfd-40e5-8197-bccf1e57a2f8.webp?v=1752648497","width":2000},{"alt":null,"id":25829471617123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3776ba3e40719bbad9247f952cd819abf16ea9b7_b3cbbd93-2f95-4f28-b6c0-8d87125bea90.webp?v=1752648498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3776ba3e40719bbad9247f952cd819abf16ea9b7_b3cbbd93-2f95-4f28-b6c0-8d87125bea90.webp?v=1752648498","width":2000},{"alt":null,"id":25829471912035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36695ad22df31d265e5fa684c84587dfe70b3c2_b96964df-d7bc-4e48-bb39-7bfa393276ff.webp?v=1752648499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36695ad22df31d265e5fa684c84587dfe70b3c2_b96964df-d7bc-4e48-bb39-7bfa393276ff.webp?v=1752648499","width":2000},{"alt":null,"id":25829472075875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acbd9c83878e2332af32d84a0a8c1bfd6b9ea085_262e205a-c8d8-4540-9ff0-5013b234f8ed.webp?v=1752648499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acbd9c83878e2332af32d84a0a8c1bfd6b9ea085_262e205a-c8d8-4540-9ff0-5013b234f8ed.webp?v=1752648499","width":2000},{"alt":null,"id":25829472239715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587306821aa24783a1607b0ef37fd27917048a03_c9d3ce99-8f18-4042-8cad-3ea2cb7ae699.webp?v=1752648500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587306821aa24783a1607b0ef37fd27917048a03_c9d3ce99-8f18-4042-8cad-3ea2cb7ae699.webp?v=1752648500","width":2000},{"alt":null,"id":25829472501859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da447b6546db5225a2b927fd856e8c0d2b298350_6e537872-b23d-45b9-a7ee-d4d390b43c6c.webp?v=1752648500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da447b6546db5225a2b927fd856e8c0d2b298350_6e537872-b23d-45b9-a7ee-d4d390b43c6c.webp?v=1752648500","width":2000},{"alt":null,"id":25829472993379,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2f8b98749b302b70c95113d7cfd2c04039d1f5_65e9c4e2-15bf-434d-8c95-593cc10bb28b.webp?v=1752648501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2f8b98749b302b70c95113d7cfd2c04039d1f5_65e9c4e2-15bf-434d-8c95-593cc10bb28b.webp?v=1752648501","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302189596771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34196652064867,"product_id":7769408667747,"position":4,"created_at":"2025-07-16T14:48:15+08:00","updated_at":"2025-07-16T14:48:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497","variant_ids":[43302189596771]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-XF48","featured_media":{"alt":null,"id":25829471256675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302195298403,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34196652327011,"product_id":7769408667747,"position":5,"created_at":"2025-07-16T14:48:16+08:00","updated_at":"2025-07-16T14:48:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af080e41229a232771ed419eaf8b053ca828bcf4_3ad0f3b7-8dfd-40e5-8197-bccf1e57a2f8.webp?v=1752648497","variant_ids":[43302195298403]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-XF48","featured_media":{"alt":null,"id":25829471387747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af080e41229a232771ed419eaf8b053ca828bcf4_3ad0f3b7-8dfd-40e5-8197-bccf1e57a2f8.webp?v=1752648497"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302189596771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34196652064867,"product_id":7769408667747,"position":4,"created_at":"2025-07-16T14:48:15+08:00","updated_at":"2025-07-16T14:48:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497","variant_ids":[43302189596771]},"available":true,"name":"iPhone 13 Pro Max Mod NX ilovedoodle Peek A Paw - 躲貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-XF48","featured_media":{"alt":null,"id":25829471256675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da9d37ae810ccda1ef3d5675422527be7014335_cfda2be6-8dfc-4fd3-9a21-2712b25f58b7.webp?v=1752648497"}},"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: "停產" }