Mini Cart Plug - Copy this React, Tailwind Component to your project
Make a plugin MiniCartPlug.php for Magento 2. There are two product categories created: "Lasers & Lights" (category id: 3) and "Holsters" (category id: 2). What each category represents is self explanatory. However, not all Holsters are made to fit any product from the Lasers & Lights category, simply because the dimensions vary. Therefore, my idea is to warn the user that if they add products from these categories that are incompatible, the product should still be added to the cart, but the user should be warned that the product X they added is not compatible with product Y that they already had, if they are incompatible. In the case of a detected incompatibility, it should trigger an .html template that you will create to warn the user, which, as I mentioned, should be enabled or disabled depending on whether incompatibilities are detected. Here is my list of compatible SKUs: '951 0080' => ['compatible_accessories' => ['930 0026', '930 0027'], 'brand' => 'Glock', 'models' => ['17', '19', '43']], '951 0082' => ['compatible_accessories' => ['930 0024', '930 0025'], 'brand' => 'Taurus', 'models' => ['G2C', 'G3C', 'G3']], '951 0087' => ['compatible_accessories' => ['930 0026', '930 0027'], 'brand' => 'Sig Sauer', 'models' => ['P365 Macro']], '951 0079' => ['compatible_accessories' => ['930 0026', '930 0027'], 'brand' => 'Sig Sauer', 'models' => ['P365 Macro']]
