$product = {"id":7414988800099,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-12-mini-mod-nx-magsafe-printable-ae06","description":null,"published_at":"2024-06-11T17:54:58+08:00","created_at":"2024-05-05T20:01:43+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":41910680780899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487861981283,"product_id":7414988800099,"position":5,"created_at":"2024-05-05T20:01:55+08:00","updated_at":"2024-05-05T20:01:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515","variant_ids":[41910680780899]},"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-AE06","featured_media":{"alt":null,"id":23893206007907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a944711a3eaa594f0d697050dca16d07f10adf2_204bc449-7fb2-4e37-a075-23c8d1ad19ab.webp?v=1714910506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f3553d76344bfa5c82b80252a434e88940612cb_ee02ede5-db0a-494f-989a-3f79f33b98aa.webp?v=1714910508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ab851dcf38cf903fc49e73047ff960269db5ca_087133a4-1cdf-4314-833a-3993ff8dab31.webp?v=1714910511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1d29977056aea0cce3958f89548566dad1bc99_79cc7d84-af54-4b15-94ed-8336522c7e86.webp?v=1714910513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3a746b131de4fc999af46aa1e88ef58f76a4b5_3728903d-bd41-4fe4-8d0a-03e71f06a768.webp?v=1714910518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24f6061527812525b59307c3008675fb27e5bf3_e964ca0c-0873-479c-a270-52b238f2be49.webp?v=1714910521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3c3819d30396fe3f8713ee165549a059edd5db_f0badecd-89e5-4280-9450-724882915ff2.webp?v=1714910523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7797fb02d046eafb184af4713e76b7f53d598a14_2e180aa5-3b11-42b8-ad3d-5de111f7b5a0.webp?v=1714910526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed509ee369cba12843388c14c8e317099fb9d261_cfb5d352-84ba-4180-a3ed-d9a1c197d37a.webp?v=1714910528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51830c3f11520a07bede52e2be38d27755d506c_127f01c7-37ec-43b8-95d4-aeffda709d0a.webp?v=1714910530"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a944711a3eaa594f0d697050dca16d07f10adf2_204bc449-7fb2-4e37-a075-23c8d1ad19ab.webp?v=1714910506","options":["color"],"media":[{"alt":null,"id":23893203976291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a944711a3eaa594f0d697050dca16d07f10adf2_204bc449-7fb2-4e37-a075-23c8d1ad19ab.webp?v=1714910506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a944711a3eaa594f0d697050dca16d07f10adf2_204bc449-7fb2-4e37-a075-23c8d1ad19ab.webp?v=1714910506","width":2000},{"alt":null,"id":23893204467811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f3553d76344bfa5c82b80252a434e88940612cb_ee02ede5-db0a-494f-989a-3f79f33b98aa.webp?v=1714910508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f3553d76344bfa5c82b80252a434e88940612cb_ee02ede5-db0a-494f-989a-3f79f33b98aa.webp?v=1714910508","width":2000},{"alt":null,"id":23893205123171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ab851dcf38cf903fc49e73047ff960269db5ca_087133a4-1cdf-4314-833a-3993ff8dab31.webp?v=1714910511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ab851dcf38cf903fc49e73047ff960269db5ca_087133a4-1cdf-4314-833a-3993ff8dab31.webp?v=1714910511","width":2000},{"alt":null,"id":23893205647459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1d29977056aea0cce3958f89548566dad1bc99_79cc7d84-af54-4b15-94ed-8336522c7e86.webp?v=1714910513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e1d29977056aea0cce3958f89548566dad1bc99_79cc7d84-af54-4b15-94ed-8336522c7e86.webp?v=1714910513","width":2000},{"alt":null,"id":23893206007907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515","width":2000},{"alt":null,"id":23893206597731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3a746b131de4fc999af46aa1e88ef58f76a4b5_3728903d-bd41-4fe4-8d0a-03e71f06a768.webp?v=1714910518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3a746b131de4fc999af46aa1e88ef58f76a4b5_3728903d-bd41-4fe4-8d0a-03e71f06a768.webp?v=1714910518","width":2000},{"alt":null,"id":23893206990947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24f6061527812525b59307c3008675fb27e5bf3_e964ca0c-0873-479c-a270-52b238f2be49.webp?v=1714910521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24f6061527812525b59307c3008675fb27e5bf3_e964ca0c-0873-479c-a270-52b238f2be49.webp?v=1714910521","width":2000},{"alt":null,"id":23893207744611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3c3819d30396fe3f8713ee165549a059edd5db_f0badecd-89e5-4280-9450-724882915ff2.webp?v=1714910523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3c3819d30396fe3f8713ee165549a059edd5db_f0badecd-89e5-4280-9450-724882915ff2.webp?v=1714910523","width":2000},{"alt":null,"id":23893208137827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7797fb02d046eafb184af4713e76b7f53d598a14_2e180aa5-3b11-42b8-ad3d-5de111f7b5a0.webp?v=1714910526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7797fb02d046eafb184af4713e76b7f53d598a14_2e180aa5-3b11-42b8-ad3d-5de111f7b5a0.webp?v=1714910526","width":2000},{"alt":null,"id":23893208989795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed509ee369cba12843388c14c8e317099fb9d261_cfb5d352-84ba-4180-a3ed-d9a1c197d37a.webp?v=1714910528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed509ee369cba12843388c14c8e317099fb9d261_cfb5d352-84ba-4180-a3ed-d9a1c197d37a.webp?v=1714910528","width":2000},{"alt":null,"id":23893209284707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51830c3f11520a07bede52e2be38d27755d506c_127f01c7-37ec-43b8-95d4-aeffda709d0a.webp?v=1714910530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f51830c3f11520a07bede52e2be38d27755d506c_127f01c7-37ec-43b8-95d4-aeffda709d0a.webp?v=1714910530","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910680780899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487861981283,"product_id":7414988800099,"position":5,"created_at":"2024-05-05T20:01:55+08:00","updated_at":"2024-05-05T20:01:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515","variant_ids":[41910680780899]},"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-AE06","featured_media":{"alt":null,"id":23893206007907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910680780899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487861981283,"product_id":7414988800099,"position":5,"created_at":"2024-05-05T20:01:55+08:00","updated_at":"2024-05-05T20:01:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515","variant_ids":[41910680780899]},"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-AE06","featured_media":{"alt":null,"id":23893206007907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85651ea33ae7844f549b012ea237dd88112adf76_b4b314cd-5346-4724-89c8-f0f31f5f7e4f.webp?v=1714910515"}},"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: "停產" }