$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","iPhone 13 mini","member","quickbuy","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":-19,"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":40307747520611,"title":"白色","option1":"白色","option2":null,"option3":null,"sku":"MST0122853","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943439971,"product_id":6902002352227,"position":2,"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-magsafe-featured-product_White_391a5f93-a30f-448f-8f52-d3ca8d656649.png?v=1679361119","variant_ids":[40307747520611]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 白色","public_title":"白色","options":["白色"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-6,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109073","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40307747553379,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"MST0122857","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943472739,"product_id":6902002352227,"position":3,"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_Blush_Pink.png?v=1679361119","variant_ids":[40307747553379]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-5,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109080","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40307747618915,"title":"鈷藍","option1":"鈷藍","option2":null,"option3":null,"sku":"MST01228O9","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943538275,"product_id":6902002352227,"position":5,"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_Cobalt_Blue.png?v=1679361119","variant_ids":[40307747618915]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 鈷藍","public_title":"鈷藍","options":["鈷藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-2,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109103","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40307747684451,"title":"鼠尾草綠","option1":"鼠尾草綠","option2":null,"option3":null,"sku":"MST01228P2","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943603811,"product_id":6902002352227,"position":6,"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_Sage_Green.png?v=1679361119","variant_ids":[40307747684451]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 鼠尾草綠","public_title":"鼠尾草綠","options":["鼠尾草綠"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-4,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109134","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555426218083,"title":"冰河藍","option1":"冰河藍","option2":null,"option3":null,"sku":"MST01228Z7","requires_shipping":true,"taxable":true,"featured_image":{"id":30255769288803,"product_id":6902002352227,"position":9,"created_at":"2023-07-19T09:07:14+08:00","updated_at":"2023-07-19T09:07:14+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z7.png?v=1689728834","variant_ids":[40555426218083]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 冰河藍","public_title":"冰河藍","options":["冰河藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999998,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123055","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555426283619,"title":"海潮藍","option1":"海潮藍","option2":null,"option3":null,"sku":"MST01228Z9","requires_shipping":true,"taxable":true,"featured_image":{"id":30255769387107,"product_id":6902002352227,"position":10,"created_at":"2023-07-19T09:07:16+08:00","updated_at":"2023-07-19T09:07:16+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z9.png?v=1689728836","variant_ids":[40555426283619]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 海潮藍","public_title":"海潮藍","options":["海潮藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999998,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123079","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555426316387,"title":"深海藍","option1":"深海藍","option2":null,"option3":null,"sku":"MST012280A","requires_shipping":true,"taxable":true,"featured_image":{"id":30255768961123,"product_id":6902002352227,"position":7,"created_at":"2023-07-19T09:07:10+08:00","updated_at":"2023-07-19T09:07:10+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280A.png?v=1689728830","variant_ids":[40555426316387]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 深海藍","public_title":"深海藍","options":["深海藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999996,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123086","featured_media":{"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"}},"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":999999991,"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":40939408490595,"title":"酒紅","option1":"酒紅","option2":null,"option3":null,"sku":"MST012280D","requires_shipping":true,"taxable":true,"featured_image":{"id":30560333594723,"product_id":6902002352227,"position":14,"created_at":"2023-11-08T15:48:36+08:00","updated_at":"2023-11-08T15:48:36+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/412dfc27aae1b807c6db694c7e00a1e548cb775c.png?v=1699429716","variant_ids":[40939408490595]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 酒紅","public_title":"酒紅","options":["酒紅"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999998,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131364","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40939408523363,"title":"螢光橘","option1":"螢光橘","option2":null,"option3":null,"sku":"MST012280F","requires_shipping":true,"taxable":true,"featured_image":{"id":30560332972131,"product_id":6902002352227,"position":13,"created_at":"2023-11-08T15:48:34+08:00","updated_at":"2023-11-08T15:48:34+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5ca510e39c7f1aca7f6c4f90a96149ce8ae608.png?v=1699429714","variant_ids":[40939408523363]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 螢光橘","public_title":"螢光橘","options":["螢光橘"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999999,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131388","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40939408556131,"title":"經典藍","option1":"經典藍","option2":null,"option3":null,"sku":"MST012280C","requires_shipping":true,"taxable":true,"featured_image":{"id":30560332316771,"product_id":6902002352227,"position":11,"created_at":"2023-11-08T15:48:29+08:00","updated_at":"2023-11-08T15:48:29+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39547b7917d41a5f06d4e4b497838b125b3a22e.png?v=1699429709","variant_ids":[40939408556131]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 經典藍","public_title":"經典藍","options":["經典藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999999,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131357","featured_media":{"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"}},"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":999999999,"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"}; $bumper = 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":-19,"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":40307747520611,"title":"白色","option1":"白色","option2":null,"option3":null,"sku":"MST0122853","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943439971,"product_id":6902002352227,"position":2,"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-magsafe-featured-product_White_391a5f93-a30f-448f-8f52-d3ca8d656649.png?v=1679361119","variant_ids":[40307747520611]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 白色","public_title":"白色","options":["白色"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-6,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109073","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40307747553379,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"MST0122857","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943472739,"product_id":6902002352227,"position":3,"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_Blush_Pink.png?v=1679361119","variant_ids":[40307747553379]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-5,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109080","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40307747618915,"title":"鈷藍","option1":"鈷藍","option2":null,"option3":null,"sku":"MST01228O9","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943538275,"product_id":6902002352227,"position":5,"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_Cobalt_Blue.png?v=1679361119","variant_ids":[40307747618915]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 鈷藍","public_title":"鈷藍","options":["鈷藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-2,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109103","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40307747684451,"title":"鼠尾草綠","option1":"鼠尾草綠","option2":null,"option3":null,"sku":"MST01228P2","requires_shipping":true,"taxable":true,"featured_image":{"id":29920943603811,"product_id":6902002352227,"position":6,"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_Sage_Green.png?v=1679361119","variant_ids":[40307747684451]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 鼠尾草綠","public_title":"鼠尾草綠","options":["鼠尾草綠"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":-4,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366109134","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555426218083,"title":"冰河藍","option1":"冰河藍","option2":null,"option3":null,"sku":"MST01228Z7","requires_shipping":true,"taxable":true,"featured_image":{"id":30255769288803,"product_id":6902002352227,"position":9,"created_at":"2023-07-19T09:07:14+08:00","updated_at":"2023-07-19T09:07:14+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z7.png?v=1689728834","variant_ids":[40555426218083]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 冰河藍","public_title":"冰河藍","options":["冰河藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999998,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123055","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555426283619,"title":"海潮藍","option1":"海潮藍","option2":null,"option3":null,"sku":"MST01228Z9","requires_shipping":true,"taxable":true,"featured_image":{"id":30255769387107,"product_id":6902002352227,"position":10,"created_at":"2023-07-19T09:07:16+08:00","updated_at":"2023-07-19T09:07:16+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST01228Z9.png?v=1689728836","variant_ids":[40555426283619]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 海潮藍","public_title":"海潮藍","options":["海潮藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999998,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123079","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555426316387,"title":"深海藍","option1":"深海藍","option2":null,"option3":null,"sku":"MST012280A","requires_shipping":true,"taxable":true,"featured_image":{"id":30255768961123,"product_id":6902002352227,"position":7,"created_at":"2023-07-19T09:07:10+08:00","updated_at":"2023-07-19T09:07:10+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/MST012280A.png?v=1689728830","variant_ids":[40555426316387]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 深海藍","public_title":"深海藍","options":["深海藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999996,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366123086","featured_media":{"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"}},"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":999999991,"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":40939408490595,"title":"酒紅","option1":"酒紅","option2":null,"option3":null,"sku":"MST012280D","requires_shipping":true,"taxable":true,"featured_image":{"id":30560333594723,"product_id":6902002352227,"position":14,"created_at":"2023-11-08T15:48:36+08:00","updated_at":"2023-11-08T15:48:36+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/412dfc27aae1b807c6db694c7e00a1e548cb775c.png?v=1699429716","variant_ids":[40939408490595]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 酒紅","public_title":"酒紅","options":["酒紅"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999998,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131364","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40939408523363,"title":"螢光橘","option1":"螢光橘","option2":null,"option3":null,"sku":"MST012280F","requires_shipping":true,"taxable":true,"featured_image":{"id":30560332972131,"product_id":6902002352227,"position":13,"created_at":"2023-11-08T15:48:34+08:00","updated_at":"2023-11-08T15:48:34+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5ca510e39c7f1aca7f6c4f90a96149ce8ae608.png?v=1699429714","variant_ids":[40939408523363]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 螢光橘","public_title":"螢光橘","options":["螢光橘"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999999,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131388","featured_media":{"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"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40939408556131,"title":"經典藍","option1":"經典藍","option2":null,"option3":null,"sku":"MST012280C","requires_shipping":true,"taxable":true,"featured_image":{"id":30560332316771,"product_id":6902002352227,"position":11,"created_at":"2023-11-08T15:48:29+08:00","updated_at":"2023-11-08T15:48:29+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39547b7917d41a5f06d4e4b497838b125b3a22e.png?v=1699429709","variant_ids":[40939408556131]},"available":true,"name":"iPhone 13 mini - 犀牛盾SolidSuit (MagSafe 兼容) 防摔背蓋手機殼 - 經典藍","public_title":"經典藍","options":["經典藍"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":999999999,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131357","featured_media":{"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"}},"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":999999999,"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":-19,"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}}; var sellingStatus; $device_handle = null if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages([productImg, bumperColors[currentVariant]],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages([bumperColors[currentVariant], productImg],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); }; var storedData = sessionStorage.getItem('sellingStatusData'); try { sellingStatusData = JSON.parse(storedData) } catch (error) { console.error('JSON.parse Error', error) sellingStatusData = null } $(document).ready(function() { handleSellingStatus($defaultVariant.sku, sellingStatusData); }); function handleSellingStatus(currentSku, sellingStatusData) { const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const matchSellingStatusProduct = sellingStatusData.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, sellingStatusData) }); });
// 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: "停產" }