$product = {"id":7416370397283,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白","handle":"iphone-8-mod-nx-printable-pb06","description":null,"published_at":"2024-06-11T16:57:12+08:00","created_at":"2024-05-06T14:43:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41919001952355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491961389155,"product_id":7416370397283,"position":3,"created_at":"2024-05-06T14:43:58+08:00","updated_at":"2024-05-06T14:43:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838","variant_ids":[41919001952355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白 - 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-PB06","featured_media":{"alt":null,"id":23897374589027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5ed1c021e84fa9c0d8e53039d5f7a88eccddd5_7e5a79ea-75ec-4f4e-a27c-6bac73001aab.webp?v=1714977834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ccc6880543ba2c36e7b2a812ab5be332ce5c488_e7a50f87-eb8c-4f04-8a23-c683ae7a2c78.webp?v=1714977836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea370ef77318689e7f20b630bf18f030d4023a9_dc8257d3-c914-4748-b5bd-4e348131d351.webp?v=1714977841","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c889d5cb10dd2a6de44d8f32b47f5ef8ec96eda2_284b93f8-aba0-418b-bf66-9ca1f253cdc6.webp?v=1714977843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd397b21db0173cf2993ed3efdf3c0148050959c_c863363f-5466-4b9a-995b-7a7e21da01a7.webp?v=1714977845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b181e1982cf2a47ce028bb867c9dae6f952e7d8_d86d2914-9994-496b-bfeb-c7502a4777b3.webp?v=1714977848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0e4c365801bb4ac806c6e1a6eb6b8f73b52a7d_04a92f39-5060-475c-8918-2eeced956a8e.webp?v=1714977850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c9c0a3634c09842c09fbaf702e5c35ce776631_4f844023-6c57-457e-bf84-ed8e1415ade9.webp?v=1714977854"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5ed1c021e84fa9c0d8e53039d5f7a88eccddd5_7e5a79ea-75ec-4f4e-a27c-6bac73001aab.webp?v=1714977834","options":["color"],"media":[{"alt":null,"id":23897373409379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5ed1c021e84fa9c0d8e53039d5f7a88eccddd5_7e5a79ea-75ec-4f4e-a27c-6bac73001aab.webp?v=1714977834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5ed1c021e84fa9c0d8e53039d5f7a88eccddd5_7e5a79ea-75ec-4f4e-a27c-6bac73001aab.webp?v=1714977834","width":2000},{"alt":null,"id":23897374097507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ccc6880543ba2c36e7b2a812ab5be332ce5c488_e7a50f87-eb8c-4f04-8a23-c683ae7a2c78.webp?v=1714977836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ccc6880543ba2c36e7b2a812ab5be332ce5c488_e7a50f87-eb8c-4f04-8a23-c683ae7a2c78.webp?v=1714977836","width":2000},{"alt":null,"id":23897374589027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838","width":2000},{"alt":null,"id":23897375178851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea370ef77318689e7f20b630bf18f030d4023a9_dc8257d3-c914-4748-b5bd-4e348131d351.webp?v=1714977841"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea370ef77318689e7f20b630bf18f030d4023a9_dc8257d3-c914-4748-b5bd-4e348131d351.webp?v=1714977841","width":2000},{"alt":null,"id":23897375506531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c889d5cb10dd2a6de44d8f32b47f5ef8ec96eda2_284b93f8-aba0-418b-bf66-9ca1f253cdc6.webp?v=1714977843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c889d5cb10dd2a6de44d8f32b47f5ef8ec96eda2_284b93f8-aba0-418b-bf66-9ca1f253cdc6.webp?v=1714977843","width":2000},{"alt":null,"id":23897376161891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd397b21db0173cf2993ed3efdf3c0148050959c_c863363f-5466-4b9a-995b-7a7e21da01a7.webp?v=1714977845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd397b21db0173cf2993ed3efdf3c0148050959c_c863363f-5466-4b9a-995b-7a7e21da01a7.webp?v=1714977845","width":2000},{"alt":null,"id":23897376751715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b181e1982cf2a47ce028bb867c9dae6f952e7d8_d86d2914-9994-496b-bfeb-c7502a4777b3.webp?v=1714977848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b181e1982cf2a47ce028bb867c9dae6f952e7d8_d86d2914-9994-496b-bfeb-c7502a4777b3.webp?v=1714977848","width":2000},{"alt":null,"id":23897377177699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0e4c365801bb4ac806c6e1a6eb6b8f73b52a7d_04a92f39-5060-475c-8918-2eeced956a8e.webp?v=1714977850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0e4c365801bb4ac806c6e1a6eb6b8f73b52a7d_04a92f39-5060-475c-8918-2eeced956a8e.webp?v=1714977850","width":2000},{"alt":null,"id":23897378062435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c9c0a3634c09842c09fbaf702e5c35ce776631_4f844023-6c57-457e-bf84-ed8e1415ade9.webp?v=1714977854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c9c0a3634c09842c09fbaf702e5c35ce776631_4f844023-6c57-457e-bf84-ed8e1415ade9.webp?v=1714977854","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919001952355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491961389155,"product_id":7416370397283,"position":3,"created_at":"2024-05-06T14:43:58+08:00","updated_at":"2024-05-06T14:43:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838","variant_ids":[41919001952355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白 - 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-PB06","featured_media":{"alt":null,"id":23897374589027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919001952355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491961389155,"product_id":7416370397283,"position":3,"created_at":"2024-05-06T14:43:58+08:00","updated_at":"2024-05-06T14:43:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838","variant_ids":[41919001952355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白 - 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-PB06","featured_media":{"alt":null,"id":23897374589027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3ddebab085589f59b83e2be669faa8f9280a04_3a853a9a-8ce0-4ccd-b9b5-acaa2028ef5f.webp?v=1714977838"}},"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: "停產" }