$product = {"id":7413988950115,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb17","description":null,"published_at":"2024-06-11T17:47:01+08:00","created_at":"2024-05-05T13:56:23+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":41903048327267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400173155,"product_id":7413988950115,"position":1,"created_at":"2024-05-05T13:56:26+08:00","updated_at":"2024-05-05T13:56:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586","variant_ids":[41903048327267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB17","featured_media":{"alt":null,"id":23889694130275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903048622179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401156195,"product_id":7413988950115,"position":3,"created_at":"2024-05-05T13:56:30+08:00","updated_at":"2024-05-05T13:56:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641d9e48a83a71a20bd0fc490e6ccd5599ce9bbf_2bac56eb-ce32-4b6e-8a9c-0b5c7a3b92aa.webp?v=1714888590","variant_ids":[41903048622179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB17","featured_media":{"alt":null,"id":23889695113315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641d9e48a83a71a20bd0fc490e6ccd5599ce9bbf_2bac56eb-ce32-4b6e-8a9c-0b5c7a3b92aa.webp?v=1714888590"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/080610637c64e09d5d811c5df0856bcdbb26c940_48f2ea4d-d4e9-4a3e-a3c3-4b4859499bd2.webp?v=1714888588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641d9e48a83a71a20bd0fc490e6ccd5599ce9bbf_2bac56eb-ce32-4b6e-8a9c-0b5c7a3b92aa.webp?v=1714888590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c2710180b34127981c2803ecd6cf5a7f4c14f5_8ecde6ec-10cd-49c8-8790-906d56c6a5b5.webp?v=1714888592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d824d5ba9bb95de94b9faaef5f93d91c32cf177c_064d7985-b624-43d2-8330-67abd5ef7638.webp?v=1714888595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a09ab79dfccb6032b51ec90bc5d94ba14bdcbb5_345bbc78-0df9-4fc0-bfe2-aa60e42ef3d8.webp?v=1714888597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25aa286e1a33f9116a5743c9bef67f5a6377701d_f8c2866e-be99-49fa-bf7a-55f424b745de.webp?v=1714888600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04b23cf2bfd4e5182c1dd9050a92da2f6e15b98_63a6fd50-8792-4ae8-8553-c08fe1debcaf.webp?v=1714888602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e91216cedf5690571bf49a8a9baecc2b1ea3d534_ccad887b-0c51-49f2-9ef1-2abcfa67bbf7.webp?v=1714888604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa13cc5a4ee30d73d9af5c5f1428cc0024f1fa7a_8fccf474-20da-4802-8062-2d7af8138016.webp?v=1714888606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0078f1170b8415baf4fdd39e388ca7580782782_8775ae42-8010-46b1-8eee-189aa6448c50.webp?v=1714888609"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586","options":["color"],"media":[{"alt":null,"id":23889694130275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586","width":2000},{"alt":null,"id":23889694589027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/080610637c64e09d5d811c5df0856bcdbb26c940_48f2ea4d-d4e9-4a3e-a3c3-4b4859499bd2.webp?v=1714888588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/080610637c64e09d5d811c5df0856bcdbb26c940_48f2ea4d-d4e9-4a3e-a3c3-4b4859499bd2.webp?v=1714888588","width":2000},{"alt":null,"id":23889695113315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641d9e48a83a71a20bd0fc490e6ccd5599ce9bbf_2bac56eb-ce32-4b6e-8a9c-0b5c7a3b92aa.webp?v=1714888590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641d9e48a83a71a20bd0fc490e6ccd5599ce9bbf_2bac56eb-ce32-4b6e-8a9c-0b5c7a3b92aa.webp?v=1714888590","width":2000},{"alt":null,"id":23889695539299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c2710180b34127981c2803ecd6cf5a7f4c14f5_8ecde6ec-10cd-49c8-8790-906d56c6a5b5.webp?v=1714888592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c2710180b34127981c2803ecd6cf5a7f4c14f5_8ecde6ec-10cd-49c8-8790-906d56c6a5b5.webp?v=1714888592","width":2000},{"alt":null,"id":23889696096355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d824d5ba9bb95de94b9faaef5f93d91c32cf177c_064d7985-b624-43d2-8330-67abd5ef7638.webp?v=1714888595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d824d5ba9bb95de94b9faaef5f93d91c32cf177c_064d7985-b624-43d2-8330-67abd5ef7638.webp?v=1714888595","width":2000},{"alt":null,"id":23889696489571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a09ab79dfccb6032b51ec90bc5d94ba14bdcbb5_345bbc78-0df9-4fc0-bfe2-aa60e42ef3d8.webp?v=1714888597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a09ab79dfccb6032b51ec90bc5d94ba14bdcbb5_345bbc78-0df9-4fc0-bfe2-aa60e42ef3d8.webp?v=1714888597","width":2000},{"alt":null,"id":23889697013859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25aa286e1a33f9116a5743c9bef67f5a6377701d_f8c2866e-be99-49fa-bf7a-55f424b745de.webp?v=1714888600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25aa286e1a33f9116a5743c9bef67f5a6377701d_f8c2866e-be99-49fa-bf7a-55f424b745de.webp?v=1714888600","width":2000},{"alt":null,"id":23889697374307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04b23cf2bfd4e5182c1dd9050a92da2f6e15b98_63a6fd50-8792-4ae8-8553-c08fe1debcaf.webp?v=1714888602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04b23cf2bfd4e5182c1dd9050a92da2f6e15b98_63a6fd50-8792-4ae8-8553-c08fe1debcaf.webp?v=1714888602","width":2000},{"alt":null,"id":23889697898595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e91216cedf5690571bf49a8a9baecc2b1ea3d534_ccad887b-0c51-49f2-9ef1-2abcfa67bbf7.webp?v=1714888604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e91216cedf5690571bf49a8a9baecc2b1ea3d534_ccad887b-0c51-49f2-9ef1-2abcfa67bbf7.webp?v=1714888604","width":2000},{"alt":null,"id":23889698291811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa13cc5a4ee30d73d9af5c5f1428cc0024f1fa7a_8fccf474-20da-4802-8062-2d7af8138016.webp?v=1714888606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa13cc5a4ee30d73d9af5c5f1428cc0024f1fa7a_8fccf474-20da-4802-8062-2d7af8138016.webp?v=1714888606","width":2000},{"alt":null,"id":23889698783331,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0078f1170b8415baf4fdd39e388ca7580782782_8775ae42-8010-46b1-8eee-189aa6448c50.webp?v=1714888609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0078f1170b8415baf4fdd39e388ca7580782782_8775ae42-8010-46b1-8eee-189aa6448c50.webp?v=1714888609","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903048327267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400173155,"product_id":7413988950115,"position":1,"created_at":"2024-05-05T13:56:26+08:00","updated_at":"2024-05-05T13:56:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586","variant_ids":[41903048327267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB17","featured_media":{"alt":null,"id":23889694130275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903048622179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401156195,"product_id":7413988950115,"position":3,"created_at":"2024-05-05T13:56:30+08:00","updated_at":"2024-05-05T13:56:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641d9e48a83a71a20bd0fc490e6ccd5599ce9bbf_2bac56eb-ce32-4b6e-8a9c-0b5c7a3b92aa.webp?v=1714888590","variant_ids":[41903048622179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB17","featured_media":{"alt":null,"id":23889695113315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641d9e48a83a71a20bd0fc490e6ccd5599ce9bbf_2bac56eb-ce32-4b6e-8a9c-0b5c7a3b92aa.webp?v=1714888590"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903048327267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400173155,"product_id":7413988950115,"position":1,"created_at":"2024-05-05T13:56:26+08:00","updated_at":"2024-05-05T13:56:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586","variant_ids":[41903048327267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB17","featured_media":{"alt":null,"id":23889694130275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a8c780a83854cfeb67a75296f3cc4170a66d2_b87bae56-a5f7-4bcc-845a-6d35ffc9c5d3.webp?v=1714888586"}},"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: "停產" }