$product = {"id":7416392319075,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 小丑拳擊學院","handle":"iphone-8-mod-nx-printable-sb07","description":null,"published_at":"2024-06-11T16:57:49+08:00","created_at":"2024-05-06T14:47:53+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":41919247122531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31492017520739,"product_id":7416392319075,"position":8,"created_at":"2024-05-06T14:48:14+08:00","updated_at":"2024-05-06T14:48:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094","variant_ids":[41919247122531]},"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-SB07","featured_media":{"alt":null,"id":23897431441507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1433ed1479e6d39ec0a94c4d4a2ca93daa37ad4f_008149fa-6706-4d46-a326-4a0f7b88e667.webp?v=1714978076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8427e75a8501eff59b4f09b8603b2fd9e3cb88a_88c6631a-62d8-498c-923a-334d3ed8ca84.webp?v=1714978078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d2e2fbdab5ed0ff15c55b31abab06e4e24be0df_ce0154bc-f6ca-4926-a0d3-b2b9388c3eda.webp?v=1714978081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d1a283fac288513f0553eb79f7186717156d60_414ca14e-4238-4c67-ae29-072e81cde2ea.webp?v=1714978083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1731ce718643c91ddb162ae2cd51ef2d4e0951_8e568610-da5d-4ce8-bcf0-3242d3e1eba5.webp?v=1714978086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c35fb757e1fdf15595e11132a222bec396fd878_78f7db8c-9e82-4e24-9581-7a2753f3cc5a.webp?v=1714978088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ed081a1a9feefca3296fcc89f72a6714569b531_718c09ac-e4a3-43bf-9686-627a0a52f9b6.webp?v=1714978092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e5ff2ec53e959640ae4fc55bcb1e47aaedba991_f850efa5-5bce-4a7c-92b3-2c82a6df83bd.webp?v=1714978097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34ee0937f5dd32a7cc85292707bba2da70b1a2b5_f87773a0-7747-4062-bf95-4ae0bf099ba9.webp?v=1714978099"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1433ed1479e6d39ec0a94c4d4a2ca93daa37ad4f_008149fa-6706-4d46-a326-4a0f7b88e667.webp?v=1714978076","options":["color"],"media":[{"alt":null,"id":23897427607651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1433ed1479e6d39ec0a94c4d4a2ca93daa37ad4f_008149fa-6706-4d46-a326-4a0f7b88e667.webp?v=1714978076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1433ed1479e6d39ec0a94c4d4a2ca93daa37ad4f_008149fa-6706-4d46-a326-4a0f7b88e667.webp?v=1714978076","width":2000},{"alt":null,"id":23897427968099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8427e75a8501eff59b4f09b8603b2fd9e3cb88a_88c6631a-62d8-498c-923a-334d3ed8ca84.webp?v=1714978078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8427e75a8501eff59b4f09b8603b2fd9e3cb88a_88c6631a-62d8-498c-923a-334d3ed8ca84.webp?v=1714978078","width":2000},{"alt":null,"id":23897428492387,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d2e2fbdab5ed0ff15c55b31abab06e4e24be0df_ce0154bc-f6ca-4926-a0d3-b2b9388c3eda.webp?v=1714978081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d2e2fbdab5ed0ff15c55b31abab06e4e24be0df_ce0154bc-f6ca-4926-a0d3-b2b9388c3eda.webp?v=1714978081","width":2000},{"alt":null,"id":23897428983907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d1a283fac288513f0553eb79f7186717156d60_414ca14e-4238-4c67-ae29-072e81cde2ea.webp?v=1714978083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d1a283fac288513f0553eb79f7186717156d60_414ca14e-4238-4c67-ae29-072e81cde2ea.webp?v=1714978083","width":2000},{"alt":null,"id":23897429639267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1731ce718643c91ddb162ae2cd51ef2d4e0951_8e568610-da5d-4ce8-bcf0-3242d3e1eba5.webp?v=1714978086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1731ce718643c91ddb162ae2cd51ef2d4e0951_8e568610-da5d-4ce8-bcf0-3242d3e1eba5.webp?v=1714978086","width":2000},{"alt":null,"id":23897429999715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c35fb757e1fdf15595e11132a222bec396fd878_78f7db8c-9e82-4e24-9581-7a2753f3cc5a.webp?v=1714978088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c35fb757e1fdf15595e11132a222bec396fd878_78f7db8c-9e82-4e24-9581-7a2753f3cc5a.webp?v=1714978088","width":2000},{"alt":null,"id":23897430655075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ed081a1a9feefca3296fcc89f72a6714569b531_718c09ac-e4a3-43bf-9686-627a0a52f9b6.webp?v=1714978092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ed081a1a9feefca3296fcc89f72a6714569b531_718c09ac-e4a3-43bf-9686-627a0a52f9b6.webp?v=1714978092","width":2000},{"alt":null,"id":23897431441507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094","width":2000},{"alt":null,"id":23897431933027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e5ff2ec53e959640ae4fc55bcb1e47aaedba991_f850efa5-5bce-4a7c-92b3-2c82a6df83bd.webp?v=1714978097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e5ff2ec53e959640ae4fc55bcb1e47aaedba991_f850efa5-5bce-4a7c-92b3-2c82a6df83bd.webp?v=1714978097","width":2000},{"alt":null,"id":23897432424547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34ee0937f5dd32a7cc85292707bba2da70b1a2b5_f87773a0-7747-4062-bf95-4ae0bf099ba9.webp?v=1714978099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34ee0937f5dd32a7cc85292707bba2da70b1a2b5_f87773a0-7747-4062-bf95-4ae0bf099ba9.webp?v=1714978099","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919247122531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31492017520739,"product_id":7416392319075,"position":8,"created_at":"2024-05-06T14:48:14+08:00","updated_at":"2024-05-06T14:48:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094","variant_ids":[41919247122531]},"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-SB07","featured_media":{"alt":null,"id":23897431441507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919247122531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31492017520739,"product_id":7416392319075,"position":8,"created_at":"2024-05-06T14:48:14+08:00","updated_at":"2024-05-06T14:48:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094","variant_ids":[41919247122531]},"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-SB07","featured_media":{"alt":null,"id":23897431441507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9086468b0595106b819953f9cdd1ab47f9948b7a_bcad8095-1280-4bab-9b5f-a70c0de855d8.webp?v=1714978094"}},"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: "停產" }