$product = {"id":7416362139747,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白","handle":"iphone-8-mod-nx-printable-pb52","description":null,"published_at":"2024-06-11T16:56:59+08:00","created_at":"2024-05-06T14:42:06+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":41918903681123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31491939958883,"product_id":7416362139747,"position":3,"created_at":"2024-05-06T14:42:14+08:00","updated_at":"2024-05-06T14:42:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734","variant_ids":[41918903681123]},"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-PB52","featured_media":{"alt":null,"id":23897353060451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feae3a8fc27e394d6b514d2793841ed9f3964dc6_8836cb1c-f8eb-4206-b747-d3d789bbeddf.webp?v=1714977729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444083f13c2947210e80c8933347d6f1e8eb0972_77549e3b-a6cc-479d-a1e9-7c69a3ff28b4.webp?v=1714977731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5bfd82fadd73e69f398f28bfa0c57a51ac8008_3414a1fc-40eb-4529-8d39-e06d52360c22.webp?v=1714977736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944ec36a9880f3689603110f0d1a28c591263c41_be7aba72-ff4a-40de-96f9-5f7d7fb9a092.webp?v=1714977738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d33e76583d53e680d76c06c556f5f0943f0de8_985555a1-84e0-4afb-9a85-b34e7837789a.webp?v=1714977740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd16b9d98078a681d6aeb953f66554c03e437579_8034126a-a3ed-4706-aeb8-a80671d3b6a0.webp?v=1714977743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7925e85071ea4b5f6cc9b30da4c891d6fdd5e79_44d0c139-19fd-42e5-9250-5e57dd15fd9b.webp?v=1714977745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cffdf8df8f27e92795d0a27d1caea2906bffb880_8546497f-35f5-4d95-b972-74e151546b5c.webp?v=1714977747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6203d4f2f5dfa1f69d1664b598d51d83cca34e4c_69a1c656-5282-4b57-856f-cb8fbfb1e707.webp?v=1714977749"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feae3a8fc27e394d6b514d2793841ed9f3964dc6_8836cb1c-f8eb-4206-b747-d3d789bbeddf.webp?v=1714977729","options":["color"],"media":[{"alt":null,"id":23897352011875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feae3a8fc27e394d6b514d2793841ed9f3964dc6_8836cb1c-f8eb-4206-b747-d3d789bbeddf.webp?v=1714977729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feae3a8fc27e394d6b514d2793841ed9f3964dc6_8836cb1c-f8eb-4206-b747-d3d789bbeddf.webp?v=1714977729","width":2000},{"alt":null,"id":23897352274019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444083f13c2947210e80c8933347d6f1e8eb0972_77549e3b-a6cc-479d-a1e9-7c69a3ff28b4.webp?v=1714977731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444083f13c2947210e80c8933347d6f1e8eb0972_77549e3b-a6cc-479d-a1e9-7c69a3ff28b4.webp?v=1714977731","width":2000},{"alt":null,"id":23897353060451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734","width":2000},{"alt":null,"id":23897353420899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5bfd82fadd73e69f398f28bfa0c57a51ac8008_3414a1fc-40eb-4529-8d39-e06d52360c22.webp?v=1714977736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5bfd82fadd73e69f398f28bfa0c57a51ac8008_3414a1fc-40eb-4529-8d39-e06d52360c22.webp?v=1714977736","width":2000},{"alt":null,"id":23897353846883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944ec36a9880f3689603110f0d1a28c591263c41_be7aba72-ff4a-40de-96f9-5f7d7fb9a092.webp?v=1714977738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944ec36a9880f3689603110f0d1a28c591263c41_be7aba72-ff4a-40de-96f9-5f7d7fb9a092.webp?v=1714977738","width":2000},{"alt":null,"id":23897354141795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d33e76583d53e680d76c06c556f5f0943f0de8_985555a1-84e0-4afb-9a85-b34e7837789a.webp?v=1714977740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79d33e76583d53e680d76c06c556f5f0943f0de8_985555a1-84e0-4afb-9a85-b34e7837789a.webp?v=1714977740","width":2000},{"alt":null,"id":23897354567779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd16b9d98078a681d6aeb953f66554c03e437579_8034126a-a3ed-4706-aeb8-a80671d3b6a0.webp?v=1714977743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd16b9d98078a681d6aeb953f66554c03e437579_8034126a-a3ed-4706-aeb8-a80671d3b6a0.webp?v=1714977743","width":2000},{"alt":null,"id":23897354862691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7925e85071ea4b5f6cc9b30da4c891d6fdd5e79_44d0c139-19fd-42e5-9250-5e57dd15fd9b.webp?v=1714977745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7925e85071ea4b5f6cc9b30da4c891d6fdd5e79_44d0c139-19fd-42e5-9250-5e57dd15fd9b.webp?v=1714977745","width":2000},{"alt":null,"id":23897355092067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cffdf8df8f27e92795d0a27d1caea2906bffb880_8546497f-35f5-4d95-b972-74e151546b5c.webp?v=1714977747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cffdf8df8f27e92795d0a27d1caea2906bffb880_8546497f-35f5-4d95-b972-74e151546b5c.webp?v=1714977747","width":2000},{"alt":null,"id":23897355386979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6203d4f2f5dfa1f69d1664b598d51d83cca34e4c_69a1c656-5282-4b57-856f-cb8fbfb1e707.webp?v=1714977749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6203d4f2f5dfa1f69d1664b598d51d83cca34e4c_69a1c656-5282-4b57-856f-cb8fbfb1e707.webp?v=1714977749","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918903681123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31491939958883,"product_id":7416362139747,"position":3,"created_at":"2024-05-06T14:42:14+08:00","updated_at":"2024-05-06T14:42:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734","variant_ids":[41918903681123]},"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-PB52","featured_media":{"alt":null,"id":23897353060451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918903681123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31491939958883,"product_id":7416362139747,"position":3,"created_at":"2024-05-06T14:42:14+08:00","updated_at":"2024-05-06T14:42:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734","variant_ids":[41918903681123]},"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-PB52","featured_media":{"alt":null,"id":23897353060451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e7b2226f81b6c2a0ded1890a12924a0a81687ad_f1eb4064-2f15-4223-99bc-e298d8426986.webp?v=1714977734"}},"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: "停產" }