$product = {"id":7408141697123,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列","handle":"iphone-13-pro-max-mod-nx-printable-pb56","description":null,"published_at":"2024-06-11T16:32:31+08:00","created_at":"2024-05-03T12:08:08+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 13 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":41883144781923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471303852131,"product_id":7408141697123,"position":9,"created_at":"2024-05-03T12:08:30+08:00","updated_at":"2024-05-03T12:08:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310","variant_ids":[41883144781923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB56","featured_media":{"alt":null,"id":23876209508451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883145076835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471304278115,"product_id":7408141697123,"position":10,"created_at":"2024-05-03T12:08:32+08:00","updated_at":"2024-05-03T12:08:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c31e7db176d268d11a30e5f8a08979ad2065b3e_695554ab-f1ee-4258-a8ce-56dfb0c06d6a.webp?v=1714709312","variant_ids":[41883145076835]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-PB56","featured_media":{"alt":null,"id":23876209868899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c31e7db176d268d11a30e5f8a08979ad2065b3e_695554ab-f1ee-4258-a8ce-56dfb0c06d6a.webp?v=1714709312"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793e78d64b9f34e5e266939a507974349888b6be_e136c4e4-d0a2-4df5-b6ef-dae4e151ff3a.webp?v=1714709290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c148fdc50781cc3ccbca2dd64ea5a3e6569714_90f6feb7-cd19-4a0f-ab0c-f5f87e6c35f6.webp?v=1714709293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3f9d949adb277223abd59cf8f0e49899be53e5_d710d935-f51a-4cb5-a8c3-3ab059a14dbb.webp?v=1714709295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edcacc76c51b44a65d6ea758187d443612b6bbe_10249bd3-2189-4b20-a3ee-763ebaab7522.webp?v=1714709298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae07f87543cae1268cbfdef0a7a1ac6be174047_22da6d4f-da3f-40f5-bad4-098f46e1375d.webp?v=1714709300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ece5cc3fb9d408b689bc8ae83fc07fe1ee066f_0403ab5b-e057-4e7f-89da-f613bedbdad8.webp?v=1714709302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fecdd98eed2606505568960c71ff561bb679d3b_fa13e053-5d7c-4baa-bb78-7e8c7dc737d3.webp?v=1714709305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c308b571084c8786d0e9f312261ca850e0dc0ab_b97e5a8d-0f7a-4b0f-a47b-c2775943f709.webp?v=1714709307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c31e7db176d268d11a30e5f8a08979ad2065b3e_695554ab-f1ee-4258-a8ce-56dfb0c06d6a.webp?v=1714709312"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793e78d64b9f34e5e266939a507974349888b6be_e136c4e4-d0a2-4df5-b6ef-dae4e151ff3a.webp?v=1714709290","options":["color"],"media":[{"alt":null,"id":23876204789859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793e78d64b9f34e5e266939a507974349888b6be_e136c4e4-d0a2-4df5-b6ef-dae4e151ff3a.webp?v=1714709290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793e78d64b9f34e5e266939a507974349888b6be_e136c4e4-d0a2-4df5-b6ef-dae4e151ff3a.webp?v=1714709290","width":2000},{"alt":null,"id":23876205248611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c148fdc50781cc3ccbca2dd64ea5a3e6569714_90f6feb7-cd19-4a0f-ab0c-f5f87e6c35f6.webp?v=1714709293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c148fdc50781cc3ccbca2dd64ea5a3e6569714_90f6feb7-cd19-4a0f-ab0c-f5f87e6c35f6.webp?v=1714709293","width":2000},{"alt":null,"id":23876205641827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3f9d949adb277223abd59cf8f0e49899be53e5_d710d935-f51a-4cb5-a8c3-3ab059a14dbb.webp?v=1714709295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3f9d949adb277223abd59cf8f0e49899be53e5_d710d935-f51a-4cb5-a8c3-3ab059a14dbb.webp?v=1714709295","width":2000},{"alt":null,"id":23876206231651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edcacc76c51b44a65d6ea758187d443612b6bbe_10249bd3-2189-4b20-a3ee-763ebaab7522.webp?v=1714709298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edcacc76c51b44a65d6ea758187d443612b6bbe_10249bd3-2189-4b20-a3ee-763ebaab7522.webp?v=1714709298","width":2000},{"alt":null,"id":23876206657635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae07f87543cae1268cbfdef0a7a1ac6be174047_22da6d4f-da3f-40f5-bad4-098f46e1375d.webp?v=1714709300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae07f87543cae1268cbfdef0a7a1ac6be174047_22da6d4f-da3f-40f5-bad4-098f46e1375d.webp?v=1714709300","width":2000},{"alt":null,"id":23876207083619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ece5cc3fb9d408b689bc8ae83fc07fe1ee066f_0403ab5b-e057-4e7f-89da-f613bedbdad8.webp?v=1714709302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ece5cc3fb9d408b689bc8ae83fc07fe1ee066f_0403ab5b-e057-4e7f-89da-f613bedbdad8.webp?v=1714709302","width":2000},{"alt":null,"id":23876208558179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fecdd98eed2606505568960c71ff561bb679d3b_fa13e053-5d7c-4baa-bb78-7e8c7dc737d3.webp?v=1714709305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fecdd98eed2606505568960c71ff561bb679d3b_fa13e053-5d7c-4baa-bb78-7e8c7dc737d3.webp?v=1714709305","width":2000},{"alt":null,"id":23876209016931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c308b571084c8786d0e9f312261ca850e0dc0ab_b97e5a8d-0f7a-4b0f-a47b-c2775943f709.webp?v=1714709307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c308b571084c8786d0e9f312261ca850e0dc0ab_b97e5a8d-0f7a-4b0f-a47b-c2775943f709.webp?v=1714709307","width":2000},{"alt":null,"id":23876209508451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310","width":2000},{"alt":null,"id":23876209868899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c31e7db176d268d11a30e5f8a08979ad2065b3e_695554ab-f1ee-4258-a8ce-56dfb0c06d6a.webp?v=1714709312"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c31e7db176d268d11a30e5f8a08979ad2065b3e_695554ab-f1ee-4258-a8ce-56dfb0c06d6a.webp?v=1714709312","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883144781923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471303852131,"product_id":7408141697123,"position":9,"created_at":"2024-05-03T12:08:30+08:00","updated_at":"2024-05-03T12:08:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310","variant_ids":[41883144781923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB56","featured_media":{"alt":null,"id":23876209508451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883145076835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471304278115,"product_id":7408141697123,"position":10,"created_at":"2024-05-03T12:08:32+08:00","updated_at":"2024-05-03T12:08:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c31e7db176d268d11a30e5f8a08979ad2065b3e_695554ab-f1ee-4258-a8ce-56dfb0c06d6a.webp?v=1714709312","variant_ids":[41883145076835]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB01232J5-PB56","featured_media":{"alt":null,"id":23876209868899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c31e7db176d268d11a30e5f8a08979ad2065b3e_695554ab-f1ee-4258-a8ce-56dfb0c06d6a.webp?v=1714709312"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883144781923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471303852131,"product_id":7408141697123,"position":9,"created_at":"2024-05-03T12:08:30+08:00","updated_at":"2024-05-03T12:08:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310","variant_ids":[41883144781923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 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":"NPB0123224-PB56","featured_media":{"alt":null,"id":23876209508451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fca9e7575622cd9d240defd6c8bcb12bb306f2b_6e22ed36-fed4-40b4-967f-a3a1960dfd7a.webp?v=1714709310"}},"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: "停產" }