$product = {"id":7416358568035,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 復古版","handle":"iphone-8-mod-nx-printable-sb01","description":null,"published_at":"2024-06-11T16:56:52+08:00","created_at":"2024-05-06T14:41:26+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":41918872256611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491929735267,"product_id":7416358568035,"position":3,"created_at":"2024-05-06T14:41:32+08:00","updated_at":"2024-05-06T14:41:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692","variant_ids":[41918872256611]},"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-SB01","featured_media":{"alt":null,"id":23897342738531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3a980d7961248af867b3675c94baeb41e3d42b_a03e58ac-3e79-4bfc-8af1-a9172ae19016.webp?v=1714977688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e00e78aebc37eb63e49a87e6f0284d4c701fab_ab07c906-4e31-477f-9336-258f7f63be19.webp?v=1714977690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e780180ac7ba5b6d27dc79aed24f463c6b27394_e05432ac-c8cd-4fa7-8983-8f45b032f2c0.webp?v=1714977695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df9554321fabd1bbbe6188ebc347452887a2733_858da1b8-4840-4b6e-8847-70d07b91dc21.webp?v=1714977697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be4cb1355d065eea4916bb23150f627a284a6b80_f929a54b-8409-4286-9d78-203f81eeb15a.webp?v=1714977699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69dde2ea35e24de36713e83a67bcbd40abc2b6bb_58d282ad-41a6-4f82-86d9-c3418d74e4a8.webp?v=1714977702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15b4a8e7b9e05628073b76ae1f57ac45970836a_6508f08d-7dc2-467e-9ec8-0538fce94671.webp?v=1714977704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662503927f22f7565690f5c80e1674d215ba167a_9d07142b-31b6-4f53-bbb9-da3b3788b93f.webp?v=1714977706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6df88520bae1a2cb953d54724902aebfde7a84_6d920682-12b5-4790-9fd1-3ef4ffc1d6a0.webp?v=1714977708"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3a980d7961248af867b3675c94baeb41e3d42b_a03e58ac-3e79-4bfc-8af1-a9172ae19016.webp?v=1714977688","options":["color"],"media":[{"alt":null,"id":23897341952099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3a980d7961248af867b3675c94baeb41e3d42b_a03e58ac-3e79-4bfc-8af1-a9172ae19016.webp?v=1714977688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3a980d7961248af867b3675c94baeb41e3d42b_a03e58ac-3e79-4bfc-8af1-a9172ae19016.webp?v=1714977688","width":2000},{"alt":null,"id":23897342443619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e00e78aebc37eb63e49a87e6f0284d4c701fab_ab07c906-4e31-477f-9336-258f7f63be19.webp?v=1714977690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e00e78aebc37eb63e49a87e6f0284d4c701fab_ab07c906-4e31-477f-9336-258f7f63be19.webp?v=1714977690","width":2000},{"alt":null,"id":23897342738531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692","width":2000},{"alt":null,"id":23897343197283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e780180ac7ba5b6d27dc79aed24f463c6b27394_e05432ac-c8cd-4fa7-8983-8f45b032f2c0.webp?v=1714977695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e780180ac7ba5b6d27dc79aed24f463c6b27394_e05432ac-c8cd-4fa7-8983-8f45b032f2c0.webp?v=1714977695","width":2000},{"alt":null,"id":23897343590499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df9554321fabd1bbbe6188ebc347452887a2733_858da1b8-4840-4b6e-8847-70d07b91dc21.webp?v=1714977697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df9554321fabd1bbbe6188ebc347452887a2733_858da1b8-4840-4b6e-8847-70d07b91dc21.webp?v=1714977697","width":2000},{"alt":null,"id":23897344082019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be4cb1355d065eea4916bb23150f627a284a6b80_f929a54b-8409-4286-9d78-203f81eeb15a.webp?v=1714977699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be4cb1355d065eea4916bb23150f627a284a6b80_f929a54b-8409-4286-9d78-203f81eeb15a.webp?v=1714977699","width":2000},{"alt":null,"id":23897344540771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69dde2ea35e24de36713e83a67bcbd40abc2b6bb_58d282ad-41a6-4f82-86d9-c3418d74e4a8.webp?v=1714977702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69dde2ea35e24de36713e83a67bcbd40abc2b6bb_58d282ad-41a6-4f82-86d9-c3418d74e4a8.webp?v=1714977702","width":2000},{"alt":null,"id":23897345163363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15b4a8e7b9e05628073b76ae1f57ac45970836a_6508f08d-7dc2-467e-9ec8-0538fce94671.webp?v=1714977704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c15b4a8e7b9e05628073b76ae1f57ac45970836a_6508f08d-7dc2-467e-9ec8-0538fce94671.webp?v=1714977704","width":2000},{"alt":null,"id":23897345654883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662503927f22f7565690f5c80e1674d215ba167a_9d07142b-31b6-4f53-bbb9-da3b3788b93f.webp?v=1714977706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662503927f22f7565690f5c80e1674d215ba167a_9d07142b-31b6-4f53-bbb9-da3b3788b93f.webp?v=1714977706","width":2000},{"alt":null,"id":23897347915875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6df88520bae1a2cb953d54724902aebfde7a84_6d920682-12b5-4790-9fd1-3ef4ffc1d6a0.webp?v=1714977708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6df88520bae1a2cb953d54724902aebfde7a84_6d920682-12b5-4790-9fd1-3ef4ffc1d6a0.webp?v=1714977708","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918872256611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491929735267,"product_id":7416358568035,"position":3,"created_at":"2024-05-06T14:41:32+08:00","updated_at":"2024-05-06T14:41:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692","variant_ids":[41918872256611]},"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-SB01","featured_media":{"alt":null,"id":23897342738531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918872256611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491929735267,"product_id":7416358568035,"position":3,"created_at":"2024-05-06T14:41:32+08:00","updated_at":"2024-05-06T14:41:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692","variant_ids":[41918872256611]},"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-SB01","featured_media":{"alt":null,"id":23897342738531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7aba8729425c7fb31620dc2eb7d4e5e45b63ddb_b4319465-a542-425d-ad66-83fe765a3efd.webp?v=1714977692"}},"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: "停產" }