$product = {"id":7416361844835,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-8-mod-nx-printable-pb77","description":null,"published_at":"2024-06-11T16:56:58+08:00","created_at":"2024-05-06T14:42:02+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":41918901846115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31491941433443,"product_id":7416361844835,"position":9,"created_at":"2024-05-06T14:42:23+08:00","updated_at":"2024-05-06T14:42:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743","variant_ids":[41918901846115]},"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-PB77","featured_media":{"alt":null,"id":23897354502243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b439e5da886f18fcdfc03084e4ae61b7949a423_ec5adde0-8382-4f6a-ba44-f684fb0ecddf.webp?v=1714977725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053b29f99054db764c3c26f275191320f1b8ddad_0c0e02ae-abe3-41d7-b970-4cd7909cf7d1.webp?v=1714977727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5930d66ec1222b8c71d08fb3ba11df6329a3d4_bbe47f4c-3d47-4ae6-b7fb-f43f4707056b.webp?v=1714977729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285d8390421e98897c66e258c10a8708eca98829_13e54b54-fa63-4fd4-b2df-96e73843d13c.webp?v=1714977731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17be1426c6c1ee9eb5de3a847ca39ddd876e5519_331bb30d-7be1-4556-8900-d5e2168890f0.webp?v=1714977734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38729b4b5dc2a05f667df99b5557fbbd42745b7_0f656ac8-bb95-41d4-af53-b62a7de187c1.webp?v=1714977736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490004f09f5f8baf2139a2ad91b00dc759c209b3_056f99c7-8240-47e5-b7f2-5a7fbdeac919.webp?v=1714977738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ec446843b750ee4f6bbfe6cb29cf7a195ec3db8_b7e919c8-9394-467b-b7bf-bebf928a0d95.webp?v=1714977740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/259cf951963e3c7f7b0826c2cdcb2660520f7031_dc818b16-dd9b-4489-88b9-86b169fdcbd4.webp?v=1714977745"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b439e5da886f18fcdfc03084e4ae61b7949a423_ec5adde0-8382-4f6a-ba44-f684fb0ecddf.webp?v=1714977725","options":["color"],"media":[{"alt":null,"id":23897351159907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b439e5da886f18fcdfc03084e4ae61b7949a423_ec5adde0-8382-4f6a-ba44-f684fb0ecddf.webp?v=1714977725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b439e5da886f18fcdfc03084e4ae61b7949a423_ec5adde0-8382-4f6a-ba44-f684fb0ecddf.webp?v=1714977725","width":2000},{"alt":null,"id":23897351422051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053b29f99054db764c3c26f275191320f1b8ddad_0c0e02ae-abe3-41d7-b970-4cd7909cf7d1.webp?v=1714977727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/053b29f99054db764c3c26f275191320f1b8ddad_0c0e02ae-abe3-41d7-b970-4cd7909cf7d1.webp?v=1714977727","width":2000},{"alt":null,"id":23897351979107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5930d66ec1222b8c71d08fb3ba11df6329a3d4_bbe47f4c-3d47-4ae6-b7fb-f43f4707056b.webp?v=1714977729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5930d66ec1222b8c71d08fb3ba11df6329a3d4_bbe47f4c-3d47-4ae6-b7fb-f43f4707056b.webp?v=1714977729","width":2000},{"alt":null,"id":23897352306787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285d8390421e98897c66e258c10a8708eca98829_13e54b54-fa63-4fd4-b2df-96e73843d13c.webp?v=1714977731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285d8390421e98897c66e258c10a8708eca98829_13e54b54-fa63-4fd4-b2df-96e73843d13c.webp?v=1714977731","width":2000},{"alt":null,"id":23897352994915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17be1426c6c1ee9eb5de3a847ca39ddd876e5519_331bb30d-7be1-4556-8900-d5e2168890f0.webp?v=1714977734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17be1426c6c1ee9eb5de3a847ca39ddd876e5519_331bb30d-7be1-4556-8900-d5e2168890f0.webp?v=1714977734","width":2000},{"alt":null,"id":23897353355363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38729b4b5dc2a05f667df99b5557fbbd42745b7_0f656ac8-bb95-41d4-af53-b62a7de187c1.webp?v=1714977736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38729b4b5dc2a05f667df99b5557fbbd42745b7_0f656ac8-bb95-41d4-af53-b62a7de187c1.webp?v=1714977736","width":2000},{"alt":null,"id":23897353814115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490004f09f5f8baf2139a2ad91b00dc759c209b3_056f99c7-8240-47e5-b7f2-5a7fbdeac919.webp?v=1714977738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490004f09f5f8baf2139a2ad91b00dc759c209b3_056f99c7-8240-47e5-b7f2-5a7fbdeac919.webp?v=1714977738","width":2000},{"alt":null,"id":23897354109027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ec446843b750ee4f6bbfe6cb29cf7a195ec3db8_b7e919c8-9394-467b-b7bf-bebf928a0d95.webp?v=1714977740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ec446843b750ee4f6bbfe6cb29cf7a195ec3db8_b7e919c8-9394-467b-b7bf-bebf928a0d95.webp?v=1714977740","width":2000},{"alt":null,"id":23897354502243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743","width":2000},{"alt":null,"id":23897354797155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/259cf951963e3c7f7b0826c2cdcb2660520f7031_dc818b16-dd9b-4489-88b9-86b169fdcbd4.webp?v=1714977745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/259cf951963e3c7f7b0826c2cdcb2660520f7031_dc818b16-dd9b-4489-88b9-86b169fdcbd4.webp?v=1714977745","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918901846115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31491941433443,"product_id":7416361844835,"position":9,"created_at":"2024-05-06T14:42:23+08:00","updated_at":"2024-05-06T14:42:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743","variant_ids":[41918901846115]},"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-PB77","featured_media":{"alt":null,"id":23897354502243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918901846115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31491941433443,"product_id":7416361844835,"position":9,"created_at":"2024-05-06T14:42:23+08:00","updated_at":"2024-05-06T14:42:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743","variant_ids":[41918901846115]},"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-PB77","featured_media":{"alt":null,"id":23897354502243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784bd05df705e838fe2beb46e85ae09cfb2fff2e_37fd110e-afe3-4e94-ab4f-46b23ed433cd.webp?v=1714977743"}},"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: "停產" }