ProductBestsellersRanking

https://github.com/magesuite/product-bestsellers-ranking

This module calculates product bestseller ranking.

Installation

This module is a part of MageSuite metapackage

 

Installation if metapackage is not used:

composer require "creativestyle/magesuite-product-bestsellers-ranking" ^1.0.0

Admin settings

Settings for the module can be found under: Stores -> Configuration -> MageSuite -> Bestsellers

 

Crone settings:

Name

Options

Note

Name

Options

Note

Enable Daily Calculation

 Yes/No 

If this option is enabled then cron will recalculate bestsellers

Recalculation Cron Schedule

default: 0 3 * * *

Schedule expression for bestsellers recalculation cron (format: * * * * *)

Use Transactions

Yes/No 

If this option is enabled bestsellers recalculation will be wrapped in db transaction to not lose already calculated bestseller scores, if any error occurs during recalculation

Enable cron crash detector

Yes/No 

When enabled cron job will check if bestseller calculation daily cron job crashed and if so it will try to rerun it.

 

Orders period settings:

Name

Options

Note

Name

Options

Note

Orders period

  • All orders

  • Orders from 7 days

  • Orders from 30 days

  • Orders from 1 year

 

 

Boosting factors settings:

 

You can set up below boosting factors to increase product scoring during bestsellers calculation. If an order is older it gets a lower boosting factor.

Name

Options

Note

Name

Options

Note

Boosting Factor A

3 (default)

Orders within 7 days will get this boosting factor (eg. 3)

Boosting Factor B

2 (default)

Orders within 30 days will get this boosting factor (eg. 2)

Boosting Factor C

1 (default)

Orders within 356 days will get this boosting factor (eg. 1)

Boosting Factor D

0 (default)

Orders older than 365 days will get this boosting factor (eg. 0)

Sold Out Decrease Factor

1 (default)

Products that are sold out will have this decrease factor (eg. 0.5)

 

Sorting settings:

Name

Options

Note

Name

Options

Note

Sorting direction

Ascending / descending

 

 

Crone tab settings

Navigate to Stores -> Configuration. -> Advanced -> System

 

Product page settings:

Name

Options

Note

Name

Options

Note

Bestseller Score By Sale

 

Field will be overwritten automatically every night

Bestseller Score Multiplier

 

Value in %

Backend

 

BE documentation is in progress

 

Frontend

There is no frontend functionality in this module.