$product = {"id":7415914954851,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 經典Logo","handle":"iphone-xs-max-mod-nx-printable-sb11","description":null,"published_at":"2024-06-11T16:47:49+08:00","created_at":"2024-05-06T12:23:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41915484962915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31490723774563,"product_id":7415914954851,"position":8,"created_at":"2024-05-06T12:24:14+08:00","updated_at":"2024-05-06T12:24:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454","variant_ids":[41915484962915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 經典Logo - 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":"NPB0108624-SB11","featured_media":{"alt":null,"id":23896130584675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b2ae2b20a11ba9f9550ff45ed253b034fa7276_88136e91-cf9b-4562-89d0-3350a886c40a.webp?v=1714969438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ede27e86561ea3bdbbb27695f0b13a2889039f_a5d76ea3-d2ef-4a66-9309-6db5cfb0c4ed.webp?v=1714969440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5adc5c545045248b4a810f1d8a5ee44e53e50912_48c31f3a-6656-41cf-827e-c7a98d700743.webp?v=1714969442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64184d3f8aa7479b5236845aea1fbdf3e61d185_6661c497-0b95-4110-a63b-668e6a22d6a5.webp?v=1714969445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1fa9083d7fe1a5d3847d69e80ad2bc09b2363cd_a48e9b89-38aa-4835-8345-83c7b0be8596.webp?v=1714969447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328c47a77d263fa2f26593ad33af020b7edfdb77_fe71aac9-7732-42c3-ba21-dfb411fbf119.webp?v=1714969449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2d7141f9a4fa065428393003c3d7f6205ce7a8_628d55d4-82e2-441f-acda-b420c3c0ea38.webp?v=1714969452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a830bea8ad40edab6c27c34f66a3bbbc92eb2949_170bf807-6f42-4d1c-95cf-026cdbb21e41.webp?v=1714969457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdc7fbb837a89a737ff365e1e8d411fd4a1fa8c2_c04409ce-230b-48cd-80ad-ea8d238897a5.webp?v=1714969460"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b2ae2b20a11ba9f9550ff45ed253b034fa7276_88136e91-cf9b-4562-89d0-3350a886c40a.webp?v=1714969438","options":["color"],"media":[{"alt":null,"id":23896126521443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b2ae2b20a11ba9f9550ff45ed253b034fa7276_88136e91-cf9b-4562-89d0-3350a886c40a.webp?v=1714969438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b2ae2b20a11ba9f9550ff45ed253b034fa7276_88136e91-cf9b-4562-89d0-3350a886c40a.webp?v=1714969438","width":2000},{"alt":null,"id":23896127045731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ede27e86561ea3bdbbb27695f0b13a2889039f_a5d76ea3-d2ef-4a66-9309-6db5cfb0c4ed.webp?v=1714969440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ede27e86561ea3bdbbb27695f0b13a2889039f_a5d76ea3-d2ef-4a66-9309-6db5cfb0c4ed.webp?v=1714969440","width":2000},{"alt":null,"id":23896127668323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5adc5c545045248b4a810f1d8a5ee44e53e50912_48c31f3a-6656-41cf-827e-c7a98d700743.webp?v=1714969442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5adc5c545045248b4a810f1d8a5ee44e53e50912_48c31f3a-6656-41cf-827e-c7a98d700743.webp?v=1714969442","width":2000},{"alt":null,"id":23896128258147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64184d3f8aa7479b5236845aea1fbdf3e61d185_6661c497-0b95-4110-a63b-668e6a22d6a5.webp?v=1714969445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64184d3f8aa7479b5236845aea1fbdf3e61d185_6661c497-0b95-4110-a63b-668e6a22d6a5.webp?v=1714969445","width":2000},{"alt":null,"id":23896128749667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1fa9083d7fe1a5d3847d69e80ad2bc09b2363cd_a48e9b89-38aa-4835-8345-83c7b0be8596.webp?v=1714969447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1fa9083d7fe1a5d3847d69e80ad2bc09b2363cd_a48e9b89-38aa-4835-8345-83c7b0be8596.webp?v=1714969447","width":2000},{"alt":null,"id":23896129273955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328c47a77d263fa2f26593ad33af020b7edfdb77_fe71aac9-7732-42c3-ba21-dfb411fbf119.webp?v=1714969449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328c47a77d263fa2f26593ad33af020b7edfdb77_fe71aac9-7732-42c3-ba21-dfb411fbf119.webp?v=1714969449","width":2000},{"alt":null,"id":23896129765475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2d7141f9a4fa065428393003c3d7f6205ce7a8_628d55d4-82e2-441f-acda-b420c3c0ea38.webp?v=1714969452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b2d7141f9a4fa065428393003c3d7f6205ce7a8_628d55d4-82e2-441f-acda-b420c3c0ea38.webp?v=1714969452","width":2000},{"alt":null,"id":23896130584675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454","width":2000},{"alt":null,"id":23896131010659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a830bea8ad40edab6c27c34f66a3bbbc92eb2949_170bf807-6f42-4d1c-95cf-026cdbb21e41.webp?v=1714969457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a830bea8ad40edab6c27c34f66a3bbbc92eb2949_170bf807-6f42-4d1c-95cf-026cdbb21e41.webp?v=1714969457","width":2000},{"alt":null,"id":23896131633251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdc7fbb837a89a737ff365e1e8d411fd4a1fa8c2_c04409ce-230b-48cd-80ad-ea8d238897a5.webp?v=1714969460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdc7fbb837a89a737ff365e1e8d411fd4a1fa8c2_c04409ce-230b-48cd-80ad-ea8d238897a5.webp?v=1714969460","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915484962915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31490723774563,"product_id":7415914954851,"position":8,"created_at":"2024-05-06T12:24:14+08:00","updated_at":"2024-05-06T12:24:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454","variant_ids":[41915484962915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 經典Logo - 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":"NPB0108624-SB11","featured_media":{"alt":null,"id":23896130584675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915484962915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31490723774563,"product_id":7415914954851,"position":8,"created_at":"2024-05-06T12:24:14+08:00","updated_at":"2024-05-06T12:24:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454","variant_ids":[41915484962915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 經典Logo - 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":"NPB0108624-SB11","featured_media":{"alt":null,"id":23896130584675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101e193021a6700cecdd89e5e7e8218946edd155_d20067bc-b4cd-4a21-a25f-cf60a824f505.webp?v=1714969454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }