$product = {"id":7415043981411,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 【獨家設計款】 - 願傷疤開花(恆春)","handle":"iphone-12-mini-mod-nx-magsafe-printable-ae01","description":null,"published_at":"2024-06-11T17:56:27+08:00","created_at":"2024-05-05T20:12:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 12 mini","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":41911274635363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488011206755,"product_id":7415043981411,"position":7,"created_at":"2024-05-05T20:12:41+08:00","updated_at":"2024-05-05T20:12:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161","variant_ids":[41911274635363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0118424-AE01","featured_media":{"alt":null,"id":23893355561059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ecbdfce7d29c92a714897c9b74799a313642de_53c5aebe-19b7-436f-902e-c1893d2c0bd3.webp?v=1714911146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40f3754eddad811816c6f9909e351936aa3f466_cbfb0f04-2e60-4ef6-ba9e-d920b070a7ca.webp?v=1714911148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e52111842144c5bfe5f4a7cd885bffc9c612c2d_45d28e37-3b57-4f3b-931a-879c77dbdc75.webp?v=1714911151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d259f12dc8e694b48206af19ea284f3eddfb8a70_976b8fbd-5fc8-4ca2-8293-ca94d90d4971.webp?v=1714911153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c48ec6fc0821303f5f34d860e2b6e3840a6c25_347de1cd-e6e8-417e-8f38-a617ad0f32ce.webp?v=1714911155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0020f4b4e19c3546889661ccb92ef9d55510a5a3_b6d2e228-306d-4e61-825c-16e02bb8adfc.webp?v=1714911158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0fadcedbe86aba0dee06210ab91b51fcfd10ce9_35284e1d-2259-4c16-816c-711062387a71.webp?v=1714911163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0070eb6a340ae86d9980fb56cf9d5ae39db0902_816c45f1-2327-4817-8866-1fcc43e42ccd.webp?v=1714911165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0c3123c34e7a0872ef1e4dcddc161986bb82ce2_b0cf7e48-cc7a-446d-81e3-dc74ce3c80c5.webp?v=1714911168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec9319e1391117214c7721f37d037d4dd657a4_3f502eba-c34b-4f99-80b3-a6b817d98b7e.webp?v=1714911170"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ecbdfce7d29c92a714897c9b74799a313642de_53c5aebe-19b7-436f-902e-c1893d2c0bd3.webp?v=1714911146","options":["color"],"media":[{"alt":null,"id":23893352087651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ecbdfce7d29c92a714897c9b74799a313642de_53c5aebe-19b7-436f-902e-c1893d2c0bd3.webp?v=1714911146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ecbdfce7d29c92a714897c9b74799a313642de_53c5aebe-19b7-436f-902e-c1893d2c0bd3.webp?v=1714911146","width":2000},{"alt":null,"id":23893352448099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40f3754eddad811816c6f9909e351936aa3f466_cbfb0f04-2e60-4ef6-ba9e-d920b070a7ca.webp?v=1714911148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40f3754eddad811816c6f9909e351936aa3f466_cbfb0f04-2e60-4ef6-ba9e-d920b070a7ca.webp?v=1714911148","width":2000},{"alt":null,"id":23893353365603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e52111842144c5bfe5f4a7cd885bffc9c612c2d_45d28e37-3b57-4f3b-931a-879c77dbdc75.webp?v=1714911151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e52111842144c5bfe5f4a7cd885bffc9c612c2d_45d28e37-3b57-4f3b-931a-879c77dbdc75.webp?v=1714911151","width":2000},{"alt":null,"id":23893353988195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d259f12dc8e694b48206af19ea284f3eddfb8a70_976b8fbd-5fc8-4ca2-8293-ca94d90d4971.webp?v=1714911153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d259f12dc8e694b48206af19ea284f3eddfb8a70_976b8fbd-5fc8-4ca2-8293-ca94d90d4971.webp?v=1714911153","width":2000},{"alt":null,"id":23893354643555,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c48ec6fc0821303f5f34d860e2b6e3840a6c25_347de1cd-e6e8-417e-8f38-a617ad0f32ce.webp?v=1714911155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c48ec6fc0821303f5f34d860e2b6e3840a6c25_347de1cd-e6e8-417e-8f38-a617ad0f32ce.webp?v=1714911155","width":2000},{"alt":null,"id":23893355004003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0020f4b4e19c3546889661ccb92ef9d55510a5a3_b6d2e228-306d-4e61-825c-16e02bb8adfc.webp?v=1714911158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0020f4b4e19c3546889661ccb92ef9d55510a5a3_b6d2e228-306d-4e61-825c-16e02bb8adfc.webp?v=1714911158","width":2000},{"alt":null,"id":23893355561059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161","width":2000},{"alt":null,"id":23893356052579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0fadcedbe86aba0dee06210ab91b51fcfd10ce9_35284e1d-2259-4c16-816c-711062387a71.webp?v=1714911163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0fadcedbe86aba0dee06210ab91b51fcfd10ce9_35284e1d-2259-4c16-816c-711062387a71.webp?v=1714911163","width":2000},{"alt":null,"id":23893356511331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0070eb6a340ae86d9980fb56cf9d5ae39db0902_816c45f1-2327-4817-8866-1fcc43e42ccd.webp?v=1714911165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0070eb6a340ae86d9980fb56cf9d5ae39db0902_816c45f1-2327-4817-8866-1fcc43e42ccd.webp?v=1714911165","width":2000},{"alt":null,"id":23893357297763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0c3123c34e7a0872ef1e4dcddc161986bb82ce2_b0cf7e48-cc7a-446d-81e3-dc74ce3c80c5.webp?v=1714911168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0c3123c34e7a0872ef1e4dcddc161986bb82ce2_b0cf7e48-cc7a-446d-81e3-dc74ce3c80c5.webp?v=1714911168","width":2000},{"alt":null,"id":23893357658211,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec9319e1391117214c7721f37d037d4dd657a4_3f502eba-c34b-4f99-80b3-a6b817d98b7e.webp?v=1714911170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ec9319e1391117214c7721f37d037d4dd657a4_3f502eba-c34b-4f99-80b3-a6b817d98b7e.webp?v=1714911170","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911274635363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488011206755,"product_id":7415043981411,"position":7,"created_at":"2024-05-05T20:12:41+08:00","updated_at":"2024-05-05T20:12:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161","variant_ids":[41911274635363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0118424-AE01","featured_media":{"alt":null,"id":23893355561059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911274635363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488011206755,"product_id":7415043981411,"position":7,"created_at":"2024-05-05T20:12:41+08:00","updated_at":"2024-05-05T20:12:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161","variant_ids":[41911274635363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 【獨家設計款】 - 願傷疤開花(恆春) - 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":"MPB0118424-AE01","featured_media":{"alt":null,"id":23893355561059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56797789dddd8690d56f9f43abb58c65b5075258_4f928a06-bc24-4b1a-9c69-66c3b0ae8078.webp?v=1714911161"}},"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: "停產" }