<!-- TITLE: Connected Products - Magento 2 module documentation--> <!-- SUBTITLE: Author: Aurora Creation --> # Connected Products Module ## Module overview Connected Products allows you to create cart rules with percentage discount for pair of product. Main product based on "Attribute Set", additional product bas edon "SKU". ## Module compatibility This module is compatibile with Magento Community versions: **2.4**. ## How it works After installing the module, head to Admin Panel go to **Marketing > Promotions > Cart Price Rules**. Click on **Add New Rule** button to create your own rule. Complete fields: **Rule Name** – add rule name **Active** – set active/inactive rule **Websites** – select active websites **Customer Groups** - select active customer groups **Coupon** - select rule acvie with or without coupon Set **Conditions** as below, where SKU is additional product: ![Condition](/uploads/connected-products/condition.png "Condition") Set **Actions**: * Select **Connected products discount rule** as Apply * Set **Discount Amount** (percent) * Set **Maximum Qty Discount is Applied To** Set the rule as below, where **Attribute Set** is for main product, **SKU** is for additional product: ![Action](/uploads/connected-products/action.png "Action") On Product page with Attribute Set like at rule will be display box add to cart connected products: ![Box](/uploads/connected-products/box.png "Box") After added to cart, on cart will be connected product with discount: ![Cart](/uploads/connected-products/cart.png "Cart") ## Installation ### Composer 1. Add repo to composer.json: ```text "repositories": [ ... { "type": "vcs", "url": "git@git.auroracreation.com:aurora-modules/module-connected-products.git" } ... ], ``` 2. Add package to composer.json: ```text "require": { ... "aurora/module-connected-products": "*" ... }, ``` 3. In Magento root folder run commands: ```text composer update aurora/module-connected-products php bin/magento module:enable Aurora_ConnectedProducts php bin/magento setup:upgrade ``` ### Manual 1. Unzip archive. 2. Upload extension files on your server to: ```text {Magento root} └── app/ └── code ``` 3. In Magento root folder run commands: ```text php bin/magento module:enable Aurora_ConnectedProducts php bin/magento setup:upgrade ``` ## ChangeLog ### v1.0.0 * Initial * Display box on catalog_product_view layout to add connected product * Main product base on attribute set * Additional product base on SKU ## Thank you for your interest in our products!