$product = {"id":7416047992931,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-每天搞怪","handle":"iphone-xs-max-mod-nx-printable-yf06","description":null,"published_at":"2024-06-11T16:51:20+08:00","created_at":"2024-05-06T12:48:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41916875767907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491075473507,"product_id":7416047992931,"position":7,"created_at":"2024-05-06T12:48:39+08:00","updated_at":"2024-05-06T12:48:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919","variant_ids":[41916875767907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-每天搞怪 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-YF06","featured_media":{"alt":null,"id":23896483004515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3757d4596aaae834a177ea79040fed444f750e15_9be4dac8-0e9f-4f26-b17a-3cb5691b4e08.webp?v=1714970905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7730f4cb239d56deda7c751aa2db9dac2d96059c_20ce4f67-8272-4491-85bf-9c4f4075f8fe.webp?v=1714970908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ee27545c5b5ec728755290439de9ba0890717_b10e7d06-99f0-427c-bee3-011fcdb2a440.webp?v=1714970910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5be95d949752b21c9eac974da4bf231651a0d9_3e8937b2-8344-4e7f-9ae8-dce8275e24a9.webp?v=1714970912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3882f43912aa30f5dcb741e2c1f72002ead0629_82a08019-cc39-486b-8200-3be9443b719a.webp?v=1714970914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ef4d2c116e2b97a5d86b4e93ea653a01bc22c9_739a9f54-4ea0-40af-882b-ca3e020e4f3c.webp?v=1714970917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b65e41caf77ef0dd5df15a3f4c3368bcf36bd6b3_e5b9a5bf-4520-4210-bdb2-ceb353532806.webp?v=1714970921","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d068a8bcf81901eab05c2a82d4e90f030301e717_be5c6adf-4a3d-4f31-9beb-a7b36710e0ff.webp?v=1714970923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b830d286ed6cb5c5f85514cc689eee77d5c375c_d85f3a11-ea0c-44b5-b96e-42d10e072848.webp?v=1714970926"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3757d4596aaae834a177ea79040fed444f750e15_9be4dac8-0e9f-4f26-b17a-3cb5691b4e08.webp?v=1714970905","options":["color"],"media":[{"alt":null,"id":23896479531107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3757d4596aaae834a177ea79040fed444f750e15_9be4dac8-0e9f-4f26-b17a-3cb5691b4e08.webp?v=1714970905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3757d4596aaae834a177ea79040fed444f750e15_9be4dac8-0e9f-4f26-b17a-3cb5691b4e08.webp?v=1714970905","width":2000},{"alt":null,"id":23896479924323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7730f4cb239d56deda7c751aa2db9dac2d96059c_20ce4f67-8272-4491-85bf-9c4f4075f8fe.webp?v=1714970908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7730f4cb239d56deda7c751aa2db9dac2d96059c_20ce4f67-8272-4491-85bf-9c4f4075f8fe.webp?v=1714970908","width":2000},{"alt":null,"id":23896480383075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ee27545c5b5ec728755290439de9ba0890717_b10e7d06-99f0-427c-bee3-011fcdb2a440.webp?v=1714970910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ee27545c5b5ec728755290439de9ba0890717_b10e7d06-99f0-427c-bee3-011fcdb2a440.webp?v=1714970910","width":2000},{"alt":null,"id":23896480874595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5be95d949752b21c9eac974da4bf231651a0d9_3e8937b2-8344-4e7f-9ae8-dce8275e24a9.webp?v=1714970912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5be95d949752b21c9eac974da4bf231651a0d9_3e8937b2-8344-4e7f-9ae8-dce8275e24a9.webp?v=1714970912","width":2000},{"alt":null,"id":23896481398883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3882f43912aa30f5dcb741e2c1f72002ead0629_82a08019-cc39-486b-8200-3be9443b719a.webp?v=1714970914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3882f43912aa30f5dcb741e2c1f72002ead0629_82a08019-cc39-486b-8200-3be9443b719a.webp?v=1714970914","width":2000},{"alt":null,"id":23896481890403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ef4d2c116e2b97a5d86b4e93ea653a01bc22c9_739a9f54-4ea0-40af-882b-ca3e020e4f3c.webp?v=1714970917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6ef4d2c116e2b97a5d86b4e93ea653a01bc22c9_739a9f54-4ea0-40af-882b-ca3e020e4f3c.webp?v=1714970917","width":2000},{"alt":null,"id":23896483004515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919","width":2000},{"alt":null,"id":23896483364963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b65e41caf77ef0dd5df15a3f4c3368bcf36bd6b3_e5b9a5bf-4520-4210-bdb2-ceb353532806.webp?v=1714970921"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b65e41caf77ef0dd5df15a3f4c3368bcf36bd6b3_e5b9a5bf-4520-4210-bdb2-ceb353532806.webp?v=1714970921","width":2000},{"alt":null,"id":23896483856483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d068a8bcf81901eab05c2a82d4e90f030301e717_be5c6adf-4a3d-4f31-9beb-a7b36710e0ff.webp?v=1714970923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d068a8bcf81901eab05c2a82d4e90f030301e717_be5c6adf-4a3d-4f31-9beb-a7b36710e0ff.webp?v=1714970923","width":2000},{"alt":null,"id":23896484741219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b830d286ed6cb5c5f85514cc689eee77d5c375c_d85f3a11-ea0c-44b5-b96e-42d10e072848.webp?v=1714970926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b830d286ed6cb5c5f85514cc689eee77d5c375c_d85f3a11-ea0c-44b5-b96e-42d10e072848.webp?v=1714970926","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916875767907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491075473507,"product_id":7416047992931,"position":7,"created_at":"2024-05-06T12:48:39+08:00","updated_at":"2024-05-06T12:48:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919","variant_ids":[41916875767907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-每天搞怪 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-YF06","featured_media":{"alt":null,"id":23896483004515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916875767907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491075473507,"product_id":7416047992931,"position":7,"created_at":"2024-05-06T12:48:39+08:00","updated_at":"2024-05-06T12:48:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919","variant_ids":[41916875767907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 夏威夷系列-每天搞怪 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-YF06","featured_media":{"alt":null,"id":23896483004515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edbf76b433ac6d277f8fa66d91ca08c3a41ebbac_9840c0de-e14d-4a0e-8403-f0dc49e55a36.webp?v=1714970919"}},"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: "停產" }