$product = {"id":7414435709027,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 兔子電腦","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-mw06","description":null,"published_at":"2024-06-11T17:51:18+08:00","created_at":"2024-05-05T14:25:26+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-chi-po-lin-series","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":41906479824995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485446226019,"product_id":7414435709027,"position":1,"created_at":"2024-05-05T14:25:28+08:00","updated_at":"2024-05-05T14:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328","variant_ids":[41906479824995]},"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-MW06","featured_media":{"alt":null,"id":23890763513955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906480119907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485465428067,"product_id":7414435709027,"position":7,"created_at":"2024-05-05T14:25:42+08:00","updated_at":"2024-05-05T14:25:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daeee9dfebd65d7271a8f35a4018eee6351be6fc_d2319348-0889-4823-8e98-720a9dfef32b.webp?v=1714890342","variant_ids":[41906480119907]},"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-MW06","featured_media":{"alt":null,"id":23890782814307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daeee9dfebd65d7271a8f35a4018eee6351be6fc_d2319348-0889-4823-8e98-720a9dfef32b.webp?v=1714890342"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b6b5156769fab8a8690d3e9419d9dee7a8dc7a_b60406a6-791f-4ecf-acd5-2b5b916920d0.webp?v=1714890330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ed92b06b2df050d0794211ee479d33465e9e23_436578c2-bc82-4ad6-bfbe-1a4815bf399a.webp?v=1714890332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc10885e78ad77f80f41d56e788aac871cf23ddb_fa383c18-eb64-4ba8-86ea-a147a9bd5945.webp?v=1714890335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85614227a08e3d6c5c50648344a4568a7a31d43_a5334485-d8fc-4773-9df8-2675f42d1d90.webp?v=1714890337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fde80109a9f71798e94a94938946f217d2b2c4e_055ff3b7-7203-4a71-af1b-c868f820c5a9.webp?v=1714890339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daeee9dfebd65d7271a8f35a4018eee6351be6fc_d2319348-0889-4823-8e98-720a9dfef32b.webp?v=1714890342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f2ac9a06b122ec73c400623a14555ad5cad5598_81c251de-9db1-4937-813e-94388c6d0b90.webp?v=1714890344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5181b21839f49bb2cf73eef5be7013b3d37a981d_98af3a24-1fc0-4e6f-a0c5-8944da2f72e2.webp?v=1714890346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380aea02b6848d5ec931a8cb773bb95a62188cdb_e154e3b4-db9b-4e54-8b5d-b8f5763fc895.webp?v=1714890348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b6bef24906d7825e11114d9b37434324e3c96e_68da5646-7a30-4840-a265-e4a8e761b097.webp?v=1714890351"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328","options":["color"],"media":[{"alt":null,"id":23890763513955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328","width":2000},{"alt":null,"id":23890766856291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b6b5156769fab8a8690d3e9419d9dee7a8dc7a_b60406a6-791f-4ecf-acd5-2b5b916920d0.webp?v=1714890330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b6b5156769fab8a8690d3e9419d9dee7a8dc7a_b60406a6-791f-4ecf-acd5-2b5b916920d0.webp?v=1714890330","width":2000},{"alt":null,"id":23890770100323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ed92b06b2df050d0794211ee479d33465e9e23_436578c2-bc82-4ad6-bfbe-1a4815bf399a.webp?v=1714890332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ed92b06b2df050d0794211ee479d33465e9e23_436578c2-bc82-4ad6-bfbe-1a4815bf399a.webp?v=1714890332","width":2000},{"alt":null,"id":23890773344355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc10885e78ad77f80f41d56e788aac871cf23ddb_fa383c18-eb64-4ba8-86ea-a147a9bd5945.webp?v=1714890335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc10885e78ad77f80f41d56e788aac871cf23ddb_fa383c18-eb64-4ba8-86ea-a147a9bd5945.webp?v=1714890335","width":2000},{"alt":null,"id":23890776359011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85614227a08e3d6c5c50648344a4568a7a31d43_a5334485-d8fc-4773-9df8-2675f42d1d90.webp?v=1714890337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85614227a08e3d6c5c50648344a4568a7a31d43_a5334485-d8fc-4773-9df8-2675f42d1d90.webp?v=1714890337","width":2000},{"alt":null,"id":23890779603043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fde80109a9f71798e94a94938946f217d2b2c4e_055ff3b7-7203-4a71-af1b-c868f820c5a9.webp?v=1714890339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fde80109a9f71798e94a94938946f217d2b2c4e_055ff3b7-7203-4a71-af1b-c868f820c5a9.webp?v=1714890339","width":2000},{"alt":null,"id":23890782814307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daeee9dfebd65d7271a8f35a4018eee6351be6fc_d2319348-0889-4823-8e98-720a9dfef32b.webp?v=1714890342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daeee9dfebd65d7271a8f35a4018eee6351be6fc_d2319348-0889-4823-8e98-720a9dfef32b.webp?v=1714890342","width":2000},{"alt":null,"id":23890785534051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f2ac9a06b122ec73c400623a14555ad5cad5598_81c251de-9db1-4937-813e-94388c6d0b90.webp?v=1714890344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f2ac9a06b122ec73c400623a14555ad5cad5598_81c251de-9db1-4937-813e-94388c6d0b90.webp?v=1714890344","width":2000},{"alt":null,"id":23890788679779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5181b21839f49bb2cf73eef5be7013b3d37a981d_98af3a24-1fc0-4e6f-a0c5-8944da2f72e2.webp?v=1714890346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5181b21839f49bb2cf73eef5be7013b3d37a981d_98af3a24-1fc0-4e6f-a0c5-8944da2f72e2.webp?v=1714890346","width":2000},{"alt":null,"id":23890791694435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380aea02b6848d5ec931a8cb773bb95a62188cdb_e154e3b4-db9b-4e54-8b5d-b8f5763fc895.webp?v=1714890348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380aea02b6848d5ec931a8cb773bb95a62188cdb_e154e3b4-db9b-4e54-8b5d-b8f5763fc895.webp?v=1714890348","width":2000},{"alt":null,"id":23890794578019,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b6bef24906d7825e11114d9b37434324e3c96e_68da5646-7a30-4840-a265-e4a8e761b097.webp?v=1714890351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b6bef24906d7825e11114d9b37434324e3c96e_68da5646-7a30-4840-a265-e4a8e761b097.webp?v=1714890351","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906479824995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485446226019,"product_id":7414435709027,"position":1,"created_at":"2024-05-05T14:25:28+08:00","updated_at":"2024-05-05T14:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328","variant_ids":[41906479824995]},"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-MW06","featured_media":{"alt":null,"id":23890763513955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906480119907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485465428067,"product_id":7414435709027,"position":7,"created_at":"2024-05-05T14:25:42+08:00","updated_at":"2024-05-05T14:25:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daeee9dfebd65d7271a8f35a4018eee6351be6fc_d2319348-0889-4823-8e98-720a9dfef32b.webp?v=1714890342","variant_ids":[41906480119907]},"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-MW06","featured_media":{"alt":null,"id":23890782814307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daeee9dfebd65d7271a8f35a4018eee6351be6fc_d2319348-0889-4823-8e98-720a9dfef32b.webp?v=1714890342"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906479824995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485446226019,"product_id":7414435709027,"position":1,"created_at":"2024-05-05T14:25:28+08:00","updated_at":"2024-05-05T14:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328","variant_ids":[41906479824995]},"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-MW06","featured_media":{"alt":null,"id":23890763513955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d8110db5ca8a4f24a227bc8d4f47c69dc596099_edd3eec2-25ae-4c8c-8079-497cb6c6eb76.webp?v=1714890328"}},"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: "停產" }