Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karliuka/m2.smartcategory

Magento2. Extension Smart Category rules dynamically change the product selection according to a set of conditions.
https://github.com/karliuka/m2.smartcategory

magento-2 magento-2-extension magento-2-extension-free magento-2-module magento-extension magento2 magento2-extension magento2-extension-free magento2-free-extension magento2-free-modules magento2-module magento2-smart-category rule smart smart-category

Last synced: 1 day ago
JSON representation

Magento2. Extension Smart Category rules dynamically change the product selection according to a set of conditions.

Awesome Lists containing this project

README

        

# Magento2 Smart Category

[![Total Downloads](https://poser.pugx.org/faonni/module-smart-category/downloads)](https://packagist.org/packages/faonni/module-smart-category)
[![Latest Stable Version](https://poser.pugx.org/faonni/module-smart-category/v/stable)](https://packagist.org/packages/faonni/module-smart-category)

Extension Smart Category rules dynamically change the product selection according to a set of conditions (Similar Smart Playlists on iTunes).

You can create categories based on rules you specify, and then update these categories automatically as your products changes.

For example, you could create a category includes only new products. Or you could create a categories of products by a particular brand, color, size, etc. You can add as many conditions to the expression as needed to describe the products to include.

### Category edit page

Magento2 Smart Category

## Compatibility

Magento CE 2.1.x, 2.2.x, 2.3.x, 2.4.x

## Install

To install the Smart Category, You must install kit of extensions:
- Smart Category - base of Smart Categories functionality.
- [Smart Category Configurable](https://github.com/karliuka/m2.SmartCategoryConfigurable) - changes simple products to their parents for configurable products.

#### Install via Composer (recommend)
The corresponding version of the Smart Category Kit will be installed automatically.

1. Go to Magento2 root folder

2. Enter following commands to install module:

For Magento CE 2.1.x

```bash
composer require faonni/module-smart-category-kit:2.1.*
```
For Magento CE 2.2.x

```bash
composer require faonni/module-smart-category-kit:2.2.*
```
For Magento CE 2.3.x

```bash
composer require faonni/module-smart-category-kit:2.3.*
```
For Magento CE 2.4.x

```bash
composer require faonni/module-smart-category-kit:2.4.*
```
Choose one based on your Magento version and wait while dependencies are updated.

#### Manual Installation

1. Create a folder {Magento root}/app/code/Faonni/SmartCategory

2. Download the corresponding [latest version](https://github.com/karliuka/m2.SmartCategory/releases)

3. Copy the unzip content to the folder ({Magento root}/app/code/Faonni/SmartCategory)

4. Install [Smart Category Configurable](https://github.com/karliuka/m2.SmartCategoryConfigurable)

### Completion of installation

1. Go to Magento2 root folder

2. Enter following commands:

```bash
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy (optional)
```
## Configuration
In the Magento Admin Panel go to *Stores > Product Attributes*.
Select any attribute that you’d like to be able to use by in the smart category conditions.
On the edit attribute page, under *Storefront Properties* set **Use for Smart Category Rule** to **Yes**.
Magento2 Use for Smart Category Rule
Save the attribute.

## Uninstall
This works only with modules defined as Composer packages.

#### Remove database data and schema

1. Go to Magento2 root folder

2. Enter following commands to remove database data and schema:

```bash
php bin/magento module:uninstall -r Faonni_SmartCategoryKit Faonni_SmartCategoryConfigurable Faonni_SmartCategory
```

#### Remove Smart Category Kit

1. Go to Magento2 root folder

2. Enter following commands to remove:

```bash
composer remove faonni/module-smart-category-kit
```

### Completion of uninstall

1. Go to Magento2 root folder

2. Enter following commands:

```bash
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy (optional)
```