$product = {"id":7125843443811,"title":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園","handle":"iphone-12-pro-solidsuit-classic-magsafe-yb13","description":null,"published_at":"2023-12-22T09:55:25+08:00","created_at":"2023-12-20T15:28:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-Care Bears","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro","merge","reseller-solidsuit-magsafe-carebears","Top50","type-Solidsuit MagSafe"],"price":125000,"price_min":125000,"price_max":125000,"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":41081408553059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118552-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706696945763,"product_id":7125843443811,"position":12,"created_at":"2023-12-20T15:29:06+08:00","updated_at":"2023-12-20T15:29:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346","variant_ids":[41081408553059]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118552-YB13","featured_media":{"alt":null,"id":23074506866787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408585827,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MST0118553-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706697601123,"product_id":7125843443811,"position":13,"created_at":"2023-12-20T15:29:09+08:00","updated_at":"2023-12-20T15:29:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0828464bae7f31b6e3a68638a4d8180e9533b948.webp?v=1703057349","variant_ids":[41081408585827]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - White","public_title":"White","options":["White"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118553-YB13","featured_media":{"alt":null,"id":23074507522147,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0828464bae7f31b6e3a68638a4d8180e9533b948.webp?v=1703057349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408618595,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MST0118557-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706692194403,"product_id":7125843443811,"position":4,"created_at":"2023-12-20T15:28:44+08:00","updated_at":"2023-12-20T15:28:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae7188088decf725459e498a85f370e77197cfa.webp?v=1703057324","variant_ids":[41081408618595]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118557-YB13","featured_media":{"alt":null,"id":23074502115427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae7188088decf725459e498a85f370e77197cfa.webp?v=1703057324"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408651363,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MST01185O8-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706695536739,"product_id":7125843443811,"position":9,"created_at":"2023-12-20T15:28:59+08:00","updated_at":"2023-12-20T15:28:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558b4f09da41257fc4acd2af47ee1aa00e647ff8.webp?v=1703057339","variant_ids":[41081408651363]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185O8-YB13","featured_media":{"alt":null,"id":23074505457763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558b4f09da41257fc4acd2af47ee1aa00e647ff8.webp?v=1703057339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408749667,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"MST01185P2-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706695012451,"product_id":7125843443811,"position":8,"created_at":"2023-12-20T15:28:56+08:00","updated_at":"2023-12-20T15:28:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448b84fa574806a4342ef289236a0f9d72988209.webp?v=1703057336","variant_ids":[41081408749667]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185P2-YB13","featured_media":{"alt":null,"id":23074504933475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448b84fa574806a4342ef289236a0f9d72988209.webp?v=1703057336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408782435,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MST01185Z7-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706693374051,"product_id":7125843443811,"position":5,"created_at":"2023-12-20T15:28:49+08:00","updated_at":"2023-12-20T15:28:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7d127880901aaa4d153e42569de7d4915b59d7.webp?v=1703057329","variant_ids":[41081408782435]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185Z7-YB13","featured_media":{"alt":null,"id":23074503295075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7d127880901aaa4d153e42569de7d4915b59d7.webp?v=1703057329"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408815203,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01185Z8-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706694455395,"product_id":7125843443811,"position":7,"created_at":"2023-12-20T15:28:54+08:00","updated_at":"2023-12-20T15:28:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b759dc6af229adc1c207a73aab64214cb6ec50f.webp?v=1703057334","variant_ids":[41081408815203]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185Z8-YB13","featured_media":{"alt":null,"id":23074504376419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b759dc6af229adc1c207a73aab64214cb6ec50f.webp?v=1703057334"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408880739,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01185Z9-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706698125411,"product_id":7125843443811,"position":14,"created_at":"2023-12-20T15:29:12+08:00","updated_at":"2023-12-20T15:29:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cff1e3d07a5ec1d679aa7545cdf672b4df9be2.webp?v=1703057352","variant_ids":[41081408880739]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185Z9-YB13","featured_media":{"alt":null,"id":23074508046435,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cff1e3d07a5ec1d679aa7545cdf672b4df9be2.webp?v=1703057352"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408946275,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011850A-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706691637347,"product_id":7125843443811,"position":3,"created_at":"2023-12-20T15:28:41+08:00","updated_at":"2023-12-20T15:28:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fbd745221e2aa5faecbf6dc3336258f073d373.webp?v=1703057321","variant_ids":[41081408946275]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850A-YB13","featured_media":{"alt":null,"id":23074501558371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fbd745221e2aa5faecbf6dc3336258f073d373.webp?v=1703057321"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081409011811,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011850B-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706693898339,"product_id":7125843443811,"position":6,"created_at":"2023-12-20T15:28:51+08:00","updated_at":"2023-12-20T15:28:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c96cf6c2744cd8e1490bd42ab07a21c76e8eb90.webp?v=1703057331","variant_ids":[41081409011811]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850B-YB13","featured_media":{"alt":null,"id":23074503819363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c96cf6c2744cd8e1490bd42ab07a21c76e8eb90.webp?v=1703057331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081409077347,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011850D-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706691145827,"product_id":7125843443811,"position":2,"created_at":"2023-12-20T15:28:39+08:00","updated_at":"2023-12-20T15:28:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/661b38641750ee627fc63693154a8007e8129470.webp?v=1703057319","variant_ids":[41081409077347]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850D-YB13","featured_media":{"alt":null,"id":23074501066851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/661b38641750ee627fc63693154a8007e8129470.webp?v=1703057319"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081409241187,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011850E-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706696519779,"product_id":7125843443811,"position":11,"created_at":"2023-12-20T15:29:04+08:00","updated_at":"2023-12-20T15:29:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b4edf05510a8e3c0155f0958e097d3c97ebe2af.webp?v=1703057344","variant_ids":[41081409241187]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850E-YB13","featured_media":{"alt":null,"id":23074506440803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b4edf05510a8e3c0155f0958e097d3c97ebe2af.webp?v=1703057344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b21ec349599c1bced5c1ecd3050e1d01ee50b3.webp?v=1703057316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/661b38641750ee627fc63693154a8007e8129470.webp?v=1703057319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fbd745221e2aa5faecbf6dc3336258f073d373.webp?v=1703057321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae7188088decf725459e498a85f370e77197cfa.webp?v=1703057324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7d127880901aaa4d153e42569de7d4915b59d7.webp?v=1703057329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c96cf6c2744cd8e1490bd42ab07a21c76e8eb90.webp?v=1703057331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b759dc6af229adc1c207a73aab64214cb6ec50f.webp?v=1703057334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448b84fa574806a4342ef289236a0f9d72988209.webp?v=1703057336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558b4f09da41257fc4acd2af47ee1aa00e647ff8.webp?v=1703057339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3041a2a5fa4f1f6b8944a73325c393ca97dd8e8.webp?v=1703057341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b4edf05510a8e3c0155f0958e097d3c97ebe2af.webp?v=1703057344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0828464bae7f31b6e3a68638a4d8180e9533b948.webp?v=1703057349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cff1e3d07a5ec1d679aa7545cdf672b4df9be2.webp?v=1703057352"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b21ec349599c1bced5c1ecd3050e1d01ee50b3.webp?v=1703057316","options":["color"],"media":[{"alt":null,"id":23074500477027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b21ec349599c1bced5c1ecd3050e1d01ee50b3.webp?v=1703057316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6b21ec349599c1bced5c1ecd3050e1d01ee50b3.webp?v=1703057316","width":2000},{"alt":null,"id":23074501066851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/661b38641750ee627fc63693154a8007e8129470.webp?v=1703057319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/661b38641750ee627fc63693154a8007e8129470.webp?v=1703057319","width":2000},{"alt":null,"id":23074501558371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fbd745221e2aa5faecbf6dc3336258f073d373.webp?v=1703057321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fbd745221e2aa5faecbf6dc3336258f073d373.webp?v=1703057321","width":2000},{"alt":null,"id":23074502115427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae7188088decf725459e498a85f370e77197cfa.webp?v=1703057324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae7188088decf725459e498a85f370e77197cfa.webp?v=1703057324","width":2000},{"alt":null,"id":23074503295075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7d127880901aaa4d153e42569de7d4915b59d7.webp?v=1703057329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7d127880901aaa4d153e42569de7d4915b59d7.webp?v=1703057329","width":2000},{"alt":null,"id":23074503819363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c96cf6c2744cd8e1490bd42ab07a21c76e8eb90.webp?v=1703057331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c96cf6c2744cd8e1490bd42ab07a21c76e8eb90.webp?v=1703057331","width":2000},{"alt":null,"id":23074504376419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b759dc6af229adc1c207a73aab64214cb6ec50f.webp?v=1703057334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b759dc6af229adc1c207a73aab64214cb6ec50f.webp?v=1703057334","width":2000},{"alt":null,"id":23074504933475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448b84fa574806a4342ef289236a0f9d72988209.webp?v=1703057336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448b84fa574806a4342ef289236a0f9d72988209.webp?v=1703057336","width":2000},{"alt":null,"id":23074505457763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558b4f09da41257fc4acd2af47ee1aa00e647ff8.webp?v=1703057339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558b4f09da41257fc4acd2af47ee1aa00e647ff8.webp?v=1703057339","width":2000},{"alt":null,"id":23074505949283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3041a2a5fa4f1f6b8944a73325c393ca97dd8e8.webp?v=1703057341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3041a2a5fa4f1f6b8944a73325c393ca97dd8e8.webp?v=1703057341","width":2000},{"alt":null,"id":23074506440803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b4edf05510a8e3c0155f0958e097d3c97ebe2af.webp?v=1703057344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b4edf05510a8e3c0155f0958e097d3c97ebe2af.webp?v=1703057344","width":2000},{"alt":null,"id":23074506866787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346","width":2000},{"alt":null,"id":23074507522147,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0828464bae7f31b6e3a68638a4d8180e9533b948.webp?v=1703057349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0828464bae7f31b6e3a68638a4d8180e9533b948.webp?v=1703057349","width":2000},{"alt":null,"id":23074508046435,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cff1e3d07a5ec1d679aa7545cdf672b4df9be2.webp?v=1703057352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cff1e3d07a5ec1d679aa7545cdf672b4df9be2.webp?v=1703057352","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41081408553059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118552-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706696945763,"product_id":7125843443811,"position":12,"created_at":"2023-12-20T15:29:06+08:00","updated_at":"2023-12-20T15:29:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346","variant_ids":[41081408553059]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118552-YB13","featured_media":{"alt":null,"id":23074506866787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408585827,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MST0118553-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706697601123,"product_id":7125843443811,"position":13,"created_at":"2023-12-20T15:29:09+08:00","updated_at":"2023-12-20T15:29:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0828464bae7f31b6e3a68638a4d8180e9533b948.webp?v=1703057349","variant_ids":[41081408585827]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - White","public_title":"White","options":["White"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118553-YB13","featured_media":{"alt":null,"id":23074507522147,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0828464bae7f31b6e3a68638a4d8180e9533b948.webp?v=1703057349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408618595,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MST0118557-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706692194403,"product_id":7125843443811,"position":4,"created_at":"2023-12-20T15:28:44+08:00","updated_at":"2023-12-20T15:28:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae7188088decf725459e498a85f370e77197cfa.webp?v=1703057324","variant_ids":[41081408618595]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118557-YB13","featured_media":{"alt":null,"id":23074502115427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ae7188088decf725459e498a85f370e77197cfa.webp?v=1703057324"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408651363,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MST01185O8-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706695536739,"product_id":7125843443811,"position":9,"created_at":"2023-12-20T15:28:59+08:00","updated_at":"2023-12-20T15:28:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558b4f09da41257fc4acd2af47ee1aa00e647ff8.webp?v=1703057339","variant_ids":[41081408651363]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185O8-YB13","featured_media":{"alt":null,"id":23074505457763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558b4f09da41257fc4acd2af47ee1aa00e647ff8.webp?v=1703057339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408749667,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"MST01185P2-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706695012451,"product_id":7125843443811,"position":8,"created_at":"2023-12-20T15:28:56+08:00","updated_at":"2023-12-20T15:28:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448b84fa574806a4342ef289236a0f9d72988209.webp?v=1703057336","variant_ids":[41081408749667]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185P2-YB13","featured_media":{"alt":null,"id":23074504933475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448b84fa574806a4342ef289236a0f9d72988209.webp?v=1703057336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408782435,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MST01185Z7-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706693374051,"product_id":7125843443811,"position":5,"created_at":"2023-12-20T15:28:49+08:00","updated_at":"2023-12-20T15:28:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7d127880901aaa4d153e42569de7d4915b59d7.webp?v=1703057329","variant_ids":[41081408782435]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185Z7-YB13","featured_media":{"alt":null,"id":23074503295075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7d127880901aaa4d153e42569de7d4915b59d7.webp?v=1703057329"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408815203,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01185Z8-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706694455395,"product_id":7125843443811,"position":7,"created_at":"2023-12-20T15:28:54+08:00","updated_at":"2023-12-20T15:28:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b759dc6af229adc1c207a73aab64214cb6ec50f.webp?v=1703057334","variant_ids":[41081408815203]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185Z8-YB13","featured_media":{"alt":null,"id":23074504376419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b759dc6af229adc1c207a73aab64214cb6ec50f.webp?v=1703057334"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408880739,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01185Z9-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706698125411,"product_id":7125843443811,"position":14,"created_at":"2023-12-20T15:29:12+08:00","updated_at":"2023-12-20T15:29:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cff1e3d07a5ec1d679aa7545cdf672b4df9be2.webp?v=1703057352","variant_ids":[41081408880739]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01185Z9-YB13","featured_media":{"alt":null,"id":23074508046435,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cff1e3d07a5ec1d679aa7545cdf672b4df9be2.webp?v=1703057352"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081408946275,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011850A-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706691637347,"product_id":7125843443811,"position":3,"created_at":"2023-12-20T15:28:41+08:00","updated_at":"2023-12-20T15:28:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fbd745221e2aa5faecbf6dc3336258f073d373.webp?v=1703057321","variant_ids":[41081408946275]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850A-YB13","featured_media":{"alt":null,"id":23074501558371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3fbd745221e2aa5faecbf6dc3336258f073d373.webp?v=1703057321"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081409011811,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST011850B-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706693898339,"product_id":7125843443811,"position":6,"created_at":"2023-12-20T15:28:51+08:00","updated_at":"2023-12-20T15:28:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c96cf6c2744cd8e1490bd42ab07a21c76e8eb90.webp?v=1703057331","variant_ids":[41081409011811]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850B-YB13","featured_media":{"alt":null,"id":23074503819363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c96cf6c2744cd8e1490bd42ab07a21c76e8eb90.webp?v=1703057331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081409077347,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011850D-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706691145827,"product_id":7125843443811,"position":2,"created_at":"2023-12-20T15:28:39+08:00","updated_at":"2023-12-20T15:28:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/661b38641750ee627fc63693154a8007e8129470.webp?v=1703057319","variant_ids":[41081409077347]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850D-YB13","featured_media":{"alt":null,"id":23074501066851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/661b38641750ee627fc63693154a8007e8129470.webp?v=1703057319"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41081409241187,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011850E-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706696519779,"product_id":7125843443811,"position":11,"created_at":"2023-12-20T15:29:04+08:00","updated_at":"2023-12-20T15:29:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b4edf05510a8e3c0155f0958e097d3c97ebe2af.webp?v=1703057344","variant_ids":[41081409241187]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011850E-YB13","featured_media":{"alt":null,"id":23074506440803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b4edf05510a8e3c0155f0958e097d3c97ebe2af.webp?v=1703057344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41081408553059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118552-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":30706696945763,"product_id":7125843443811,"position":12,"created_at":"2023-12-20T15:29:06+08:00","updated_at":"2023-12-20T15:29:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346","variant_ids":[41081408553059]},"available":true,"name":"iPhone 12\/12 Pro 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Care Bears - 粉紫樂園 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118552-YB13","featured_media":{"alt":null,"id":23074506866787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf701861d6f35f980a64cc20f195b910faa98a82.webp?v=1703057346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
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 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: "停產"
}