$product = {"id":7414584803427,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 火炎山","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-aa36","description":null,"published_at":"2024-06-11T17:52:20+08:00","created_at":"2024-05-05T14:32:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 13 Pro Max","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe","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":41907599212643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31485822632035,"product_id":7414584803427,"position":3,"created_at":"2024-05-05T14:32:43+08:00","updated_at":"2024-05-05T14:32:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763","variant_ids":[41907599212643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AA36","featured_media":{"alt":null,"id":23891157680227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907599704163,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31485820305507,"product_id":7414584803427,"position":2,"created_at":"2024-05-05T14:32:41+08:00","updated_at":"2024-05-05T14:32:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d93294c5a841091887d437213eec9a3fbe9db059_3f2c2ef2-1e3f-482c-8559-2b0e900d4549.webp?v=1714890761","variant_ids":[41907599704163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 火炎山 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AA36","featured_media":{"alt":null,"id":23891155255395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d93294c5a841091887d437213eec9a3fbe9db059_3f2c2ef2-1e3f-482c-8559-2b0e900d4549.webp?v=1714890761"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4db3744ec364f54c0bc5961076aab200cc13adab_7c7c9850-02b8-4a76-953c-cf9870504b62.webp?v=1714890758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d93294c5a841091887d437213eec9a3fbe9db059_3f2c2ef2-1e3f-482c-8559-2b0e900d4549.webp?v=1714890761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83350c3c32dc37e91a6b63719ecb6c42d104f2ec_ca3fef9f-b2ab-473a-8424-a1f3c5c04f83.webp?v=1714890766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8523bb0e64741322b739b86c00c9a01e84024c6_28afef40-9eba-48ec-9a18-3ad3206f1bfe.webp?v=1714890768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c343db1665cb54e6f06163f0dcf02bbab2d832_8d7baed4-9c1b-424a-8bc2-134c8dae9fa7.webp?v=1714890771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27d7bcb222934e643a322cac6b4924e00fc82a4_0e9d2bc7-733c-4eb3-b12c-bc149c581e71.webp?v=1714890773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59a88144250c4a9d363c5e6c1c6b42444bb290bb_0605390f-4da2-4f30-8981-f6e22404ff66.webp?v=1714890776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ce1dfcf327c73d0e9cfc5a986e46f931911460c_f6f6abaf-b236-4257-ab42-21c95344f80e.webp?v=1714890778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0dd64c4433b2236a2f845586dd27b01a907138_af3aae34-65e1-44d3-9d66-11a27e203a26.webp?v=1714890780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8ba59bd4aaae4d9f36c0650232cdb36c7da298_b0a47694-7c17-40c4-b0e7-83bdea62bdb0.webp?v=1714890783"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4db3744ec364f54c0bc5961076aab200cc13adab_7c7c9850-02b8-4a76-953c-cf9870504b62.webp?v=1714890758","options":["color"],"media":[{"alt":null,"id":23891152666723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4db3744ec364f54c0bc5961076aab200cc13adab_7c7c9850-02b8-4a76-953c-cf9870504b62.webp?v=1714890758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4db3744ec364f54c0bc5961076aab200cc13adab_7c7c9850-02b8-4a76-953c-cf9870504b62.webp?v=1714890758","width":2000},{"alt":null,"id":23891155255395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d93294c5a841091887d437213eec9a3fbe9db059_3f2c2ef2-1e3f-482c-8559-2b0e900d4549.webp?v=1714890761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d93294c5a841091887d437213eec9a3fbe9db059_3f2c2ef2-1e3f-482c-8559-2b0e900d4549.webp?v=1714890761","width":2000},{"alt":null,"id":23891157680227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763","width":2000},{"alt":null,"id":23891159744611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83350c3c32dc37e91a6b63719ecb6c42d104f2ec_ca3fef9f-b2ab-473a-8424-a1f3c5c04f83.webp?v=1714890766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83350c3c32dc37e91a6b63719ecb6c42d104f2ec_ca3fef9f-b2ab-473a-8424-a1f3c5c04f83.webp?v=1714890766","width":2000},{"alt":null,"id":23891161940067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8523bb0e64741322b739b86c00c9a01e84024c6_28afef40-9eba-48ec-9a18-3ad3206f1bfe.webp?v=1714890768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8523bb0e64741322b739b86c00c9a01e84024c6_28afef40-9eba-48ec-9a18-3ad3206f1bfe.webp?v=1714890768","width":2000},{"alt":null,"id":23891164266595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c343db1665cb54e6f06163f0dcf02bbab2d832_8d7baed4-9c1b-424a-8bc2-134c8dae9fa7.webp?v=1714890771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c343db1665cb54e6f06163f0dcf02bbab2d832_8d7baed4-9c1b-424a-8bc2-134c8dae9fa7.webp?v=1714890771","width":2000},{"alt":null,"id":23891166625891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27d7bcb222934e643a322cac6b4924e00fc82a4_0e9d2bc7-733c-4eb3-b12c-bc149c581e71.webp?v=1714890773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27d7bcb222934e643a322cac6b4924e00fc82a4_0e9d2bc7-733c-4eb3-b12c-bc149c581e71.webp?v=1714890773","width":2000},{"alt":null,"id":23891168755811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59a88144250c4a9d363c5e6c1c6b42444bb290bb_0605390f-4da2-4f30-8981-f6e22404ff66.webp?v=1714890776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59a88144250c4a9d363c5e6c1c6b42444bb290bb_0605390f-4da2-4f30-8981-f6e22404ff66.webp?v=1714890776","width":2000},{"alt":null,"id":23891170689123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ce1dfcf327c73d0e9cfc5a986e46f931911460c_f6f6abaf-b236-4257-ab42-21c95344f80e.webp?v=1714890778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ce1dfcf327c73d0e9cfc5a986e46f931911460c_f6f6abaf-b236-4257-ab42-21c95344f80e.webp?v=1714890778","width":2000},{"alt":null,"id":23891172556899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0dd64c4433b2236a2f845586dd27b01a907138_af3aae34-65e1-44d3-9d66-11a27e203a26.webp?v=1714890780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0dd64c4433b2236a2f845586dd27b01a907138_af3aae34-65e1-44d3-9d66-11a27e203a26.webp?v=1714890780","width":2000},{"alt":null,"id":23891173834851,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8ba59bd4aaae4d9f36c0650232cdb36c7da298_b0a47694-7c17-40c4-b0e7-83bdea62bdb0.webp?v=1714890783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8ba59bd4aaae4d9f36c0650232cdb36c7da298_b0a47694-7c17-40c4-b0e7-83bdea62bdb0.webp?v=1714890783","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907599212643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31485822632035,"product_id":7414584803427,"position":3,"created_at":"2024-05-05T14:32:43+08:00","updated_at":"2024-05-05T14:32:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763","variant_ids":[41907599212643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AA36","featured_media":{"alt":null,"id":23891157680227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907599704163,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31485820305507,"product_id":7414584803427,"position":2,"created_at":"2024-05-05T14:32:41+08:00","updated_at":"2024-05-05T14:32:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d93294c5a841091887d437213eec9a3fbe9db059_3f2c2ef2-1e3f-482c-8559-2b0e900d4549.webp?v=1714890761","variant_ids":[41907599704163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 火炎山 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AA36","featured_media":{"alt":null,"id":23891155255395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d93294c5a841091887d437213eec9a3fbe9db059_3f2c2ef2-1e3f-482c-8559-2b0e900d4549.webp?v=1714890761"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907599212643,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31485822632035,"product_id":7414584803427,"position":3,"created_at":"2024-05-05T14:32:43+08:00","updated_at":"2024-05-05T14:32:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763","variant_ids":[41907599212643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AA36","featured_media":{"alt":null,"id":23891157680227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e78395f24ac2464c4619feea54e36d9978ac048_23d3249b-d7fa-4d39-95ac-efd38c2e5bba.webp?v=1714890763"}},"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: "停產" }