$product = {"id":7407828402275,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典","handle":"iphone-14-plus-mod-nx-printable-pb80","description":null,"published_at":"2024-06-11T16:23:58+08:00","created_at":"2024-05-03T10:57:55+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 14 Plus","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":41879330979939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470469546083,"product_id":7407828402275,"position":3,"created_at":"2024-05-03T10:58:02+08:00","updated_at":"2024-05-03T10:58:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082","variant_ids":[41879330979939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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":"NPB0126124-PB80","featured_media":{"alt":null,"id":23875373170787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5425a708918425f594d9682261a1f95a3105c_d0e13664-94a3-4a34-ac13-664bc02f04f7.webp?v=1714705077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab65390ddde4f7a156cd9fb90d988edd853409c2_56f69ce1-6fec-4bc0-ac90-99259995b578.webp?v=1714705080","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8104807eb62de1f283f49c1a4e84e86ce3e89_61940f2d-9d1e-4a84-9120-8c963adeced4.webp?v=1714705085","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d18347df513f91ff350b9326bd04988c3d352b_540c2461-ddae-4e4f-ac34-065ae4877a35.webp?v=1714705087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/758473c37c91d15d3a00491449dc98e7c22ee10e_76bab277-9a98-4948-9478-35ffc8aff5d0.webp?v=1714705090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a5c3165f0b62e7fa59cd58eea497d6b046bb80_e4173e5b-89a1-47f6-a5ec-4a8f80747b06.webp?v=1714705093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa9fd52b639873b9951b7af50cdb22bf4216fa55_edb7a8b2-005f-44ce-a61c-875165b0e6b1.webp?v=1714705096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66237319f5c95668cebe56d4cd614823519712_1fe0ab8b-df97-49b8-9411-17b5afb9fd8a.webp?v=1714705098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17251933cabd44c28289c9e5b61288b2b040340_9489e023-5cb6-4963-8db8-4ddb77730c0f.webp?v=1714705101"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5425a708918425f594d9682261a1f95a3105c_d0e13664-94a3-4a34-ac13-664bc02f04f7.webp?v=1714705077","options":["color"],"media":[{"alt":null,"id":23875372515427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5425a708918425f594d9682261a1f95a3105c_d0e13664-94a3-4a34-ac13-664bc02f04f7.webp?v=1714705077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5425a708918425f594d9682261a1f95a3105c_d0e13664-94a3-4a34-ac13-664bc02f04f7.webp?v=1714705077","width":2000},{"alt":null,"id":23875372843107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab65390ddde4f7a156cd9fb90d988edd853409c2_56f69ce1-6fec-4bc0-ac90-99259995b578.webp?v=1714705080"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab65390ddde4f7a156cd9fb90d988edd853409c2_56f69ce1-6fec-4bc0-ac90-99259995b578.webp?v=1714705080","width":2000},{"alt":null,"id":23875373170787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082","width":2000},{"alt":null,"id":23875373727843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8104807eb62de1f283f49c1a4e84e86ce3e89_61940f2d-9d1e-4a84-9120-8c963adeced4.webp?v=1714705085"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8104807eb62de1f283f49c1a4e84e86ce3e89_61940f2d-9d1e-4a84-9120-8c963adeced4.webp?v=1714705085","width":2000},{"alt":null,"id":23875374088291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d18347df513f91ff350b9326bd04988c3d352b_540c2461-ddae-4e4f-ac34-065ae4877a35.webp?v=1714705087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d18347df513f91ff350b9326bd04988c3d352b_540c2461-ddae-4e4f-ac34-065ae4877a35.webp?v=1714705087","width":2000},{"alt":null,"id":23875374579811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/758473c37c91d15d3a00491449dc98e7c22ee10e_76bab277-9a98-4948-9478-35ffc8aff5d0.webp?v=1714705090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/758473c37c91d15d3a00491449dc98e7c22ee10e_76bab277-9a98-4948-9478-35ffc8aff5d0.webp?v=1714705090","width":2000},{"alt":null,"id":23875375235171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a5c3165f0b62e7fa59cd58eea497d6b046bb80_e4173e5b-89a1-47f6-a5ec-4a8f80747b06.webp?v=1714705093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2a5c3165f0b62e7fa59cd58eea497d6b046bb80_e4173e5b-89a1-47f6-a5ec-4a8f80747b06.webp?v=1714705093","width":2000},{"alt":null,"id":23875375824995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa9fd52b639873b9951b7af50cdb22bf4216fa55_edb7a8b2-005f-44ce-a61c-875165b0e6b1.webp?v=1714705096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa9fd52b639873b9951b7af50cdb22bf4216fa55_edb7a8b2-005f-44ce-a61c-875165b0e6b1.webp?v=1714705096","width":2000},{"alt":null,"id":23875376283747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66237319f5c95668cebe56d4cd614823519712_1fe0ab8b-df97-49b8-9411-17b5afb9fd8a.webp?v=1714705098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66237319f5c95668cebe56d4cd614823519712_1fe0ab8b-df97-49b8-9411-17b5afb9fd8a.webp?v=1714705098","width":2000},{"alt":null,"id":23875376775267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17251933cabd44c28289c9e5b61288b2b040340_9489e023-5cb6-4963-8db8-4ddb77730c0f.webp?v=1714705101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17251933cabd44c28289c9e5b61288b2b040340_9489e023-5cb6-4963-8db8-4ddb77730c0f.webp?v=1714705101","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879330979939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470469546083,"product_id":7407828402275,"position":3,"created_at":"2024-05-03T10:58:02+08:00","updated_at":"2024-05-03T10:58:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082","variant_ids":[41879330979939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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":"NPB0126124-PB80","featured_media":{"alt":null,"id":23875373170787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879330979939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470469546083,"product_id":7407828402275,"position":3,"created_at":"2024-05-03T10:58:02+08:00","updated_at":"2024-05-03T10:58:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082","variant_ids":[41879330979939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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":"NPB0126124-PB80","featured_media":{"alt":null,"id":23875373170787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e14814d623f8f43677a6f146b8553c6cc424ba1_d88ab419-1a95-4c65-ac9c-2be01087c2de.webp?v=1714705082"}},"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: "停產" }