$product = {"id":7408026026083,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-13-pro-max-mod-nx-printable-pb79","description":null,"published_at":"2024-06-11T16:29:25+08:00","created_at":"2024-05-03T11:44:01+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":41881855361123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31471005532259,"product_id":7408026026083,"position":8,"created_at":"2024-05-03T11:44:21+08:00","updated_at":"2024-05-03T11:44:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861","variant_ids":[41881855361123]},"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-PB79","featured_media":{"alt":null,"id":23875910533219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881855656035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31471005139043,"product_id":7408026026083,"position":7,"created_at":"2024-05-03T11:44:19+08:00","updated_at":"2024-05-03T11:44:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116dcf9a4670397d68d3240bbe8297dd5145adde_84b799de-381b-4ba3-84fc-cf76616b6efc.webp?v=1714707859","variant_ids":[41881855656035]},"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-PB79","featured_media":{"alt":null,"id":23875910140003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116dcf9a4670397d68d3240bbe8297dd5145adde_84b799de-381b-4ba3-84fc-cf76616b6efc.webp?v=1714707859"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d65ababc2964200d316cf8c7f9f16fde7fc3065_b1de428e-376e-4aa7-acb4-ce67dda067f6.webp?v=1714707843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06909cddeeb51189ca4a1832a3142757f0c50d_2015d652-d262-48c9-bb54-892c769d2500.webp?v=1714707846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45a59d1e8010149be6c60f1739fe14eef0dbefdd_d9126c1f-aa2b-4475-822f-a5c33ae1bbac.webp?v=1714707849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fed5eaef458ad1c4134b5b8332fd0641a4269e_47510192-a8ee-42ba-9979-c45db660c9a6.webp?v=1714707851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60b3f40b24ab5c87518396fb48975681099c0eb2_8bff2213-896d-44ce-9c3a-e7704cf63721.webp?v=1714707854","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634bb7c44f43977a37a6b9bc4c999c0f55998eda_b52565f5-6469-4114-94ea-0faf72ccf32f.webp?v=1714707856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116dcf9a4670397d68d3240bbe8297dd5145adde_84b799de-381b-4ba3-84fc-cf76616b6efc.webp?v=1714707859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f4e5e19e41e7dde33cd093a60010b0e7977bbe0_e2649bd3-d141-42b2-a74f-de23df00522c.webp?v=1714707863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace2bd39c6fd5a8a71d6ef886d0e38639f1c6cb1_4c334c01-ca59-4c59-8d8c-4a0795cad4b9.webp?v=1714707866"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d65ababc2964200d316cf8c7f9f16fde7fc3065_b1de428e-376e-4aa7-acb4-ce67dda067f6.webp?v=1714707843","options":["color"],"media":[{"alt":null,"id":23875906928739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d65ababc2964200d316cf8c7f9f16fde7fc3065_b1de428e-376e-4aa7-acb4-ce67dda067f6.webp?v=1714707843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d65ababc2964200d316cf8c7f9f16fde7fc3065_b1de428e-376e-4aa7-acb4-ce67dda067f6.webp?v=1714707843","width":2000},{"alt":null,"id":23875907354723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06909cddeeb51189ca4a1832a3142757f0c50d_2015d652-d262-48c9-bb54-892c769d2500.webp?v=1714707846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a06909cddeeb51189ca4a1832a3142757f0c50d_2015d652-d262-48c9-bb54-892c769d2500.webp?v=1714707846","width":2000},{"alt":null,"id":23875907780707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45a59d1e8010149be6c60f1739fe14eef0dbefdd_d9126c1f-aa2b-4475-822f-a5c33ae1bbac.webp?v=1714707849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45a59d1e8010149be6c60f1739fe14eef0dbefdd_d9126c1f-aa2b-4475-822f-a5c33ae1bbac.webp?v=1714707849","width":2000},{"alt":null,"id":23875908272227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fed5eaef458ad1c4134b5b8332fd0641a4269e_47510192-a8ee-42ba-9979-c45db660c9a6.webp?v=1714707851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fed5eaef458ad1c4134b5b8332fd0641a4269e_47510192-a8ee-42ba-9979-c45db660c9a6.webp?v=1714707851","width":2000},{"alt":null,"id":23875908796515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60b3f40b24ab5c87518396fb48975681099c0eb2_8bff2213-896d-44ce-9c3a-e7704cf63721.webp?v=1714707854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60b3f40b24ab5c87518396fb48975681099c0eb2_8bff2213-896d-44ce-9c3a-e7704cf63721.webp?v=1714707854","width":2000},{"alt":null,"id":23875909222499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634bb7c44f43977a37a6b9bc4c999c0f55998eda_b52565f5-6469-4114-94ea-0faf72ccf32f.webp?v=1714707856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634bb7c44f43977a37a6b9bc4c999c0f55998eda_b52565f5-6469-4114-94ea-0faf72ccf32f.webp?v=1714707856","width":2000},{"alt":null,"id":23875910140003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116dcf9a4670397d68d3240bbe8297dd5145adde_84b799de-381b-4ba3-84fc-cf76616b6efc.webp?v=1714707859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116dcf9a4670397d68d3240bbe8297dd5145adde_84b799de-381b-4ba3-84fc-cf76616b6efc.webp?v=1714707859","width":2000},{"alt":null,"id":23875910533219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861","width":2000},{"alt":null,"id":23875911057507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f4e5e19e41e7dde33cd093a60010b0e7977bbe0_e2649bd3-d141-42b2-a74f-de23df00522c.webp?v=1714707863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f4e5e19e41e7dde33cd093a60010b0e7977bbe0_e2649bd3-d141-42b2-a74f-de23df00522c.webp?v=1714707863","width":2000},{"alt":null,"id":23875911516259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace2bd39c6fd5a8a71d6ef886d0e38639f1c6cb1_4c334c01-ca59-4c59-8d8c-4a0795cad4b9.webp?v=1714707866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace2bd39c6fd5a8a71d6ef886d0e38639f1c6cb1_4c334c01-ca59-4c59-8d8c-4a0795cad4b9.webp?v=1714707866","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41881855361123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31471005532259,"product_id":7408026026083,"position":8,"created_at":"2024-05-03T11:44:21+08:00","updated_at":"2024-05-03T11:44:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861","variant_ids":[41881855361123]},"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-PB79","featured_media":{"alt":null,"id":23875910533219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881855656035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31471005139043,"product_id":7408026026083,"position":7,"created_at":"2024-05-03T11:44:19+08:00","updated_at":"2024-05-03T11:44:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116dcf9a4670397d68d3240bbe8297dd5145adde_84b799de-381b-4ba3-84fc-cf76616b6efc.webp?v=1714707859","variant_ids":[41881855656035]},"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-PB79","featured_media":{"alt":null,"id":23875910140003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116dcf9a4670397d68d3240bbe8297dd5145adde_84b799de-381b-4ba3-84fc-cf76616b6efc.webp?v=1714707859"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881855361123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31471005532259,"product_id":7408026026083,"position":8,"created_at":"2024-05-03T11:44:21+08:00","updated_at":"2024-05-03T11:44:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861","variant_ids":[41881855361123]},"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-PB79","featured_media":{"alt":null,"id":23875910533219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421aa0c27343e537a8f3ba57f1d183e7bdd692f6_eeb98aa1-d503-433c-8882-f18deb3cc9d9.webp?v=1714707861"}},"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: "停產" }