$product = {"id":7414974349411,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 貼紙系列-夏威夷紀念","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yf05","description":null,"published_at":"2024-06-11T17:54:35+08:00","created_at":"2024-05-05T19:58:47+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 12 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":41910518677603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487819808867,"product_id":7414974349411,"position":5,"created_at":"2024-05-05T19:59:00+08:00","updated_at":"2024-05-05T19:59:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340","variant_ids":[41910518677603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-YF05","featured_media":{"alt":null,"id":23893163835491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e6c6c2c80d6d7b384d2e05e40ce72116e1c6ad_0f09a5af-d567-4791-ba8c-a691dfb0b9ff.webp?v=1714910329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c210cde6fdfa74aa20ff863eaf4b742c26730bcf_308cced1-7c83-457f-b330-8c0d4c3e6c24.webp?v=1714910332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029758e4fb1bd0280654db9cf667edb923559806_79f8bd39-de4c-438d-806c-b580545aea0a.webp?v=1714910335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5916440763a69481852bc5e722eef8f8fc663241_1798b5c7-80af-46e8-9916-886bc0b93a2f.webp?v=1714910337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10b5cabc6cc0d6992d3c4c9224683f48aab2b84c_75d8fe2e-6078-44c4-9715-5aa7813e39fe.webp?v=1714910342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a041ac864e84f631b0a836de270fcc06a4cb418c_86ee1870-fe68-4458-b2e9-d803e199a5e3.webp?v=1714910345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b76b21a203bc7c277a45025e561435703875154_49297d37-a5da-4580-a273-1260af1fa3c6.webp?v=1714910348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f4f77074f66ddfa04e2290b99098468fa98b41a_2a597988-50b1-4197-8bed-37a7b49eed3f.webp?v=1714910351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b9d8260ad4618fc75f36c47a03087bf0cef7c8_7df717e6-1f90-4104-ae30-7a042971d7d0.webp?v=1714910353"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e6c6c2c80d6d7b384d2e05e40ce72116e1c6ad_0f09a5af-d567-4791-ba8c-a691dfb0b9ff.webp?v=1714910329","options":["color"],"media":[{"alt":null,"id":23893161246819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e6c6c2c80d6d7b384d2e05e40ce72116e1c6ad_0f09a5af-d567-4791-ba8c-a691dfb0b9ff.webp?v=1714910329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e6c6c2c80d6d7b384d2e05e40ce72116e1c6ad_0f09a5af-d567-4791-ba8c-a691dfb0b9ff.webp?v=1714910329","width":2000},{"alt":null,"id":23893161836643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c210cde6fdfa74aa20ff863eaf4b742c26730bcf_308cced1-7c83-457f-b330-8c0d4c3e6c24.webp?v=1714910332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c210cde6fdfa74aa20ff863eaf4b742c26730bcf_308cced1-7c83-457f-b330-8c0d4c3e6c24.webp?v=1714910332","width":2000},{"alt":null,"id":23893162754147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029758e4fb1bd0280654db9cf667edb923559806_79f8bd39-de4c-438d-806c-b580545aea0a.webp?v=1714910335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/029758e4fb1bd0280654db9cf667edb923559806_79f8bd39-de4c-438d-806c-b580545aea0a.webp?v=1714910335","width":2000},{"alt":null,"id":23893163245667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5916440763a69481852bc5e722eef8f8fc663241_1798b5c7-80af-46e8-9916-886bc0b93a2f.webp?v=1714910337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5916440763a69481852bc5e722eef8f8fc663241_1798b5c7-80af-46e8-9916-886bc0b93a2f.webp?v=1714910337","width":2000},{"alt":null,"id":23893163835491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340","width":2000},{"alt":null,"id":23893164523619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10b5cabc6cc0d6992d3c4c9224683f48aab2b84c_75d8fe2e-6078-44c4-9715-5aa7813e39fe.webp?v=1714910342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10b5cabc6cc0d6992d3c4c9224683f48aab2b84c_75d8fe2e-6078-44c4-9715-5aa7813e39fe.webp?v=1714910342","width":2000},{"alt":null,"id":23893165080675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a041ac864e84f631b0a836de270fcc06a4cb418c_86ee1870-fe68-4458-b2e9-d803e199a5e3.webp?v=1714910345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a041ac864e84f631b0a836de270fcc06a4cb418c_86ee1870-fe68-4458-b2e9-d803e199a5e3.webp?v=1714910345","width":2000},{"alt":null,"id":23893165539427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b76b21a203bc7c277a45025e561435703875154_49297d37-a5da-4580-a273-1260af1fa3c6.webp?v=1714910348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b76b21a203bc7c277a45025e561435703875154_49297d37-a5da-4580-a273-1260af1fa3c6.webp?v=1714910348","width":2000},{"alt":null,"id":23893166129251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f4f77074f66ddfa04e2290b99098468fa98b41a_2a597988-50b1-4197-8bed-37a7b49eed3f.webp?v=1714910351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f4f77074f66ddfa04e2290b99098468fa98b41a_2a597988-50b1-4197-8bed-37a7b49eed3f.webp?v=1714910351","width":2000},{"alt":null,"id":23893167013987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b9d8260ad4618fc75f36c47a03087bf0cef7c8_7df717e6-1f90-4104-ae30-7a042971d7d0.webp?v=1714910353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85b9d8260ad4618fc75f36c47a03087bf0cef7c8_7df717e6-1f90-4104-ae30-7a042971d7d0.webp?v=1714910353","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910518677603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487819808867,"product_id":7414974349411,"position":5,"created_at":"2024-05-05T19:59:00+08:00","updated_at":"2024-05-05T19:59:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340","variant_ids":[41910518677603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-YF05","featured_media":{"alt":null,"id":23893163835491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910518677603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487819808867,"product_id":7414974349411,"position":5,"created_at":"2024-05-05T19:59:00+08:00","updated_at":"2024-05-05T19:59:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340","variant_ids":[41910518677603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-YF05","featured_media":{"alt":null,"id":23893163835491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e8296feb9fa4d822fe8970ab65070598bb6be3_1f71c150-fc4c-4600-a7b5-2cda0f918cdb.webp?v=1714910340"}},"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: "停產" }