$product = {"id":7414445965411,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 超級可愛大王","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-eo01","description":null,"published_at":"2024-06-11T17:51:20+08:00","created_at":"2024-05-05T14:25:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-weiweiboy","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":41906558337123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485507567715,"product_id":7414445965411,"position":11,"created_at":"2024-05-05T14:26:17+08:00","updated_at":"2024-05-05T14:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377","variant_ids":[41906558337123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 超級可愛大王 - 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-EO01","featured_media":{"alt":null,"id":23890823970915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906558894179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485484859491,"product_id":7414445965411,"position":3,"created_at":"2024-05-05T14:25:56+08:00","updated_at":"2024-05-05T14:25:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfaafe0b4a17db69e7471b564a2501baf15575f_be115fec-6515-485a-8845-e93a5149b515.webp?v=1714890356","variant_ids":[41906558894179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 超級可愛大王 - 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-EO01","featured_media":{"alt":null,"id":23890802016355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfaafe0b4a17db69e7471b564a2501baf15575f_be115fec-6515-485a-8845-e93a5149b515.webp?v=1714890356"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1f9cdbfc90b413090d25495a7f261e4cb2de6ff_c3747c32-314f-4ce3-a9c8-b9645ac9b378.webp?v=1714890351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b0956d12209b8610a35601876c87c547db95e8_23e8b1c0-f812-4cb2-af45-cd797bb2753d.webp?v=1714890354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfaafe0b4a17db69e7471b564a2501baf15575f_be115fec-6515-485a-8845-e93a5149b515.webp?v=1714890356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e9a7f01ecf82360017e6b77429b86dd18f3302_24f60a5f-0b89-4082-b5ab-d99b1a2a5569.webp?v=1714890359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ae584b90d7b7fe0e4c7387669cfe81d18bd6f8_5f7fe6f5-6175-4e9b-b2c5-5fd72eae27aa.webp?v=1714890361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3665d807e7b11089b0147667758f45fca7baa721_72b3e0d2-787c-49d5-b009-74fd39b7ec1e.webp?v=1714890364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb82c385f31653b2415527af6d8288bd30ac04b_c4c8bb8f-eb7f-480c-a31a-449f3660b983.webp?v=1714890367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff12c965621d887592b144ef2cf9202c33a231b_a787cb2c-7ae0-4562-b114-0fdb768544c8.webp?v=1714890369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41db295dcd429bc3f96765d02225e08f640add03_03b3ebb9-e984-40bc-9226-17d8a0ffff3f.webp?v=1714890372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc048394466a71a94971a56ccfa67d9256920b3f_e92583c3-47e9-4edb-9c57-4276e8452c6f.webp?v=1714890375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1f9cdbfc90b413090d25495a7f261e4cb2de6ff_c3747c32-314f-4ce3-a9c8-b9645ac9b378.webp?v=1714890351","options":["color"],"media":[{"alt":null,"id":23890795593827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1f9cdbfc90b413090d25495a7f261e4cb2de6ff_c3747c32-314f-4ce3-a9c8-b9645ac9b378.webp?v=1714890351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1f9cdbfc90b413090d25495a7f261e4cb2de6ff_c3747c32-314f-4ce3-a9c8-b9645ac9b378.webp?v=1714890351","width":2000},{"alt":null,"id":23890799034467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b0956d12209b8610a35601876c87c547db95e8_23e8b1c0-f812-4cb2-af45-cd797bb2753d.webp?v=1714890354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b0956d12209b8610a35601876c87c547db95e8_23e8b1c0-f812-4cb2-af45-cd797bb2753d.webp?v=1714890354","width":2000},{"alt":null,"id":23890802016355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfaafe0b4a17db69e7471b564a2501baf15575f_be115fec-6515-485a-8845-e93a5149b515.webp?v=1714890356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfaafe0b4a17db69e7471b564a2501baf15575f_be115fec-6515-485a-8845-e93a5149b515.webp?v=1714890356","width":2000},{"alt":null,"id":23890804899939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e9a7f01ecf82360017e6b77429b86dd18f3302_24f60a5f-0b89-4082-b5ab-d99b1a2a5569.webp?v=1714890359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43e9a7f01ecf82360017e6b77429b86dd18f3302_24f60a5f-0b89-4082-b5ab-d99b1a2a5569.webp?v=1714890359","width":2000},{"alt":null,"id":23890807717987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ae584b90d7b7fe0e4c7387669cfe81d18bd6f8_5f7fe6f5-6175-4e9b-b2c5-5fd72eae27aa.webp?v=1714890361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ae584b90d7b7fe0e4c7387669cfe81d18bd6f8_5f7fe6f5-6175-4e9b-b2c5-5fd72eae27aa.webp?v=1714890361","width":2000},{"alt":null,"id":23890810667107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3665d807e7b11089b0147667758f45fca7baa721_72b3e0d2-787c-49d5-b009-74fd39b7ec1e.webp?v=1714890364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3665d807e7b11089b0147667758f45fca7baa721_72b3e0d2-787c-49d5-b009-74fd39b7ec1e.webp?v=1714890364","width":2000},{"alt":null,"id":23890813976675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb82c385f31653b2415527af6d8288bd30ac04b_c4c8bb8f-eb7f-480c-a31a-449f3660b983.webp?v=1714890367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb82c385f31653b2415527af6d8288bd30ac04b_c4c8bb8f-eb7f-480c-a31a-449f3660b983.webp?v=1714890367","width":2000},{"alt":null,"id":23890816663651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff12c965621d887592b144ef2cf9202c33a231b_a787cb2c-7ae0-4562-b114-0fdb768544c8.webp?v=1714890369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff12c965621d887592b144ef2cf9202c33a231b_a787cb2c-7ae0-4562-b114-0fdb768544c8.webp?v=1714890369","width":2000},{"alt":null,"id":23890818957411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41db295dcd429bc3f96765d02225e08f640add03_03b3ebb9-e984-40bc-9226-17d8a0ffff3f.webp?v=1714890372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41db295dcd429bc3f96765d02225e08f640add03_03b3ebb9-e984-40bc-9226-17d8a0ffff3f.webp?v=1714890372","width":2000},{"alt":null,"id":23890821546083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc048394466a71a94971a56ccfa67d9256920b3f_e92583c3-47e9-4edb-9c57-4276e8452c6f.webp?v=1714890375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc048394466a71a94971a56ccfa67d9256920b3f_e92583c3-47e9-4edb-9c57-4276e8452c6f.webp?v=1714890375","width":2000},{"alt":null,"id":23890823970915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906558337123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485507567715,"product_id":7414445965411,"position":11,"created_at":"2024-05-05T14:26:17+08:00","updated_at":"2024-05-05T14:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377","variant_ids":[41906558337123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 超級可愛大王 - 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-EO01","featured_media":{"alt":null,"id":23890823970915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906558894179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485484859491,"product_id":7414445965411,"position":3,"created_at":"2024-05-05T14:25:56+08:00","updated_at":"2024-05-05T14:25:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfaafe0b4a17db69e7471b564a2501baf15575f_be115fec-6515-485a-8845-e93a5149b515.webp?v=1714890356","variant_ids":[41906558894179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 超級可愛大王 - 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-EO01","featured_media":{"alt":null,"id":23890802016355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfaafe0b4a17db69e7471b564a2501baf15575f_be115fec-6515-485a-8845-e93a5149b515.webp?v=1714890356"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906558337123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485507567715,"product_id":7414445965411,"position":11,"created_at":"2024-05-05T14:26:17+08:00","updated_at":"2024-05-05T14:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377","variant_ids":[41906558337123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 超級可愛大王 - 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-EO01","featured_media":{"alt":null,"id":23890823970915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/952600b05c3e3ce97c0fc977435ddffaf12de576_5e90ea7a-c5d2-4d08-9570-d02c34137114.webp?v=1714890377"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(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: "停產" }