$product = {"id":7415055253603,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - yaya款","handle":"iphone-12-mini-mod-nx-magsafe-printable-iv09","description":null,"published_at":"2024-06-11T17:56:46+08:00","created_at":"2024-05-05T20:14:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41911394926691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31488034013283,"product_id":7415055253603,"position":3,"created_at":"2024-05-05T20:14:21+08:00","updated_at":"2024-05-05T20:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261","variant_ids":[41911394926691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - yaya款 - 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":"MPB0118424-IV09","featured_media":{"alt":null,"id":23893378334819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0513222513df176e6fd94f736272c3e9e92d5f3_92615d14-1b60-44fb-ad0a-de83453d8ccc.webp?v=1714911257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b9078cc46b03b22e8fb88484ee775b51961b4f6_06d0d9f9-2991-4008-ac85-74604b36bd7e.webp?v=1714911259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3104ab59ace3337b7ba59f4cd145bb7788e6ee10_f5302db7-61db-493b-b824-1c2edea2a4ed.webp?v=1714911264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab51e5ca343aea5568df3fcb1c4a1f75247fb431_1b2d9bab-ed47-4df4-ab4b-7cf6fecf6bb0.webp?v=1714911266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02728461b91125d0c3042210b68c9df740ffc18d_d29404dd-afc3-4d39-8d2c-36e75dd3cf15.webp?v=1714911268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4912891845156e57481df2140d4961e7d9e6845a_30a8f0db-d5c4-4379-8958-b98176788fc8.webp?v=1714911270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a9ad849d980d1d588cafa84c1bf6910d44577_46adf700-7fcb-4fbb-b6c0-614adaf847d6.webp?v=1714911273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eafa8053a87206e46e6959d8c8beb1c903c6d4ab_8051523d-2088-4827-906d-979129f7a0b3.webp?v=1714911275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d827f86ea0dcbc413b8152546f80ec367101b8_8b6f358f-cb01-4d92-8d6b-feacc4bfa39f.webp?v=1714911277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b95cb0ef883c3a9b878d0389284727c2eae2e8b_f9047136-8801-41ca-bd39-61f74f351cf3.webp?v=1714911280"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0513222513df176e6fd94f736272c3e9e92d5f3_92615d14-1b60-44fb-ad0a-de83453d8ccc.webp?v=1714911257","options":["color"],"media":[{"alt":null,"id":23893377482851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0513222513df176e6fd94f736272c3e9e92d5f3_92615d14-1b60-44fb-ad0a-de83453d8ccc.webp?v=1714911257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0513222513df176e6fd94f736272c3e9e92d5f3_92615d14-1b60-44fb-ad0a-de83453d8ccc.webp?v=1714911257","width":2000},{"alt":null,"id":23893378007139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b9078cc46b03b22e8fb88484ee775b51961b4f6_06d0d9f9-2991-4008-ac85-74604b36bd7e.webp?v=1714911259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b9078cc46b03b22e8fb88484ee775b51961b4f6_06d0d9f9-2991-4008-ac85-74604b36bd7e.webp?v=1714911259","width":2000},{"alt":null,"id":23893378334819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261","width":2000},{"alt":null,"id":23893379022947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3104ab59ace3337b7ba59f4cd145bb7788e6ee10_f5302db7-61db-493b-b824-1c2edea2a4ed.webp?v=1714911264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3104ab59ace3337b7ba59f4cd145bb7788e6ee10_f5302db7-61db-493b-b824-1c2edea2a4ed.webp?v=1714911264","width":2000},{"alt":null,"id":23893379317859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab51e5ca343aea5568df3fcb1c4a1f75247fb431_1b2d9bab-ed47-4df4-ab4b-7cf6fecf6bb0.webp?v=1714911266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab51e5ca343aea5568df3fcb1c4a1f75247fb431_1b2d9bab-ed47-4df4-ab4b-7cf6fecf6bb0.webp?v=1714911266","width":2000},{"alt":null,"id":23893380071523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02728461b91125d0c3042210b68c9df740ffc18d_d29404dd-afc3-4d39-8d2c-36e75dd3cf15.webp?v=1714911268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02728461b91125d0c3042210b68c9df740ffc18d_d29404dd-afc3-4d39-8d2c-36e75dd3cf15.webp?v=1714911268","width":2000},{"alt":null,"id":23893380890723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4912891845156e57481df2140d4961e7d9e6845a_30a8f0db-d5c4-4379-8958-b98176788fc8.webp?v=1714911270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4912891845156e57481df2140d4961e7d9e6845a_30a8f0db-d5c4-4379-8958-b98176788fc8.webp?v=1714911270","width":2000},{"alt":null,"id":23893381283939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a9ad849d980d1d588cafa84c1bf6910d44577_46adf700-7fcb-4fbb-b6c0-614adaf847d6.webp?v=1714911273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f36a9ad849d980d1d588cafa84c1bf6910d44577_46adf700-7fcb-4fbb-b6c0-614adaf847d6.webp?v=1714911273","width":2000},{"alt":null,"id":23893381709923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eafa8053a87206e46e6959d8c8beb1c903c6d4ab_8051523d-2088-4827-906d-979129f7a0b3.webp?v=1714911275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eafa8053a87206e46e6959d8c8beb1c903c6d4ab_8051523d-2088-4827-906d-979129f7a0b3.webp?v=1714911275","width":2000},{"alt":null,"id":23893382332515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d827f86ea0dcbc413b8152546f80ec367101b8_8b6f358f-cb01-4d92-8d6b-feacc4bfa39f.webp?v=1714911277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d827f86ea0dcbc413b8152546f80ec367101b8_8b6f358f-cb01-4d92-8d6b-feacc4bfa39f.webp?v=1714911277","width":2000},{"alt":null,"id":23893382889571,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b95cb0ef883c3a9b878d0389284727c2eae2e8b_f9047136-8801-41ca-bd39-61f74f351cf3.webp?v=1714911280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b95cb0ef883c3a9b878d0389284727c2eae2e8b_f9047136-8801-41ca-bd39-61f74f351cf3.webp?v=1714911280","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911394926691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31488034013283,"product_id":7415055253603,"position":3,"created_at":"2024-05-05T20:14:21+08:00","updated_at":"2024-05-05T20:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261","variant_ids":[41911394926691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - yaya款 - 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":"MPB0118424-IV09","featured_media":{"alt":null,"id":23893378334819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911394926691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31488034013283,"product_id":7415055253603,"position":3,"created_at":"2024-05-05T20:14:21+08:00","updated_at":"2024-05-05T20:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261","variant_ids":[41911394926691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 1G - yaya款 - 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":"MPB0118424-IV09","featured_media":{"alt":null,"id":23893378334819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eabdf48388a24949cd20c509b34bd0b773b7600_9498ef7e-7d23-451f-9856-bab7eb189422.webp?v=1714911261"}},"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: "停產" }