$product = {"id":6805136408675,"title":"犀牛盾Mod NX (MagSafe 兼容)防摔手機殼 - iPhone 12 mini","handle":"iphone-12-mini-mod-nx-magsafe","description":"\u003cp\u003e\u003cspan style=\"color: #2b00ff;\"\u003e\u003cstrong\u003e建議售價 $1,280\u003cbr\u003e\u003c\/strong\u003e\u003cstrong\u003e產品包含:手機殼外框 x 1、按鍵 x 3、背板(透明) x 1、飾條 x 1\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e適用iPhone MagSafe(不支援安卓系列)\u003c\/p\u003e\n\u003cp\u003e\u003cspan data-mce-fragment=\"1\"\u003e具高度變換性的三件式的手機殼,\u003c\/span\u003e\u003cbr data-mce-fragment=\"1\"\u003e\u003cspan data-mce-fragment=\"1\"\u003e除了按鈕、飾條可拆換、背板當然也可以自由配搭。\u003c\/span\u003e\u003c\/p\u003e\n\u003ch1\u003e\u003cspan style=\"color: #ff0000;\"\u003e\u003cstrong\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h1\u003e","published_at":"2022-08-19T18:35:38+08:00","created_at":"2022-08-09T18:10:38+08:00","vendor":"犀牛盾有限公司","type":"ModNX MagSafe","tags":["20%","2023-tagsAdd-reseller-PL","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","45degree","50%","brand-Apple","bumper-clearplate","device-iPhone 12 mini","discountable-item","dropdownDevice-Apple iPhone 12 mini","featured-product","member","quickbuy","refresh-2023","refresh-kelly-2025","reseller","reseller-asus","reseller-modnx-magsafe","reseller-modnx_magsafe","Top50"],"price":100000,"price_min":100000,"price_max":100000,"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":40133661130851,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"MPB0118424","requires_shipping":true,"taxable":true,"featured_image":{"id":29477006737507,"product_id":6805136408675,"position":4,"created_at":"2022-08-09T18:10:38+08:00","updated_at":"2022-08-09T18:10:38+08:00","alt":null,"width":1999,"height":1500,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838","variant_ids":[40133661130851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)防摔手機殼 - iPhone 12 mini - 黑色","public_title":"黑色","options":["黑色"],"price":100000,"weight":100,"compare_at_price":null,"inventory_quantity":-457,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":21822980784227,"position":4,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118404.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118409.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118414.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118457.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118469.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118415.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C0.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C1.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184J5.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C5.png?v=1660039838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12minip-12minic-12minib_04bfd92a-b0bd-48e0-ae07-80f6424b7134.png?v=1660039838"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118404.png?v=1660039838","options":["Color"],"media":[{"alt":null,"id":21822980685923,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118404.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118404.png?v=1660039838","width":1999},{"alt":null,"id":21822980718691,"position":2,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118409.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118409.png?v=1660039838","width":1999},{"alt":null,"id":21822980751459,"position":3,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118414.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118414.png?v=1660039838","width":1999},{"alt":null,"id":21822980784227,"position":4,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838","width":1999},{"alt":null,"id":21822980816995,"position":5,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118457.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118457.png?v=1660039838","width":1999},{"alt":null,"id":21822980849763,"position":6,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118469.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118469.png?v=1660039838","width":1999},{"alt":null,"id":21822980915299,"position":7,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118415.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118415.png?v=1660039838","width":1999},{"alt":null,"id":21822980948067,"position":8,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C0.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C0.png?v=1660039838","width":1999},{"alt":null,"id":21822980980835,"position":9,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C1.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C1.png?v=1660039838","width":1999},{"alt":null,"id":21822981013603,"position":10,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184J5.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184J5.png?v=1660039838","width":1999},{"alt":null,"id":21822981046371,"position":11,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C5.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB01184C5.png?v=1660039838","width":1999},{"alt":null,"id":21822981111907,"position":12,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12minip-12minic-12minib_04bfd92a-b0bd-48e0-ae07-80f6424b7134.png?v=1660039838"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/12minip-12minic-12minib_04bfd92a-b0bd-48e0-ae07-80f6424b7134.png?v=1660039838","width":1999}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cspan style=\"color: #2b00ff;\"\u003e\u003cstrong\u003e建議售價 $1,280\u003cbr\u003e\u003c\/strong\u003e\u003cstrong\u003e產品包含:手機殼外框 x 1、按鍵 x 3、背板(透明) x 1、飾條 x 1\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e適用iPhone MagSafe(不支援安卓系列)\u003c\/p\u003e\n\u003cp\u003e\u003cspan data-mce-fragment=\"1\"\u003e具高度變換性的三件式的手機殼,\u003c\/span\u003e\u003cbr data-mce-fragment=\"1\"\u003e\u003cspan data-mce-fragment=\"1\"\u003e除了按鈕、飾條可拆換、背板當然也可以自由配搭。\u003c\/span\u003e\u003c\/p\u003e\n\u003ch1\u003e\u003cspan style=\"color: #ff0000;\"\u003e\u003cstrong\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h1\u003e"}; $isMerge = null; $variants = [{"id":40133661130851,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"MPB0118424","requires_shipping":true,"taxable":true,"featured_image":{"id":29477006737507,"product_id":6805136408675,"position":4,"created_at":"2022-08-09T18:10:38+08:00","updated_at":"2022-08-09T18:10:38+08:00","alt":null,"width":1999,"height":1500,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838","variant_ids":[40133661130851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)防摔手機殼 - iPhone 12 mini - 黑色","public_title":"黑色","options":["黑色"],"price":100000,"weight":100,"compare_at_price":null,"inventory_quantity":-457,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":21822980784227,"position":4,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40133661130851,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"MPB0118424","requires_shipping":true,"taxable":true,"featured_image":{"id":29477006737507,"product_id":6805136408675,"position":4,"created_at":"2022-08-09T18:10:38+08:00","updated_at":"2022-08-09T18:10:38+08:00","alt":null,"width":1999,"height":1500,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838","variant_ids":[40133661130851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)防摔手機殼 - iPhone 12 mini - 黑色","public_title":"黑色","options":["黑色"],"price":100000,"weight":100,"compare_at_price":null,"inventory_quantity":-457,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":21822980784227,"position":4,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/minisite-MPB0118424.png?v=1660039838"}},"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: "停產" }