$product = {"id":6902002352227,"title":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼","handle":"iphone-13-mini-solidsuit-magsafe-featured-product","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2023-03-21T09:11:45+08:00","created_at":"2023-03-21T09:11:59+08:00","vendor":"犀牛盾RHINOSHIELD","type":"SolidSuit MagSafe","tags":["20%","2023-tagsAdd-reseller-PL","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","45degree","50%","brand-Apple","device-iPhone 13 mini","discountable-item","dropdownCollection-SolidSuit","dropdownDevice-Apple iPhone 13 mini","featured-product","iPhone 13 mini","member","quickbuy","refresh-kelly-2025","reseller","reseller-asus","reseller-solidsuit-magsafe","reseller-solidsuit_magsafe","Top50","type-solidsuit-featured-product"],"price":118000,"price_min":118000,"price_max":118000,"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":40307747487843,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"MST0122852","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943407203,"product_id":6902002352227,"position":1,"created_at":"2023-03-21T09:11:59+08:00","updated_at":"2023-03-21T09:11:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119","variant_ids":[40307747487843]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 黑色","public_title":"黑色","options":["黑色"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-37,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109066","featured_media":{"alt":null,"id":22275164831843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40720673046627,"title":"貝殼灰","option1":"貝殼灰","option2":null,"option3":null,"sku":"MST012280B","requires_shipping":true,"taxable":true,"featured_image":{"id":30255769190499,"product_id":6902002352227,"position":8,"created_at":"2023-07-19T09:07:12+08:00","updated_at":"2023-07-19T09:07:12+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280B.png?v=1689728832","variant_ids":[40720673046627]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 貝殼灰","public_title":"貝殼灰","options":["貝殼灰"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123093","featured_media":{"alt":null,"id":22613465727075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280B.png?v=1689728832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40939408588899,"title":"鸚鵡綠","option1":"鸚鵡綠","option2":null,"option3":null,"sku":"MST012280E","requires_shipping":true,"taxable":true,"featured_image":{"id":30560332578915,"product_id":6902002352227,"position":12,"created_at":"2023-11-08T15:48:31+08:00","updated_at":"2023-11-08T15:48:31+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23fcf5e49b41fe8500cb5bb8ef6b6fe0f357ff.png?v=1699429711","variant_ids":[40939408588899]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 鸚鵡綠","public_title":"鸚鵡綠","options":["鸚鵡綠"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131371","featured_media":{"alt":null,"id":22923348279395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23fcf5e49b41fe8500cb5bb8ef6b6fe0f357ff.png?v=1699429711"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-magsafe-featured-product_White_391a5f93-a30f-448f-8f52-d3ca8d656649.png?v=1679361119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Blush_Pink.png?v=1679361119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Ash_Grey.png?v=1679361119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Cobalt_Blue.png?v=1679361119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Sage_Green.png?v=1679361119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280A.png?v=1689728830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280B.png?v=1689728832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z7.png?v=1689728834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z9.png?v=1689728836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39547b7917d41a5f06d4e4b497838b125b3a22e.png?v=1699429709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23fcf5e49b41fe8500cb5bb8ef6b6fe0f357ff.png?v=1699429711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5ca510e39c7f1aca7f6c4f90a96149ce8ae608.png?v=1699429714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/412dfc27aae1b807c6db694c7e00a1e548cb775c.png?v=1699429716"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119","options":["color"],"media":[{"alt":null,"id":22275164831843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119","width":2000},{"alt":null,"id":22275164864611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-magsafe-featured-product_White_391a5f93-a30f-448f-8f52-d3ca8d656649.png?v=1679361119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-magsafe-featured-product_White_391a5f93-a30f-448f-8f52-d3ca8d656649.png?v=1679361119","width":2000},{"alt":null,"id":22275164897379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Blush_Pink.png?v=1679361119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Blush_Pink.png?v=1679361119","width":2000},{"alt":null,"id":22275164930147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Ash_Grey.png?v=1679361119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Ash_Grey.png?v=1679361119","width":2000},{"alt":null,"id":22275164962915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Cobalt_Blue.png?v=1679361119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Cobalt_Blue.png?v=1679361119","width":2000},{"alt":null,"id":22275165028451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Sage_Green.png?v=1679361119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Sage_Green.png?v=1679361119","width":2000},{"alt":null,"id":22613465464931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280A.png?v=1689728830"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280A.png?v=1689728830","width":1000},{"alt":null,"id":22613465727075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280B.png?v=1689728832"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280B.png?v=1689728832","width":1000},{"alt":null,"id":22613465825379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z7.png?v=1689728834"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z7.png?v=1689728834","width":1000},{"alt":null,"id":22613465923683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z9.png?v=1689728836"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z9.png?v=1689728836","width":1000},{"alt":null,"id":22923348017251,"position":11,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39547b7917d41a5f06d4e4b497838b125b3a22e.png?v=1699429709"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39547b7917d41a5f06d4e4b497838b125b3a22e.png?v=1699429709","width":550},{"alt":null,"id":22923348279395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23fcf5e49b41fe8500cb5bb8ef6b6fe0f357ff.png?v=1699429711"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23fcf5e49b41fe8500cb5bb8ef6b6fe0f357ff.png?v=1699429711","width":550},{"alt":null,"id":22923348672611,"position":13,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5ca510e39c7f1aca7f6c4f90a96149ce8ae608.png?v=1699429714"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5ca510e39c7f1aca7f6c4f90a96149ce8ae608.png?v=1699429714","width":550},{"alt":null,"id":22923349295203,"position":14,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/412dfc27aae1b807c6db694c7e00a1e548cb775c.png?v=1699429716"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/412dfc27aae1b807c6db694c7e00a1e548cb775c.png?v=1699429716","width":550}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"}; $isMerge = null; $variants = [{"id":40307747487843,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"MST0122852","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943407203,"product_id":6902002352227,"position":1,"created_at":"2023-03-21T09:11:59+08:00","updated_at":"2023-03-21T09:11:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119","variant_ids":[40307747487843]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 黑色","public_title":"黑色","options":["黑色"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-37,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109066","featured_media":{"alt":null,"id":22275164831843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40720673046627,"title":"貝殼灰","option1":"貝殼灰","option2":null,"option3":null,"sku":"MST012280B","requires_shipping":true,"taxable":true,"featured_image":{"id":30255769190499,"product_id":6902002352227,"position":8,"created_at":"2023-07-19T09:07:12+08:00","updated_at":"2023-07-19T09:07:12+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280B.png?v=1689728832","variant_ids":[40720673046627]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 貝殼灰","public_title":"貝殼灰","options":["貝殼灰"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123093","featured_media":{"alt":null,"id":22613465727075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280B.png?v=1689728832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40939408588899,"title":"鸚鵡綠","option1":"鸚鵡綠","option2":null,"option3":null,"sku":"MST012280E","requires_shipping":true,"taxable":true,"featured_image":{"id":30560332578915,"product_id":6902002352227,"position":12,"created_at":"2023-11-08T15:48:31+08:00","updated_at":"2023-11-08T15:48:31+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23fcf5e49b41fe8500cb5bb8ef6b6fe0f357ff.png?v=1699429711","variant_ids":[40939408588899]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 鸚鵡綠","public_title":"鸚鵡綠","options":["鸚鵡綠"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131371","featured_media":{"alt":null,"id":22923348279395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23fcf5e49b41fe8500cb5bb8ef6b6fe0f357ff.png?v=1699429711"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":40307747487843,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"MST0122852","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943407203,"product_id":6902002352227,"position":1,"created_at":"2023-03-21T09:11:59+08:00","updated_at":"2023-03-21T09:11:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119","variant_ids":[40307747487843]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 黑色","public_title":"黑色","options":["黑色"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-37,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109066","featured_media":{"alt":null,"id":22275164831843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/iphone-13-mini-solidsuit-featured-product_Black.png?v=1679361119"}},"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: "停產" }