$product = {"id":7416335237219,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列","handle":"iphone-8-mod-nx-printable-pb58","description":null,"published_at":"2024-06-11T16:56:13+08:00","created_at":"2024-05-06T14:36:44+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":41918614208611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31491873996899,"product_id":7416335237219,"position":8,"created_at":"2024-05-06T14:37:02+08:00","updated_at":"2024-05-06T14:37:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422","variant_ids":[41918614208611]},"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-PB58","featured_media":{"alt":null,"id":23897286869091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc59cf10a4c0510c7c2ffe0bea8a598254cc5186_64804417-8c60-4f0c-a8e8-96f3c1f61a26.webp?v=1714977406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2457f58095bc4e16989ed2aeb2041ffdfad2eec_b9c9cd33-ed18-49a7-a24e-86b5c96fa886.webp?v=1714977409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc9ea5ca2c8dc6f5e279c090df3866fdd814a436_dfa1ec01-44e5-41dc-98fd-2c2e8c060321.webp?v=1714977411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae5ee93fa2ec89b1bbe33d79285e4ba47f8f5ff_b442fd02-ebbb-42c7-9087-f73ec9dfc4fc.webp?v=1714977413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c11b1760e2b818320a61125fdc6d9de3777eeed_12331363-c2c5-4ffc-9f63-4fab7100a538.webp?v=1714977415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1351c74271c19cc42bf27b6613034f9e81e40dc9_8660f729-6804-4d40-a26e-36e2d940719c.webp?v=1714977418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28bf6dd5ffc9ee5dcbbd9ddd1bdd7a53c6b3f9f9_6fc125c8-8944-4cb4-af3e-9fca5a758634.webp?v=1714977420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47b61f91efff32ab11f3519bed1e68caa2902fc_0507d33e-f1aa-40c6-a95d-12f648721a51.webp?v=1714977424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f613d7ed88a6f92ac4740d7023e896fc50f7fd0_016745fb-77c6-4b9c-b260-af879dc04014.webp?v=1714977427"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc59cf10a4c0510c7c2ffe0bea8a598254cc5186_64804417-8c60-4f0c-a8e8-96f3c1f61a26.webp?v=1714977406","options":["color"],"media":[{"alt":null,"id":23897283297379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc59cf10a4c0510c7c2ffe0bea8a598254cc5186_64804417-8c60-4f0c-a8e8-96f3c1f61a26.webp?v=1714977406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc59cf10a4c0510c7c2ffe0bea8a598254cc5186_64804417-8c60-4f0c-a8e8-96f3c1f61a26.webp?v=1714977406","width":2000},{"alt":null,"id":23897283788899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2457f58095bc4e16989ed2aeb2041ffdfad2eec_b9c9cd33-ed18-49a7-a24e-86b5c96fa886.webp?v=1714977409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2457f58095bc4e16989ed2aeb2041ffdfad2eec_b9c9cd33-ed18-49a7-a24e-86b5c96fa886.webp?v=1714977409","width":2000},{"alt":null,"id":23897284247651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc9ea5ca2c8dc6f5e279c090df3866fdd814a436_dfa1ec01-44e5-41dc-98fd-2c2e8c060321.webp?v=1714977411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc9ea5ca2c8dc6f5e279c090df3866fdd814a436_dfa1ec01-44e5-41dc-98fd-2c2e8c060321.webp?v=1714977411","width":2000},{"alt":null,"id":23897284739171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae5ee93fa2ec89b1bbe33d79285e4ba47f8f5ff_b442fd02-ebbb-42c7-9087-f73ec9dfc4fc.webp?v=1714977413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ae5ee93fa2ec89b1bbe33d79285e4ba47f8f5ff_b442fd02-ebbb-42c7-9087-f73ec9dfc4fc.webp?v=1714977413","width":2000},{"alt":null,"id":23897285230691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c11b1760e2b818320a61125fdc6d9de3777eeed_12331363-c2c5-4ffc-9f63-4fab7100a538.webp?v=1714977415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c11b1760e2b818320a61125fdc6d9de3777eeed_12331363-c2c5-4ffc-9f63-4fab7100a538.webp?v=1714977415","width":2000},{"alt":null,"id":23897285689443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1351c74271c19cc42bf27b6613034f9e81e40dc9_8660f729-6804-4d40-a26e-36e2d940719c.webp?v=1714977418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1351c74271c19cc42bf27b6613034f9e81e40dc9_8660f729-6804-4d40-a26e-36e2d940719c.webp?v=1714977418","width":2000},{"alt":null,"id":23897286148195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28bf6dd5ffc9ee5dcbbd9ddd1bdd7a53c6b3f9f9_6fc125c8-8944-4cb4-af3e-9fca5a758634.webp?v=1714977420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28bf6dd5ffc9ee5dcbbd9ddd1bdd7a53c6b3f9f9_6fc125c8-8944-4cb4-af3e-9fca5a758634.webp?v=1714977420","width":2000},{"alt":null,"id":23897286869091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422","width":2000},{"alt":null,"id":23897287426147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47b61f91efff32ab11f3519bed1e68caa2902fc_0507d33e-f1aa-40c6-a95d-12f648721a51.webp?v=1714977424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47b61f91efff32ab11f3519bed1e68caa2902fc_0507d33e-f1aa-40c6-a95d-12f648721a51.webp?v=1714977424","width":2000},{"alt":null,"id":23897287852131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f613d7ed88a6f92ac4740d7023e896fc50f7fd0_016745fb-77c6-4b9c-b260-af879dc04014.webp?v=1714977427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f613d7ed88a6f92ac4740d7023e896fc50f7fd0_016745fb-77c6-4b9c-b260-af879dc04014.webp?v=1714977427","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918614208611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31491873996899,"product_id":7416335237219,"position":8,"created_at":"2024-05-06T14:37:02+08:00","updated_at":"2024-05-06T14:37:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422","variant_ids":[41918614208611]},"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-PB58","featured_media":{"alt":null,"id":23897286869091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918614208611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31491873996899,"product_id":7416335237219,"position":8,"created_at":"2024-05-06T14:37:02+08:00","updated_at":"2024-05-06T14:37:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422","variant_ids":[41918614208611]},"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-PB58","featured_media":{"alt":null,"id":23897286869091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b673e807b620ae3bde07be5d9dc512f884a760f_a76d2f98-0148-4013-8a5b-9f556f71b431.webp?v=1714977422"}},"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: "停產" }