$product = {"id":7408388538467,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列","handle":"iphone-12-pro-max-mod-nx-printable-pb78","description":null,"published_at":"2024-06-11T16:35:52+08:00","created_at":"2024-05-03T15:16:40+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 12 pro max","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":41884920545379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31472134979683,"product_id":7408388538467,"position":10,"created_at":"2024-05-03T15:17:03+08:00","updated_at":"2024-05-03T15:17:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623","variant_ids":[41884920545379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PB78","featured_media":{"alt":null,"id":23877050564707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022dad2cc07fd70eb2346bf352a26bcaabe19442_b5ae676e-54a2-47c6-ab13-417304da1659.webp?v=1714720602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb2ccc325a878e99618d6c4dd669bde10a4beecf_01fc747f-a045-4e88-8d83-9e5b29ff1162.webp?v=1714720604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/346a418db1bd197bc6b15896c2bd16f941e64330_d8781ccd-06c1-4d2e-9cb7-df061224c8a0.webp?v=1714720607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac0b615705a963171d09fd7d31edc0c8f5d7e8b_8de06720-605a-4708-9d9a-be5f0a12ebd9.webp?v=1714720609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac2b5dccf6c528272562b5e88691b882496419_bfcf4e42-9dc0-47e5-ba92-eb2d6a73ef5c.webp?v=1714720611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f6dbf196ffedd0d6f208cc78f337968411eb1e4_62b827de-68c4-490a-b410-e37040a54b90.webp?v=1714720614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f38e449b0ed80b8eafa7f7e34a99654bbd33e_10e8929b-e5dd-4a59-a9bd-90c55d738e30.webp?v=1714720616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e506f7df6a0b2d7a4ca3e114173743a402f63b5a_73fac085-6157-44ad-a7fc-e0753d5491d4.webp?v=1714720618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb61f46a2a4945daf4bae61243f064f897b024fa_727cd64e-7fee-42f4-a3c1-bd0bd26774f7.webp?v=1714720621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022dad2cc07fd70eb2346bf352a26bcaabe19442_b5ae676e-54a2-47c6-ab13-417304da1659.webp?v=1714720602","options":["color"],"media":[{"alt":null,"id":23877045551203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022dad2cc07fd70eb2346bf352a26bcaabe19442_b5ae676e-54a2-47c6-ab13-417304da1659.webp?v=1714720602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022dad2cc07fd70eb2346bf352a26bcaabe19442_b5ae676e-54a2-47c6-ab13-417304da1659.webp?v=1714720602","width":2000},{"alt":null,"id":23877046009955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb2ccc325a878e99618d6c4dd669bde10a4beecf_01fc747f-a045-4e88-8d83-9e5b29ff1162.webp?v=1714720604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb2ccc325a878e99618d6c4dd669bde10a4beecf_01fc747f-a045-4e88-8d83-9e5b29ff1162.webp?v=1714720604","width":2000},{"alt":null,"id":23877046435939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/346a418db1bd197bc6b15896c2bd16f941e64330_d8781ccd-06c1-4d2e-9cb7-df061224c8a0.webp?v=1714720607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/346a418db1bd197bc6b15896c2bd16f941e64330_d8781ccd-06c1-4d2e-9cb7-df061224c8a0.webp?v=1714720607","width":2000},{"alt":null,"id":23877047222371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac0b615705a963171d09fd7d31edc0c8f5d7e8b_8de06720-605a-4708-9d9a-be5f0a12ebd9.webp?v=1714720609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac0b615705a963171d09fd7d31edc0c8f5d7e8b_8de06720-605a-4708-9d9a-be5f0a12ebd9.webp?v=1714720609","width":2000},{"alt":null,"id":23877047582819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac2b5dccf6c528272562b5e88691b882496419_bfcf4e42-9dc0-47e5-ba92-eb2d6a73ef5c.webp?v=1714720611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac2b5dccf6c528272562b5e88691b882496419_bfcf4e42-9dc0-47e5-ba92-eb2d6a73ef5c.webp?v=1714720611","width":2000},{"alt":null,"id":23877048467555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f6dbf196ffedd0d6f208cc78f337968411eb1e4_62b827de-68c4-490a-b410-e37040a54b90.webp?v=1714720614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f6dbf196ffedd0d6f208cc78f337968411eb1e4_62b827de-68c4-490a-b410-e37040a54b90.webp?v=1714720614","width":2000},{"alt":null,"id":23877049024611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f38e449b0ed80b8eafa7f7e34a99654bbd33e_10e8929b-e5dd-4a59-a9bd-90c55d738e30.webp?v=1714720616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3f38e449b0ed80b8eafa7f7e34a99654bbd33e_10e8929b-e5dd-4a59-a9bd-90c55d738e30.webp?v=1714720616","width":2000},{"alt":null,"id":23877049516131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e506f7df6a0b2d7a4ca3e114173743a402f63b5a_73fac085-6157-44ad-a7fc-e0753d5491d4.webp?v=1714720618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e506f7df6a0b2d7a4ca3e114173743a402f63b5a_73fac085-6157-44ad-a7fc-e0753d5491d4.webp?v=1714720618","width":2000},{"alt":null,"id":23877049974883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb61f46a2a4945daf4bae61243f064f897b024fa_727cd64e-7fee-42f4-a3c1-bd0bd26774f7.webp?v=1714720621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb61f46a2a4945daf4bae61243f064f897b024fa_727cd64e-7fee-42f4-a3c1-bd0bd26774f7.webp?v=1714720621","width":2000},{"alt":null,"id":23877050564707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41884920545379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31472134979683,"product_id":7408388538467,"position":10,"created_at":"2024-05-03T15:17:03+08:00","updated_at":"2024-05-03T15:17:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623","variant_ids":[41884920545379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PB78","featured_media":{"alt":null,"id":23877050564707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884920545379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31472134979683,"product_id":7408388538467,"position":10,"created_at":"2024-05-03T15:17:03+08:00","updated_at":"2024-05-03T15:17:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623","variant_ids":[41884920545379]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PB78","featured_media":{"alt":null,"id":23877050564707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec32bfdbdb0d578fb95e269b30dcdfe40df63a7d_24471227-1987-4453-8d2a-2b589b86f4fc.webp?v=1714720623"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }