$product = {"id":7414971793507,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 哥譚市","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sb19","description":null,"published_at":"2024-06-11T17:54:30+08:00","created_at":"2024-05-05T19:58:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41910496657507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31487814074467,"product_id":7414971793507,"position":6,"created_at":"2024-05-05T19:58:35+08:00","updated_at":"2024-05-05T19:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315","variant_ids":[41910496657507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 哥譚市 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-SB19","featured_media":{"alt":null,"id":23893158035555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebb00e3465e675888b7f3ae8713a95f5cd39676_fdcce533-289f-4062-a415-1a67bc5cb6e6.webp?v=1714910303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9eb508513ce15e210cb3734e620f4662e31de8_0d54e713-ad3a-447f-9e0b-27713bba7bb9.webp?v=1714910306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86a3082154c21a2e7aeb7e392549fb22d066fa1f_a509fb98-a0a2-45de-a492-80fa50d8e35c.webp?v=1714910308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabc96ef3e09939e8c0d6a5f4b2f2f02231a6e5d_ca0f60d7-6ee6-4780-8667-44f0698475cd.webp?v=1714910310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83eacdaf7d0cf8753bbb39abc1efd825aefe1005_9ed37cbb-4b62-4b1f-aa17-3234c979f7aa.webp?v=1714910313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37f8199d788711c0c19150159ddb6ea58823949_1795b0b7-4604-4547-8fbb-fa8027e1b0fe.webp?v=1714910318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922248cd9397cd10b2ad8907ec69cff68354bbf9_808d8113-c0b5-48d2-83e7-456b4592d7df.webp?v=1714910320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac49927d1893dc95b4806e890c0fbf517340639e_8e71703e-37ed-45b6-97c1-81c732c30fc0.webp?v=1714910323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91f6f772058db4a03f7244b4e3998415cb0e2af_599b616d-7ec0-472f-a07f-7322337e879a.webp?v=1714910325"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebb00e3465e675888b7f3ae8713a95f5cd39676_fdcce533-289f-4062-a415-1a67bc5cb6e6.webp?v=1714910303","options":["color"],"media":[{"alt":null,"id":23893155577955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebb00e3465e675888b7f3ae8713a95f5cd39676_fdcce533-289f-4062-a415-1a67bc5cb6e6.webp?v=1714910303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebb00e3465e675888b7f3ae8713a95f5cd39676_fdcce533-289f-4062-a415-1a67bc5cb6e6.webp?v=1714910303","width":2000},{"alt":null,"id":23893156102243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9eb508513ce15e210cb3734e620f4662e31de8_0d54e713-ad3a-447f-9e0b-27713bba7bb9.webp?v=1714910306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9eb508513ce15e210cb3734e620f4662e31de8_0d54e713-ad3a-447f-9e0b-27713bba7bb9.webp?v=1714910306","width":2000},{"alt":null,"id":23893156757603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86a3082154c21a2e7aeb7e392549fb22d066fa1f_a509fb98-a0a2-45de-a492-80fa50d8e35c.webp?v=1714910308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86a3082154c21a2e7aeb7e392549fb22d066fa1f_a509fb98-a0a2-45de-a492-80fa50d8e35c.webp?v=1714910308","width":2000},{"alt":null,"id":23893157183587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabc96ef3e09939e8c0d6a5f4b2f2f02231a6e5d_ca0f60d7-6ee6-4780-8667-44f0698475cd.webp?v=1714910310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabc96ef3e09939e8c0d6a5f4b2f2f02231a6e5d_ca0f60d7-6ee6-4780-8667-44f0698475cd.webp?v=1714910310","width":2000},{"alt":null,"id":23893157675107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83eacdaf7d0cf8753bbb39abc1efd825aefe1005_9ed37cbb-4b62-4b1f-aa17-3234c979f7aa.webp?v=1714910313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83eacdaf7d0cf8753bbb39abc1efd825aefe1005_9ed37cbb-4b62-4b1f-aa17-3234c979f7aa.webp?v=1714910313","width":2000},{"alt":null,"id":23893158035555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315","width":2000},{"alt":null,"id":23893158756451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37f8199d788711c0c19150159ddb6ea58823949_1795b0b7-4604-4547-8fbb-fa8027e1b0fe.webp?v=1714910318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37f8199d788711c0c19150159ddb6ea58823949_1795b0b7-4604-4547-8fbb-fa8027e1b0fe.webp?v=1714910318","width":2000},{"alt":null,"id":23893159444579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922248cd9397cd10b2ad8907ec69cff68354bbf9_808d8113-c0b5-48d2-83e7-456b4592d7df.webp?v=1714910320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922248cd9397cd10b2ad8907ec69cff68354bbf9_808d8113-c0b5-48d2-83e7-456b4592d7df.webp?v=1714910320","width":2000},{"alt":null,"id":23893159870563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac49927d1893dc95b4806e890c0fbf517340639e_8e71703e-37ed-45b6-97c1-81c732c30fc0.webp?v=1714910323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac49927d1893dc95b4806e890c0fbf517340639e_8e71703e-37ed-45b6-97c1-81c732c30fc0.webp?v=1714910323","width":2000},{"alt":null,"id":23893160329315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91f6f772058db4a03f7244b4e3998415cb0e2af_599b616d-7ec0-472f-a07f-7322337e879a.webp?v=1714910325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91f6f772058db4a03f7244b4e3998415cb0e2af_599b616d-7ec0-472f-a07f-7322337e879a.webp?v=1714910325","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910496657507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31487814074467,"product_id":7414971793507,"position":6,"created_at":"2024-05-05T19:58:35+08:00","updated_at":"2024-05-05T19:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315","variant_ids":[41910496657507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 哥譚市 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-SB19","featured_media":{"alt":null,"id":23893158035555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910496657507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31487814074467,"product_id":7414971793507,"position":6,"created_at":"2024-05-05T19:58:35+08:00","updated_at":"2024-05-05T19:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315","variant_ids":[41910496657507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 哥譚市 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-SB19","featured_media":{"alt":null,"id":23893158035555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f358c3f0de4175db122cd44dd86ff3a3e736c5d5_b4621f5d-9fc5-4f16-bdbc-4228a77f64c8.webp?v=1714910315"}},"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: "停產" }