<!-- TITLE: Archived Products - Magento 2 module documentation--> <!-- SUBTITLE: Author: Marek Milewski --> # Archived Products Module ## Module overview Archived Products module lets you control your products even more. Now you can decide whether disabled product should be seen in your Magento 2 store. Moreover you can add custom button to each product that has been disabled with your label and url, that will improve an information flow between you and customers. ## Module compatibility This module is compatibile with Magento Community versions: **2.2** and **2.3**. ## How it works Once installed, the module is disabled by default, to enable module functions go to **Stores > Configuration > Catalog > Catalog > Archived Product** ![Image 9](/uploads/archived-products/image-9.png "Image 9") **Display unavailable products** - turns on or off visibility of your products **Display ask for product button** - turns on or off visibility of your custom button **Button label** - set label for you button **Button url** - set redirect url for your button **Display button for out of stock** - turns of button for enabled products, that run out of stock To see module in action first go to magento 2 store and open any product. On other tab go back to the Admin Panel to disable product you have chosen. For that go to **Catalog > Products**, and edit one of you products. ![Image 10](/uploads/archived-products/image-10.png "Image 10") Since the product is disabled, change tab to store and refresh page. You will see that you can still view the product and your button is added, making it possible for customers find out about future of the product. ![Image 1](/uploads/archived-products/image-1.png "Image 1") One more time go to product edit form, now **enable** the product and make it **Out of stock**. ![Image 7](/uploads/archived-products/image-7.png "Image 7") Check the product in store one more time, you will see, that since you enabled **Display button for out of stock** option, in configuration, your button will appear. ## Demo demo3.magecreation.com ## Installation ### Composer 1. Add repo to composer.json: ```text "repositories": [ ... { "type": "vcs", "url": "git@git.auroracreation.com:aurora-modules/ArchivedProducts.git" } ... ], ``` 2. Add package to composer.json: ```text "require": { ... "aurora/archivedproducts": "*" ... }, ``` 3. In Magento root folder run commands: ```text composer update aurora/archivedproducts php bin/magento module:enable Aurora_ArchivedProducts 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_ArchivedProducts php bin/magento setup:upgrade ``` ### Thank you for your interest in our products!