$product = {"id":7413965226083,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb25","description":null,"published_at":"2024-06-11T17:46:20+08:00","created_at":"2024-05-05T13:51:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41902773141603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31484343582819,"product_id":7413965226083,"position":9,"created_at":"2024-05-05T13:52:02+08:00","updated_at":"2024-05-05T13:52:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322","variant_ids":[41902773141603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB25","featured_media":{"alt":null,"id":23889637310563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902773764195,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31484344205411,"product_id":7413965226083,"position":10,"created_at":"2024-05-05T13:52:05+08:00","updated_at":"2024-05-05T13:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7257730e6b8323ff5153dc79948fc8f19e663dbb_b0186b07-5359-415e-ae1e-58a5cd04bbc5.webp?v=1714888325","variant_ids":[41902773764195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB25","featured_media":{"alt":null,"id":23889637900387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7257730e6b8323ff5153dc79948fc8f19e663dbb_b0186b07-5359-415e-ae1e-58a5cd04bbc5.webp?v=1714888325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb52740cc5ee05118585371cb16fae6382b95a1_b45c4da3-04a5-455b-9937-73bfc948890f.webp?v=1714888302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47db1efb1babeebc4e608102bd375e839bc19d2_d0deb905-caac-4024-85c8-f35fb305b25f.webp?v=1714888304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e536b0626807e675c37c582549fed86f2e8078_60264b08-1d94-48ef-9157-511e6d29b6fe.webp?v=1714888307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60484efaf5081b41145eab3c6848415294e37456_b7153047-bad8-4a9f-94a7-f0a769023df3.webp?v=1714888309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147f109b941120abc2dd5de3dfd0ce3e1345134f_49b5335a-f48d-4e13-a9b8-1a588623f3e7.webp?v=1714888312","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bf4a3dde884a597d881f61c756d9c022de52a3_cddccb33-7ea6-4f8c-adc3-2699c4d30e8e.webp?v=1714888314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3906d74bee9a93e80a1915f3cc17b19e76df704_2e631c7d-0829-418f-8f77-22ded689774d.webp?v=1714888317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd51870c44fdb364692fddb26fe90c8c69be743d_5f07766b-5952-4968-b67c-d5453fe31294.webp?v=1714888320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7257730e6b8323ff5153dc79948fc8f19e663dbb_b0186b07-5359-415e-ae1e-58a5cd04bbc5.webp?v=1714888325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b83f116964840c7519e83c686f6e34735dfabd_149aa903-88d2-43f2-96ad-40bbcd3ed2fd.webp?v=1714888328"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb52740cc5ee05118585371cb16fae6382b95a1_b45c4da3-04a5-455b-9937-73bfc948890f.webp?v=1714888302","options":["color"],"media":[{"alt":null,"id":23889632788579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb52740cc5ee05118585371cb16fae6382b95a1_b45c4da3-04a5-455b-9937-73bfc948890f.webp?v=1714888302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb52740cc5ee05118585371cb16fae6382b95a1_b45c4da3-04a5-455b-9937-73bfc948890f.webp?v=1714888302","width":2000},{"alt":null,"id":23889633247331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47db1efb1babeebc4e608102bd375e839bc19d2_d0deb905-caac-4024-85c8-f35fb305b25f.webp?v=1714888304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d47db1efb1babeebc4e608102bd375e839bc19d2_d0deb905-caac-4024-85c8-f35fb305b25f.webp?v=1714888304","width":2000},{"alt":null,"id":23889633869923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e536b0626807e675c37c582549fed86f2e8078_60264b08-1d94-48ef-9157-511e6d29b6fe.webp?v=1714888307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e536b0626807e675c37c582549fed86f2e8078_60264b08-1d94-48ef-9157-511e6d29b6fe.webp?v=1714888307","width":2000},{"alt":null,"id":23889634361443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60484efaf5081b41145eab3c6848415294e37456_b7153047-bad8-4a9f-94a7-f0a769023df3.webp?v=1714888309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60484efaf5081b41145eab3c6848415294e37456_b7153047-bad8-4a9f-94a7-f0a769023df3.webp?v=1714888309","width":2000},{"alt":null,"id":23889634951267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147f109b941120abc2dd5de3dfd0ce3e1345134f_49b5335a-f48d-4e13-a9b8-1a588623f3e7.webp?v=1714888312"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147f109b941120abc2dd5de3dfd0ce3e1345134f_49b5335a-f48d-4e13-a9b8-1a588623f3e7.webp?v=1714888312","width":2000},{"alt":null,"id":23889635508323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bf4a3dde884a597d881f61c756d9c022de52a3_cddccb33-7ea6-4f8c-adc3-2699c4d30e8e.webp?v=1714888314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bf4a3dde884a597d881f61c756d9c022de52a3_cddccb33-7ea6-4f8c-adc3-2699c4d30e8e.webp?v=1714888314","width":2000},{"alt":null,"id":23889636065379,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3906d74bee9a93e80a1915f3cc17b19e76df704_2e631c7d-0829-418f-8f77-22ded689774d.webp?v=1714888317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3906d74bee9a93e80a1915f3cc17b19e76df704_2e631c7d-0829-418f-8f77-22ded689774d.webp?v=1714888317","width":2000},{"alt":null,"id":23889636851811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd51870c44fdb364692fddb26fe90c8c69be743d_5f07766b-5952-4968-b67c-d5453fe31294.webp?v=1714888320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd51870c44fdb364692fddb26fe90c8c69be743d_5f07766b-5952-4968-b67c-d5453fe31294.webp?v=1714888320","width":2000},{"alt":null,"id":23889637310563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322","width":2000},{"alt":null,"id":23889637900387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7257730e6b8323ff5153dc79948fc8f19e663dbb_b0186b07-5359-415e-ae1e-58a5cd04bbc5.webp?v=1714888325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7257730e6b8323ff5153dc79948fc8f19e663dbb_b0186b07-5359-415e-ae1e-58a5cd04bbc5.webp?v=1714888325","width":2000},{"alt":null,"id":23889638522979,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b83f116964840c7519e83c686f6e34735dfabd_149aa903-88d2-43f2-96ad-40bbcd3ed2fd.webp?v=1714888328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b83f116964840c7519e83c686f6e34735dfabd_149aa903-88d2-43f2-96ad-40bbcd3ed2fd.webp?v=1714888328","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902773141603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31484343582819,"product_id":7413965226083,"position":9,"created_at":"2024-05-05T13:52:02+08:00","updated_at":"2024-05-05T13:52:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322","variant_ids":[41902773141603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB25","featured_media":{"alt":null,"id":23889637310563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902773764195,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31484344205411,"product_id":7413965226083,"position":10,"created_at":"2024-05-05T13:52:05+08:00","updated_at":"2024-05-05T13:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7257730e6b8323ff5153dc79948fc8f19e663dbb_b0186b07-5359-415e-ae1e-58a5cd04bbc5.webp?v=1714888325","variant_ids":[41902773764195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB25","featured_media":{"alt":null,"id":23889637900387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7257730e6b8323ff5153dc79948fc8f19e663dbb_b0186b07-5359-415e-ae1e-58a5cd04bbc5.webp?v=1714888325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902773141603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31484343582819,"product_id":7413965226083,"position":9,"created_at":"2024-05-05T13:52:02+08:00","updated_at":"2024-05-05T13:52:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322","variant_ids":[41902773141603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB25","featured_media":{"alt":null,"id":23889637310563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5c461b77fea5cd717c68656dac0b9c4d08eeaf_58a1f0ac-30ce-49bc-9fde-a5fdce53d42b.webp?v=1714888322"}},"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: "停產" }