$product = {"id":7866455031907,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - No Reason - Subtle but bold","handle":"iphone-12-pro-max-mod-nx-printable-mj65","description":"","published_at":"2025-08-25T10:51:19+08:00","created_at":"2025-08-25T10:47:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-noreason","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-noreason","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":43621944819811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34573666123875,"product_id":7866455031907,"position":10,"created_at":"2025-10-13T11:56:17+08:00","updated_at":"2025-10-13T11:56:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777","variant_ids":[43621944819811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - No Reason - Subtle but bold - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-MJ65","featured_media":{"alt":null,"id":26143124389987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20c13a7ef936eff0a18ed0e040e36898dce5c1e7.webp?v=1756090059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/725cac86578628f215ecff5788b26e6deeb0e94e.webp?v=1756090060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29158ab8cc1a35b7829c8c0440db84655df984ee.webp?v=1756090060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb951f1c5f61472100835df2932eb66fdd955912.webp?v=1756090061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72dffaad13cc90aeecb87b7d71112a75fa95d361.webp?v=1756090062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96075603c6a5b0bee14ac8effb7eebfb07bf463b.webp?v=1756090062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f70663f9c886ec038f33f4011dc43c43352d7a6f.webp?v=1756090062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8e8da12490a7908af224a9232b2ae5dd9a2537.webp?v=1756090063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb84e44e73f2156698cdeb1bb5821f5ad2271e20.webp?v=1756090063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20c13a7ef936eff0a18ed0e040e36898dce5c1e7.webp?v=1756090059","options":["color"],"media":[{"alt":null,"id":25951067340899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20c13a7ef936eff0a18ed0e040e36898dce5c1e7.webp?v=1756090059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20c13a7ef936eff0a18ed0e040e36898dce5c1e7.webp?v=1756090059","width":2000},{"alt":null,"id":25951067504739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/725cac86578628f215ecff5788b26e6deeb0e94e.webp?v=1756090060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/725cac86578628f215ecff5788b26e6deeb0e94e.webp?v=1756090060","width":2000},{"alt":null,"id":25951067701347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29158ab8cc1a35b7829c8c0440db84655df984ee.webp?v=1756090060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29158ab8cc1a35b7829c8c0440db84655df984ee.webp?v=1756090060","width":2000},{"alt":null,"id":25951067832419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb951f1c5f61472100835df2932eb66fdd955912.webp?v=1756090061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb951f1c5f61472100835df2932eb66fdd955912.webp?v=1756090061","width":2000},{"alt":null,"id":25951068029027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72dffaad13cc90aeecb87b7d71112a75fa95d361.webp?v=1756090062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72dffaad13cc90aeecb87b7d71112a75fa95d361.webp?v=1756090062","width":2000},{"alt":null,"id":25951068192867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96075603c6a5b0bee14ac8effb7eebfb07bf463b.webp?v=1756090062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96075603c6a5b0bee14ac8effb7eebfb07bf463b.webp?v=1756090062","width":2000},{"alt":null,"id":25951068455011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f70663f9c886ec038f33f4011dc43c43352d7a6f.webp?v=1756090062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f70663f9c886ec038f33f4011dc43c43352d7a6f.webp?v=1756090062","width":2000},{"alt":null,"id":25951068586083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8e8da12490a7908af224a9232b2ae5dd9a2537.webp?v=1756090063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8e8da12490a7908af224a9232b2ae5dd9a2537.webp?v=1756090063","width":2000},{"alt":null,"id":25951068848227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb84e44e73f2156698cdeb1bb5821f5ad2271e20.webp?v=1756090063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb84e44e73f2156698cdeb1bb5821f5ad2271e20.webp?v=1756090063","width":2000},{"alt":null,"id":26143124389987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":43621944819811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34573666123875,"product_id":7866455031907,"position":10,"created_at":"2025-10-13T11:56:17+08:00","updated_at":"2025-10-13T11:56:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777","variant_ids":[43621944819811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - No Reason - Subtle but bold - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-MJ65","featured_media":{"alt":null,"id":26143124389987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43621944819811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-MJ65","requires_shipping":true,"taxable":true,"featured_image":{"id":34573666123875,"product_id":7866455031907,"position":10,"created_at":"2025-10-13T11:56:17+08:00","updated_at":"2025-10-13T11:56:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777","variant_ids":[43621944819811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - No Reason - Subtle but bold - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-MJ65","featured_media":{"alt":null,"id":26143124389987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c4d3fabc2dac0d26e00f44d436558e83e7a8d6_c88ad807-5b3e-491b-be7f-bb7cc4d300eb.webp?v=1760327777"}},"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: "停產" }