$product = {"id":7414575104099,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 夏威夷系列-線稿","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yf03","description":null,"published_at":"2024-06-11T17:52:11+08:00","created_at":"2024-05-05T14:31:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41907477676131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485796384867,"product_id":7414575104099,"position":6,"created_at":"2024-05-05T14:31:39+08:00","updated_at":"2024-05-05T14:31:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699","variant_ids":[41907477676131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23891128549475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907477971043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485797597283,"product_id":7414575104099,"position":7,"created_at":"2024-05-05T14:31:42+08:00","updated_at":"2024-05-05T14:31:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fc421aae194815f11afbd9dd2d05195a4ee97c_45567914-63ee-4b3e-bb66-46e922cd77e5.webp?v=1714890702","variant_ids":[41907477971043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23891129892963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fc421aae194815f11afbd9dd2d05195a4ee97c_45567914-63ee-4b3e-bb66-46e922cd77e5.webp?v=1714890702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2669de86004833e47fd9b155cfd640186cc80e2_35e315c5-6787-4a67-854e-f4ee43b5cf73.webp?v=1714890688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/931b2459523dc0a31a34fb3a04a3d6280d25a83e_8a509cdf-933d-4fbb-87e9-55a6961630bc.webp?v=1714890690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eb90087733de2ad7ddec09e9c97b2ce5d75aef0_e9268877-5214-4aaa-bfef-237c047469c5.webp?v=1714890692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2734042cedb1205e4713d8c04949482d5515613_bdb58519-3d8e-4b41-9ce7-8ec0b2229b66.webp?v=1714890695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae2acf8b6f553eec94502e81a55520476867c69_2a9285e6-f7f5-4a25-b157-187b96fb74b4.webp?v=1714890697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fc421aae194815f11afbd9dd2d05195a4ee97c_45567914-63ee-4b3e-bb66-46e922cd77e5.webp?v=1714890702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3267c461e68e26e65d91930553c61ae4e3f69123_796a03eb-061f-4e94-acda-925dc4b3fd87.webp?v=1714890704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/983f68a1a2ea78e5eab09721603827f856b7fa5d_705bf3d1-78e2-4937-af9d-a27359cebad8.webp?v=1714890706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37cacb787f9b567a8cfbf6d613cba5441b1d64d8_88666173-a721-4f46-9061-4fe1370b1372.webp?v=1714890709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d44173904f2da7dcfc78d3a81a5aa5436e546e_42edd871-75b1-4386-901a-77038cb355a2.webp?v=1714890711"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2669de86004833e47fd9b155cfd640186cc80e2_35e315c5-6787-4a67-854e-f4ee43b5cf73.webp?v=1714890688","options":["color"],"media":[{"alt":null,"id":23891123765347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2669de86004833e47fd9b155cfd640186cc80e2_35e315c5-6787-4a67-854e-f4ee43b5cf73.webp?v=1714890688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2669de86004833e47fd9b155cfd640186cc80e2_35e315c5-6787-4a67-854e-f4ee43b5cf73.webp?v=1714890688","width":2000},{"alt":null,"id":23891124977763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/931b2459523dc0a31a34fb3a04a3d6280d25a83e_8a509cdf-933d-4fbb-87e9-55a6961630bc.webp?v=1714890690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/931b2459523dc0a31a34fb3a04a3d6280d25a83e_8a509cdf-933d-4fbb-87e9-55a6961630bc.webp?v=1714890690","width":2000},{"alt":null,"id":23891125862499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eb90087733de2ad7ddec09e9c97b2ce5d75aef0_e9268877-5214-4aaa-bfef-237c047469c5.webp?v=1714890692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eb90087733de2ad7ddec09e9c97b2ce5d75aef0_e9268877-5214-4aaa-bfef-237c047469c5.webp?v=1714890692","width":2000},{"alt":null,"id":23891126812771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2734042cedb1205e4713d8c04949482d5515613_bdb58519-3d8e-4b41-9ce7-8ec0b2229b66.webp?v=1714890695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2734042cedb1205e4713d8c04949482d5515613_bdb58519-3d8e-4b41-9ce7-8ec0b2229b66.webp?v=1714890695","width":2000},{"alt":null,"id":23891127763043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae2acf8b6f553eec94502e81a55520476867c69_2a9285e6-f7f5-4a25-b157-187b96fb74b4.webp?v=1714890697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae2acf8b6f553eec94502e81a55520476867c69_2a9285e6-f7f5-4a25-b157-187b96fb74b4.webp?v=1714890697","width":2000},{"alt":null,"id":23891128549475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699","width":2000},{"alt":null,"id":23891129892963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fc421aae194815f11afbd9dd2d05195a4ee97c_45567914-63ee-4b3e-bb66-46e922cd77e5.webp?v=1714890702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fc421aae194815f11afbd9dd2d05195a4ee97c_45567914-63ee-4b3e-bb66-46e922cd77e5.webp?v=1714890702","width":2000},{"alt":null,"id":23891130843235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3267c461e68e26e65d91930553c61ae4e3f69123_796a03eb-061f-4e94-acda-925dc4b3fd87.webp?v=1714890704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3267c461e68e26e65d91930553c61ae4e3f69123_796a03eb-061f-4e94-acda-925dc4b3fd87.webp?v=1714890704","width":2000},{"alt":null,"id":23891132186723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/983f68a1a2ea78e5eab09721603827f856b7fa5d_705bf3d1-78e2-4937-af9d-a27359cebad8.webp?v=1714890706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/983f68a1a2ea78e5eab09721603827f856b7fa5d_705bf3d1-78e2-4937-af9d-a27359cebad8.webp?v=1714890706","width":2000},{"alt":null,"id":23891133169763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37cacb787f9b567a8cfbf6d613cba5441b1d64d8_88666173-a721-4f46-9061-4fe1370b1372.webp?v=1714890709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37cacb787f9b567a8cfbf6d613cba5441b1d64d8_88666173-a721-4f46-9061-4fe1370b1372.webp?v=1714890709","width":2000},{"alt":null,"id":23891134087267,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d44173904f2da7dcfc78d3a81a5aa5436e546e_42edd871-75b1-4386-901a-77038cb355a2.webp?v=1714890711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d44173904f2da7dcfc78d3a81a5aa5436e546e_42edd871-75b1-4386-901a-77038cb355a2.webp?v=1714890711","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907477676131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485796384867,"product_id":7414575104099,"position":6,"created_at":"2024-05-05T14:31:39+08:00","updated_at":"2024-05-05T14:31:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699","variant_ids":[41907477676131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23891128549475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907477971043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485797597283,"product_id":7414575104099,"position":7,"created_at":"2024-05-05T14:31:42+08:00","updated_at":"2024-05-05T14:31:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fc421aae194815f11afbd9dd2d05195a4ee97c_45567914-63ee-4b3e-bb66-46e922cd77e5.webp?v=1714890702","variant_ids":[41907477971043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23891129892963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fc421aae194815f11afbd9dd2d05195a4ee97c_45567914-63ee-4b3e-bb66-46e922cd77e5.webp?v=1714890702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907477676131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485796384867,"product_id":7414575104099,"position":6,"created_at":"2024-05-05T14:31:39+08:00","updated_at":"2024-05-05T14:31:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699","variant_ids":[41907477676131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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-YF03","featured_media":{"alt":null,"id":23891128549475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a42eaa8320df8f1881cd88ac102e31d85734ff_b560fce1-fbbb-47cc-9567-e6680ef1de57.webp?v=1714890699"}},"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: "停產" }