$product = {"id":7416386977891,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 小丑女與小丑","handle":"iphone-8-mod-nx-printable-sb18","description":null,"published_at":"2024-06-11T16:57:40+08:00","created_at":"2024-05-06T14:46:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41919184928867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31492002873443,"product_id":7416386977891,"position":4,"created_at":"2024-05-06T14:47:07+08:00","updated_at":"2024-05-06T14:47:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028","variant_ids":[41919184928867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 小丑女與小丑 - 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":"NPB0105424-SB18","featured_media":{"alt":null,"id":23897416695907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0193543da99d9b3ff8749ed90d2135c4c55c4a72_212ac582-855f-4ff0-83ae-0fd941ac00dd.webp?v=1714978020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b436afffcd39a8ffbfd26f12ae39b53e9883b2d1_288b277e-e8ad-47a5-b771-32cf8d2d791f.webp?v=1714978023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03177d4a2ec0980c1b16245506336de656335bcb_5f27dd10-84cc-4c72-8bb9-1474aea8f1c8.webp?v=1714978025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6326d5ee707b22afaa0583136bfb61c1b20bdda4_4a2363d0-30dd-4961-b0cf-7c7a75cdfd40.webp?v=1714978030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a35ec2f6216e71dd1ab816ff1e195539c7efa78_addcedb6-8f09-4c5d-bf85-49e9cf9cfc23.webp?v=1714978032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7110a17c70bc382239321aa640c81e71f9184cb0_e60026b8-c088-42b4-9bb2-da99b88c5a0e.webp?v=1714978035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd068285ad2741199fd92359f399b07f549b2aef_70501c0e-9588-4af1-821e-9e1ce92d4659.webp?v=1714978037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c8f9172ef455c93e440601b7a24fac857b4415c_427bfb93-144c-4679-90da-74e03aec22c8.webp?v=1714978039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491d5e272c1c2a514ef97a3286d78361b23f7def_63ce0ef6-0ab7-49ba-ad5e-8e2228a03ff6.webp?v=1714978042"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0193543da99d9b3ff8749ed90d2135c4c55c4a72_212ac582-855f-4ff0-83ae-0fd941ac00dd.webp?v=1714978020","options":["color"],"media":[{"alt":null,"id":23897414729827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0193543da99d9b3ff8749ed90d2135c4c55c4a72_212ac582-855f-4ff0-83ae-0fd941ac00dd.webp?v=1714978020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0193543da99d9b3ff8749ed90d2135c4c55c4a72_212ac582-855f-4ff0-83ae-0fd941ac00dd.webp?v=1714978020","width":2000},{"alt":null,"id":23897415188579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b436afffcd39a8ffbfd26f12ae39b53e9883b2d1_288b277e-e8ad-47a5-b771-32cf8d2d791f.webp?v=1714978023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b436afffcd39a8ffbfd26f12ae39b53e9883b2d1_288b277e-e8ad-47a5-b771-32cf8d2d791f.webp?v=1714978023","width":2000},{"alt":null,"id":23897416007779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03177d4a2ec0980c1b16245506336de656335bcb_5f27dd10-84cc-4c72-8bb9-1474aea8f1c8.webp?v=1714978025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03177d4a2ec0980c1b16245506336de656335bcb_5f27dd10-84cc-4c72-8bb9-1474aea8f1c8.webp?v=1714978025","width":2000},{"alt":null,"id":23897416695907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028","width":2000},{"alt":null,"id":23897417384035,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6326d5ee707b22afaa0583136bfb61c1b20bdda4_4a2363d0-30dd-4961-b0cf-7c7a75cdfd40.webp?v=1714978030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6326d5ee707b22afaa0583136bfb61c1b20bdda4_4a2363d0-30dd-4961-b0cf-7c7a75cdfd40.webp?v=1714978030","width":2000},{"alt":null,"id":23897417908323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a35ec2f6216e71dd1ab816ff1e195539c7efa78_addcedb6-8f09-4c5d-bf85-49e9cf9cfc23.webp?v=1714978032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a35ec2f6216e71dd1ab816ff1e195539c7efa78_addcedb6-8f09-4c5d-bf85-49e9cf9cfc23.webp?v=1714978032","width":2000},{"alt":null,"id":23897418498147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7110a17c70bc382239321aa640c81e71f9184cb0_e60026b8-c088-42b4-9bb2-da99b88c5a0e.webp?v=1714978035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7110a17c70bc382239321aa640c81e71f9184cb0_e60026b8-c088-42b4-9bb2-da99b88c5a0e.webp?v=1714978035","width":2000},{"alt":null,"id":23897419120739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd068285ad2741199fd92359f399b07f549b2aef_70501c0e-9588-4af1-821e-9e1ce92d4659.webp?v=1714978037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd068285ad2741199fd92359f399b07f549b2aef_70501c0e-9588-4af1-821e-9e1ce92d4659.webp?v=1714978037","width":2000},{"alt":null,"id":23897419612259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c8f9172ef455c93e440601b7a24fac857b4415c_427bfb93-144c-4679-90da-74e03aec22c8.webp?v=1714978039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c8f9172ef455c93e440601b7a24fac857b4415c_427bfb93-144c-4679-90da-74e03aec22c8.webp?v=1714978039","width":2000},{"alt":null,"id":23897420005475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491d5e272c1c2a514ef97a3286d78361b23f7def_63ce0ef6-0ab7-49ba-ad5e-8e2228a03ff6.webp?v=1714978042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491d5e272c1c2a514ef97a3286d78361b23f7def_63ce0ef6-0ab7-49ba-ad5e-8e2228a03ff6.webp?v=1714978042","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919184928867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31492002873443,"product_id":7416386977891,"position":4,"created_at":"2024-05-06T14:47:07+08:00","updated_at":"2024-05-06T14:47:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028","variant_ids":[41919184928867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 小丑女與小丑 - 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":"NPB0105424-SB18","featured_media":{"alt":null,"id":23897416695907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919184928867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31492002873443,"product_id":7416386977891,"position":4,"created_at":"2024-05-06T14:47:07+08:00","updated_at":"2024-05-06T14:47:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028","variant_ids":[41919184928867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 小丑女與小丑 - 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":"NPB0105424-SB18","featured_media":{"alt":null,"id":23897416695907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d883c0ac792945530bc62a33624fa76cd30a5ab_572085a5-db98-44b0-8b7e-1e37c9fe7a6c.webp?v=1714978028"}},"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: "停產" }