$product = {"id":7414972907619,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 【獨家設計款】 - 來自空中的情書(底片版)","handle":"iphone-12-mini-mod-nx-magsafe-printable-ae05","description":null,"published_at":"2024-06-11T17:54:32+08:00","created_at":"2024-05-05T19:58:32+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":41910508519523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487814631523,"product_id":7414972907619,"position":2,"created_at":"2024-05-05T19:58:37+08:00","updated_at":"2024-05-05T19:58:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317","variant_ids":[41910508519523]},"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-AE05","featured_media":{"alt":null,"id":23893158658147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1621b60888830c6566f9d6ce5ff4ed5d854d6f61_c9cca459-30bf-4d38-90d2-3456d3d8ca76.webp?v=1714910315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2e4946928964ba562bd61db0b3b17a228c8a49_f5a3eeb2-3649-440f-8871-721523def734.webp?v=1714910320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1361bb3a8e8d0c2e0ba41cd65eba6ab41be1558d_3900efdd-4dfb-42ea-8d2b-20d3bc5f7c82.webp?v=1714910322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af04e7950096816a65fae8b24ec7ae76ab02ebb_c5c3ff05-244a-43d6-adf1-0f9283883261.webp?v=1714910324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd408ce935be0c971ed68033df5f44d03a24102f_cfe99890-0b2e-48fd-b3a7-7da7a10668cd.webp?v=1714910327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57deaf97460baee1889e773db0425bbf05e121f3_20cd4721-6cc8-499e-ac1f-297f0f5dc2b8.webp?v=1714910330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9f7ca31f89f437a2bbf49247f3ff18eb13cca7_dd94a618-029d-47b7-bdf5-72870536137b.webp?v=1714910332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb8061a0f0550be99e4afe546fc131cb52451c6d_7781b39e-c1b9-4440-8b7e-76b256d6ed12.webp?v=1714910335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faacfdcca4c74f880f0af0e6efab33247e35be96_90a24db5-16ef-4bec-9b9b-c0bc1bfe2fe1.webp?v=1714910337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff883f75adf85856f0ffe56435b22c0272a954e_f94d98b6-7544-40ee-a9a5-2b5b0358502a.webp?v=1714910340"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1621b60888830c6566f9d6ce5ff4ed5d854d6f61_c9cca459-30bf-4d38-90d2-3456d3d8ca76.webp?v=1714910315","options":["color"],"media":[{"alt":null,"id":23893158002787,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1621b60888830c6566f9d6ce5ff4ed5d854d6f61_c9cca459-30bf-4d38-90d2-3456d3d8ca76.webp?v=1714910315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1621b60888830c6566f9d6ce5ff4ed5d854d6f61_c9cca459-30bf-4d38-90d2-3456d3d8ca76.webp?v=1714910315","width":2000},{"alt":null,"id":23893158658147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317","width":2000},{"alt":null,"id":23893159247971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2e4946928964ba562bd61db0b3b17a228c8a49_f5a3eeb2-3649-440f-8871-721523def734.webp?v=1714910320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2e4946928964ba562bd61db0b3b17a228c8a49_f5a3eeb2-3649-440f-8871-721523def734.webp?v=1714910320","width":2000},{"alt":null,"id":23893159706723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1361bb3a8e8d0c2e0ba41cd65eba6ab41be1558d_3900efdd-4dfb-42ea-8d2b-20d3bc5f7c82.webp?v=1714910322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1361bb3a8e8d0c2e0ba41cd65eba6ab41be1558d_3900efdd-4dfb-42ea-8d2b-20d3bc5f7c82.webp?v=1714910322","width":2000},{"alt":null,"id":23893160198243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af04e7950096816a65fae8b24ec7ae76ab02ebb_c5c3ff05-244a-43d6-adf1-0f9283883261.webp?v=1714910324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af04e7950096816a65fae8b24ec7ae76ab02ebb_c5c3ff05-244a-43d6-adf1-0f9283883261.webp?v=1714910324","width":2000},{"alt":null,"id":23893160820835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd408ce935be0c971ed68033df5f44d03a24102f_cfe99890-0b2e-48fd-b3a7-7da7a10668cd.webp?v=1714910327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd408ce935be0c971ed68033df5f44d03a24102f_cfe99890-0b2e-48fd-b3a7-7da7a10668cd.webp?v=1714910327","width":2000},{"alt":null,"id":23893161312355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57deaf97460baee1889e773db0425bbf05e121f3_20cd4721-6cc8-499e-ac1f-297f0f5dc2b8.webp?v=1714910330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57deaf97460baee1889e773db0425bbf05e121f3_20cd4721-6cc8-499e-ac1f-297f0f5dc2b8.webp?v=1714910330","width":2000},{"alt":null,"id":23893162000483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9f7ca31f89f437a2bbf49247f3ff18eb13cca7_dd94a618-029d-47b7-bdf5-72870536137b.webp?v=1714910332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9f7ca31f89f437a2bbf49247f3ff18eb13cca7_dd94a618-029d-47b7-bdf5-72870536137b.webp?v=1714910332","width":2000},{"alt":null,"id":23893162721379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb8061a0f0550be99e4afe546fc131cb52451c6d_7781b39e-c1b9-4440-8b7e-76b256d6ed12.webp?v=1714910335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb8061a0f0550be99e4afe546fc131cb52451c6d_7781b39e-c1b9-4440-8b7e-76b256d6ed12.webp?v=1714910335","width":2000},{"alt":null,"id":23893163114595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faacfdcca4c74f880f0af0e6efab33247e35be96_90a24db5-16ef-4bec-9b9b-c0bc1bfe2fe1.webp?v=1714910337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faacfdcca4c74f880f0af0e6efab33247e35be96_90a24db5-16ef-4bec-9b9b-c0bc1bfe2fe1.webp?v=1714910337","width":2000},{"alt":null,"id":23893163737187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff883f75adf85856f0ffe56435b22c0272a954e_f94d98b6-7544-40ee-a9a5-2b5b0358502a.webp?v=1714910340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff883f75adf85856f0ffe56435b22c0272a954e_f94d98b6-7544-40ee-a9a5-2b5b0358502a.webp?v=1714910340","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910508519523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487814631523,"product_id":7414972907619,"position":2,"created_at":"2024-05-05T19:58:37+08:00","updated_at":"2024-05-05T19:58:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317","variant_ids":[41910508519523]},"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-AE05","featured_media":{"alt":null,"id":23893158658147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910508519523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31487814631523,"product_id":7414972907619,"position":2,"created_at":"2024-05-05T19:58:37+08:00","updated_at":"2024-05-05T19:58:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317","variant_ids":[41910508519523]},"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-AE05","featured_media":{"alt":null,"id":23893158658147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba1ecf82047f1198dca4d51cad08592cbf8cc28_a5281c4c-2543-4a02-a2ed-9d9d52d619a4.webp?v=1714910317"}},"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: "停產" }