$product = {"id":7413987803235,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb82","description":null,"published_at":"2024-06-11T17:46:59+08:00","created_at":"2024-05-05T13:56:06+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":41903031779427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31484399517795,"product_id":7413987803235,"position":7,"created_at":"2024-05-05T13:56:23+08:00","updated_at":"2024-05-05T13:56:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583","variant_ids":[41903031779427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23889693442147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903032074339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401483875,"product_id":7413987803235,"position":11,"created_at":"2024-05-05T13:56:32+08:00","updated_at":"2024-05-05T13:56:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21494234b9e7d0dc77e5a970a3ca32f82d5a4a34_45a9889f-25d3-402b-8216-97c21ef5eb5f.webp?v=1714888592","variant_ids":[41903032074339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23889695408227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21494234b9e7d0dc77e5a970a3ca32f82d5a4a34_45a9889f-25d3-402b-8216-97c21ef5eb5f.webp?v=1714888592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b11e436c3295a739d61c5d2f31ceb56acd6e75b3_59b21c44-e092-4549-b2f0-3c0c1fb6ffde.webp?v=1714888569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82fe4998ff0f1244f921cf2a98ce848d7f85edb1_bcc109c6-49e8-4613-bc8b-4ce2c20d67de.webp?v=1714888571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a9dcd1b4abe0c7443493615f322e1c4a00cd73_bf3e1f09-fef6-467d-bbf1-41169c8908ac.webp?v=1714888574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629744814bd76c6d3164edd7c7b803930e738b94_70391dba-7cdd-40ad-b3af-77144f16737f.webp?v=1714888576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0150475963b8c5893f2d844be7066c0e85f50a1_208b71e4-5323-4c0b-bdb0-0d485d6904b6.webp?v=1714888578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b94a48225c7d2a988e7f95c30fcca4228e767a7_fd0e4b31-ce3b-4d1b-a176-ef37ff662317.webp?v=1714888580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f47733e20a3f7bfd3d847696e9dca4e1d56c98c_f3c8f3bc-8ff0-4896-95cb-94caf5ee3042.webp?v=1714888585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a29983fe663d58287acef1c3fdb9fdf65247b5db_8d54e0bc-cec5-4bde-9722-f8cbc8e0761e.webp?v=1714888587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a4613663d9e11c57d6248583b2a1b23c7f2d5c6_908e6d46-4eb7-4598-8fea-00d4e1db3365.webp?v=1714888589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21494234b9e7d0dc77e5a970a3ca32f82d5a4a34_45a9889f-25d3-402b-8216-97c21ef5eb5f.webp?v=1714888592"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b11e436c3295a739d61c5d2f31ceb56acd6e75b3_59b21c44-e092-4549-b2f0-3c0c1fb6ffde.webp?v=1714888569","options":["color"],"media":[{"alt":null,"id":23889690656867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b11e436c3295a739d61c5d2f31ceb56acd6e75b3_59b21c44-e092-4549-b2f0-3c0c1fb6ffde.webp?v=1714888569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b11e436c3295a739d61c5d2f31ceb56acd6e75b3_59b21c44-e092-4549-b2f0-3c0c1fb6ffde.webp?v=1714888569","width":2000},{"alt":null,"id":23889691148387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82fe4998ff0f1244f921cf2a98ce848d7f85edb1_bcc109c6-49e8-4613-bc8b-4ce2c20d67de.webp?v=1714888571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82fe4998ff0f1244f921cf2a98ce848d7f85edb1_bcc109c6-49e8-4613-bc8b-4ce2c20d67de.webp?v=1714888571","width":2000},{"alt":null,"id":23889691541603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a9dcd1b4abe0c7443493615f322e1c4a00cd73_bf3e1f09-fef6-467d-bbf1-41169c8908ac.webp?v=1714888574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a9dcd1b4abe0c7443493615f322e1c4a00cd73_bf3e1f09-fef6-467d-bbf1-41169c8908ac.webp?v=1714888574","width":2000},{"alt":null,"id":23889692065891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629744814bd76c6d3164edd7c7b803930e738b94_70391dba-7cdd-40ad-b3af-77144f16737f.webp?v=1714888576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629744814bd76c6d3164edd7c7b803930e738b94_70391dba-7cdd-40ad-b3af-77144f16737f.webp?v=1714888576","width":2000},{"alt":null,"id":23889692426339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0150475963b8c5893f2d844be7066c0e85f50a1_208b71e4-5323-4c0b-bdb0-0d485d6904b6.webp?v=1714888578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0150475963b8c5893f2d844be7066c0e85f50a1_208b71e4-5323-4c0b-bdb0-0d485d6904b6.webp?v=1714888578","width":2000},{"alt":null,"id":23889692983395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b94a48225c7d2a988e7f95c30fcca4228e767a7_fd0e4b31-ce3b-4d1b-a176-ef37ff662317.webp?v=1714888580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b94a48225c7d2a988e7f95c30fcca4228e767a7_fd0e4b31-ce3b-4d1b-a176-ef37ff662317.webp?v=1714888580","width":2000},{"alt":null,"id":23889693442147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583","width":2000},{"alt":null,"id":23889693999203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f47733e20a3f7bfd3d847696e9dca4e1d56c98c_f3c8f3bc-8ff0-4896-95cb-94caf5ee3042.webp?v=1714888585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f47733e20a3f7bfd3d847696e9dca4e1d56c98c_f3c8f3bc-8ff0-4896-95cb-94caf5ee3042.webp?v=1714888585","width":2000},{"alt":null,"id":23889694359651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a29983fe663d58287acef1c3fdb9fdf65247b5db_8d54e0bc-cec5-4bde-9722-f8cbc8e0761e.webp?v=1714888587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a29983fe663d58287acef1c3fdb9fdf65247b5db_8d54e0bc-cec5-4bde-9722-f8cbc8e0761e.webp?v=1714888587","width":2000},{"alt":null,"id":23889694916707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a4613663d9e11c57d6248583b2a1b23c7f2d5c6_908e6d46-4eb7-4598-8fea-00d4e1db3365.webp?v=1714888589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a4613663d9e11c57d6248583b2a1b23c7f2d5c6_908e6d46-4eb7-4598-8fea-00d4e1db3365.webp?v=1714888589","width":2000},{"alt":null,"id":23889695408227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21494234b9e7d0dc77e5a970a3ca32f82d5a4a34_45a9889f-25d3-402b-8216-97c21ef5eb5f.webp?v=1714888592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21494234b9e7d0dc77e5a970a3ca32f82d5a4a34_45a9889f-25d3-402b-8216-97c21ef5eb5f.webp?v=1714888592","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903031779427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31484399517795,"product_id":7413987803235,"position":7,"created_at":"2024-05-05T13:56:23+08:00","updated_at":"2024-05-05T13:56:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583","variant_ids":[41903031779427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23889693442147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903032074339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401483875,"product_id":7413987803235,"position":11,"created_at":"2024-05-05T13:56:32+08:00","updated_at":"2024-05-05T13:56:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21494234b9e7d0dc77e5a970a3ca32f82d5a4a34_45a9889f-25d3-402b-8216-97c21ef5eb5f.webp?v=1714888592","variant_ids":[41903032074339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23889695408227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21494234b9e7d0dc77e5a970a3ca32f82d5a4a34_45a9889f-25d3-402b-8216-97c21ef5eb5f.webp?v=1714888592"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903031779427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31484399517795,"product_id":7413987803235,"position":7,"created_at":"2024-05-05T13:56:23+08:00","updated_at":"2024-05-05T13:56:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583","variant_ids":[41903031779427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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-PB82","featured_media":{"alt":null,"id":23889693442147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dad70a32a6e01fd93bc577a767b01629b5864c17_2fc49c14-910a-4f3e-aeb4-25e0eff29446.webp?v=1714888583"}},"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: "停產" }