$product = {"id":7411066404963,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb52","description":null,"published_at":"2024-06-11T17:35:24+08:00","created_at":"2024-05-04T22:36:36+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 15 Plus","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":41894627573859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479427399779,"product_id":7411066404963,"position":7,"created_at":"2024-05-04T22:36:52+08:00","updated_at":"2024-05-04T22:36:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412","variant_ids":[41894627573859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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":"MPB0129624-PB52","featured_media":{"alt":null,"id":23884674957411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894627737699,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479424155747,"product_id":7411066404963,"position":1,"created_at":"2024-05-04T22:36:38+08:00","updated_at":"2024-05-04T22:36:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398","variant_ids":[41894627737699]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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":"MPB0129657-PB52","featured_media":{"alt":null,"id":23884671713379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26b8d5850ab80a7ce438f22b2c2e0dd268b467e6_1e3757bd-9b86-4278-9e6a-99a654c40e7d.webp?v=1714833401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daafbdd6fbbb2b609dfb23c7359d710ed42da412_48b56705-ef69-4645-9e3f-9077ebb6f9d9.webp?v=1714833403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d5cfe24fb38ff5319ee0ed8ac1bf09648afedde_55fc5d27-8884-4551-9827-346c5b753fc3.webp?v=1714833405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c711e05daa11fd4d4b6969757a2dbd4e5e1097_d5f14541-e55d-4250-bc7d-3c1ba41c61cc.webp?v=1714833407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ac50ec3ccd33c65e38e76d90c34c819f560aab_1d3e72f5-3105-40d8-b24d-a5941b1c9c1a.webp?v=1714833410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45fe8d5758dcbbe2de507dea43d501f141e1a63_e796539b-2b9e-4864-baba-512b83ad8282.webp?v=1714833414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a03461b193beba11f2453fb67e39616093c71b_0f5643ff-59bd-4629-a41f-e056cec820a3.webp?v=1714833417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65ee253769d488f30a74f04863b4f33ef87aa334_15c8773d-e963-4b07-bcbf-2fb298c6a6d2.webp?v=1714833419"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398","options":["color"],"media":[{"alt":null,"id":23884671713379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398","width":2000},{"alt":null,"id":23884672237667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26b8d5850ab80a7ce438f22b2c2e0dd268b467e6_1e3757bd-9b86-4278-9e6a-99a654c40e7d.webp?v=1714833401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26b8d5850ab80a7ce438f22b2c2e0dd268b467e6_1e3757bd-9b86-4278-9e6a-99a654c40e7d.webp?v=1714833401","width":2000},{"alt":null,"id":23884672696419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daafbdd6fbbb2b609dfb23c7359d710ed42da412_48b56705-ef69-4645-9e3f-9077ebb6f9d9.webp?v=1714833403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daafbdd6fbbb2b609dfb23c7359d710ed42da412_48b56705-ef69-4645-9e3f-9077ebb6f9d9.webp?v=1714833403","width":2000},{"alt":null,"id":23884673482851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d5cfe24fb38ff5319ee0ed8ac1bf09648afedde_55fc5d27-8884-4551-9827-346c5b753fc3.webp?v=1714833405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d5cfe24fb38ff5319ee0ed8ac1bf09648afedde_55fc5d27-8884-4551-9827-346c5b753fc3.webp?v=1714833405","width":2000},{"alt":null,"id":23884673908835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c711e05daa11fd4d4b6969757a2dbd4e5e1097_d5f14541-e55d-4250-bc7d-3c1ba41c61cc.webp?v=1714833407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7c711e05daa11fd4d4b6969757a2dbd4e5e1097_d5f14541-e55d-4250-bc7d-3c1ba41c61cc.webp?v=1714833407","width":2000},{"alt":null,"id":23884674498659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ac50ec3ccd33c65e38e76d90c34c819f560aab_1d3e72f5-3105-40d8-b24d-a5941b1c9c1a.webp?v=1714833410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ac50ec3ccd33c65e38e76d90c34c819f560aab_1d3e72f5-3105-40d8-b24d-a5941b1c9c1a.webp?v=1714833410","width":2000},{"alt":null,"id":23884674957411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412","width":2000},{"alt":null,"id":23884675547235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45fe8d5758dcbbe2de507dea43d501f141e1a63_e796539b-2b9e-4864-baba-512b83ad8282.webp?v=1714833414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45fe8d5758dcbbe2de507dea43d501f141e1a63_e796539b-2b9e-4864-baba-512b83ad8282.webp?v=1714833414","width":2000},{"alt":null,"id":23884676038755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a03461b193beba11f2453fb67e39616093c71b_0f5643ff-59bd-4629-a41f-e056cec820a3.webp?v=1714833417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a03461b193beba11f2453fb67e39616093c71b_0f5643ff-59bd-4629-a41f-e056cec820a3.webp?v=1714833417","width":2000},{"alt":null,"id":23884676792419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65ee253769d488f30a74f04863b4f33ef87aa334_15c8773d-e963-4b07-bcbf-2fb298c6a6d2.webp?v=1714833419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65ee253769d488f30a74f04863b4f33ef87aa334_15c8773d-e963-4b07-bcbf-2fb298c6a6d2.webp?v=1714833419","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41894627573859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479427399779,"product_id":7411066404963,"position":7,"created_at":"2024-05-04T22:36:52+08:00","updated_at":"2024-05-04T22:36:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412","variant_ids":[41894627573859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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":"MPB0129624-PB52","featured_media":{"alt":null,"id":23884674957411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894627737699,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479424155747,"product_id":7411066404963,"position":1,"created_at":"2024-05-04T22:36:38+08:00","updated_at":"2024-05-04T22:36:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398","variant_ids":[41894627737699]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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":"MPB0129657-PB52","featured_media":{"alt":null,"id":23884671713379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7e16847f1cd0e630b34b39d51ddb3080412485_5e7455ba-5b66-43af-94d1-b73ac334c562.webp?v=1714833398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894627573859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479427399779,"product_id":7411066404963,"position":7,"created_at":"2024-05-04T22:36:52+08:00","updated_at":"2024-05-04T22:36:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412","variant_ids":[41894627573859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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":"MPB0129624-PB52","featured_media":{"alt":null,"id":23884674957411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63a4dfab56cfb6a3d9f642b42d53c160d422017_0af0fa0a-79b4-4a7d-9d63-c4a81ebdc8ad.webp?v=1714833412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }