$product = {"id":7414484729955,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb64","description":null,"published_at":"2024-06-11T17:51:35+08:00","created_at":"2024-05-05T14:27:29+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":41906835357795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31485593518179,"product_id":7414484729955,"position":1,"created_at":"2024-05-05T14:27:31+08:00","updated_at":"2024-05-05T14:27:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451","variant_ids":[41906835357795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23890909986915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906836340835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31485597188195,"product_id":7414484729955,"position":3,"created_at":"2024-05-05T14:27:36+08:00","updated_at":"2024-05-05T14:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c653af92e96a7922581fad2deca6579a12b92ddf_b286bc33-aed5-44d9-a437-1110a7aca496.webp?v=1714890456","variant_ids":[41906836340835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23890913788003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c653af92e96a7922581fad2deca6579a12b92ddf_b286bc33-aed5-44d9-a437-1110a7aca496.webp?v=1714890456"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5351b4bd5f80431f8b156cbb3439997537332f71_38827e17-6513-4999-b286-4f3f122d92ae.webp?v=1714890454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c653af92e96a7922581fad2deca6579a12b92ddf_b286bc33-aed5-44d9-a437-1110a7aca496.webp?v=1714890456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20cf61f50c10026450ca69a95e4148b571ede761_ba80182a-22df-4121-a1c9-a3362e982832.webp?v=1714890458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298bab61b097b87d5e75fc4947d1860ea2c38e25_5db771ba-7be3-451b-9cef-bc334105596b.webp?v=1714890461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54342022e6d4ac8c23d695e828e0afdef4220f2a_f31fd4ee-135b-46a7-9bcf-b8fc48576a31.webp?v=1714890463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8533a20383730d01564fd7d4b713b43233b93349_c23ffeb7-f31c-497c-b548-7a48b8754fdb.webp?v=1714890465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d91daaecfba70cb92157866bd22554a892991d6f_2d6dfed7-7a35-49c6-8741-46075cd22c02.webp?v=1714890467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461e90b9dcc7b700e34b457acdfd0282eed26e38_00277678-04f2-4838-bee9-df0b91f8337f.webp?v=1714890469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e44d6f1b9f85b9a5c4ba9c4fd37ceee0ce355e_4afd72bf-1649-49b5-bb01-553a356d22ca.webp?v=1714890471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84d3108ff9e3f4baa1912a46a5a8f22691f7117b_03434cc1-cd0c-453a-bd59-ad7245f80509.webp?v=1714890474"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451","options":["color"],"media":[{"alt":null,"id":23890909986915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451","width":2000},{"alt":null,"id":23890911756387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5351b4bd5f80431f8b156cbb3439997537332f71_38827e17-6513-4999-b286-4f3f122d92ae.webp?v=1714890454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5351b4bd5f80431f8b156cbb3439997537332f71_38827e17-6513-4999-b286-4f3f122d92ae.webp?v=1714890454","width":2000},{"alt":null,"id":23890913788003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c653af92e96a7922581fad2deca6579a12b92ddf_b286bc33-aed5-44d9-a437-1110a7aca496.webp?v=1714890456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c653af92e96a7922581fad2deca6579a12b92ddf_b286bc33-aed5-44d9-a437-1110a7aca496.webp?v=1714890456","width":2000},{"alt":null,"id":23890915950691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20cf61f50c10026450ca69a95e4148b571ede761_ba80182a-22df-4121-a1c9-a3362e982832.webp?v=1714890458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20cf61f50c10026450ca69a95e4148b571ede761_ba80182a-22df-4121-a1c9-a3362e982832.webp?v=1714890458","width":2000},{"alt":null,"id":23890918342755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298bab61b097b87d5e75fc4947d1860ea2c38e25_5db771ba-7be3-451b-9cef-bc334105596b.webp?v=1714890461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298bab61b097b87d5e75fc4947d1860ea2c38e25_5db771ba-7be3-451b-9cef-bc334105596b.webp?v=1714890461","width":2000},{"alt":null,"id":23890920407139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54342022e6d4ac8c23d695e828e0afdef4220f2a_f31fd4ee-135b-46a7-9bcf-b8fc48576a31.webp?v=1714890463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54342022e6d4ac8c23d695e828e0afdef4220f2a_f31fd4ee-135b-46a7-9bcf-b8fc48576a31.webp?v=1714890463","width":2000},{"alt":null,"id":23890922766435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8533a20383730d01564fd7d4b713b43233b93349_c23ffeb7-f31c-497c-b548-7a48b8754fdb.webp?v=1714890465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8533a20383730d01564fd7d4b713b43233b93349_c23ffeb7-f31c-497c-b548-7a48b8754fdb.webp?v=1714890465","width":2000},{"alt":null,"id":23890924798051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d91daaecfba70cb92157866bd22554a892991d6f_2d6dfed7-7a35-49c6-8741-46075cd22c02.webp?v=1714890467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d91daaecfba70cb92157866bd22554a892991d6f_2d6dfed7-7a35-49c6-8741-46075cd22c02.webp?v=1714890467","width":2000},{"alt":null,"id":23890926960739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461e90b9dcc7b700e34b457acdfd0282eed26e38_00277678-04f2-4838-bee9-df0b91f8337f.webp?v=1714890469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/461e90b9dcc7b700e34b457acdfd0282eed26e38_00277678-04f2-4838-bee9-df0b91f8337f.webp?v=1714890469","width":2000},{"alt":null,"id":23890928894051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e44d6f1b9f85b9a5c4ba9c4fd37ceee0ce355e_4afd72bf-1649-49b5-bb01-553a356d22ca.webp?v=1714890471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42e44d6f1b9f85b9a5c4ba9c4fd37ceee0ce355e_4afd72bf-1649-49b5-bb01-553a356d22ca.webp?v=1714890471","width":2000},{"alt":null,"id":23890931122275,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84d3108ff9e3f4baa1912a46a5a8f22691f7117b_03434cc1-cd0c-453a-bd59-ad7245f80509.webp?v=1714890474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84d3108ff9e3f4baa1912a46a5a8f22691f7117b_03434cc1-cd0c-453a-bd59-ad7245f80509.webp?v=1714890474","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906835357795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31485593518179,"product_id":7414484729955,"position":1,"created_at":"2024-05-05T14:27:31+08:00","updated_at":"2024-05-05T14:27:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451","variant_ids":[41906835357795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23890909986915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906836340835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31485597188195,"product_id":7414484729955,"position":3,"created_at":"2024-05-05T14:27:36+08:00","updated_at":"2024-05-05T14:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c653af92e96a7922581fad2deca6579a12b92ddf_b286bc33-aed5-44d9-a437-1110a7aca496.webp?v=1714890456","variant_ids":[41906836340835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23890913788003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c653af92e96a7922581fad2deca6579a12b92ddf_b286bc33-aed5-44d9-a437-1110a7aca496.webp?v=1714890456"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906835357795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31485593518179,"product_id":7414484729955,"position":1,"created_at":"2024-05-05T14:27:31+08:00","updated_at":"2024-05-05T14:27:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451","variant_ids":[41906835357795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23890909986915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71af8e071b798a83a8428e6f5b3acf7924064448_577ae34f-1113-4b92-a5cf-d88d192aeb0d.webp?v=1714890451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }