schafferer/popular-brands-bundle
README
Bundle adds a module that shows a list of popular brands. Popular brand are brand with the most product sales
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require "schafferer/shcware-base-bundle": "~6.0"
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation. Be sure to adjust the version information "~6.0" to the actual version you need.
Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
<?php
// app/AppKernel.php
// ...
public function registerBundles()
{
$bundles = array(
// ...
new \Schafferer\PopularBrandsBundle\SchaffererPopularBrandsBundle()
);
}
Step 3: Snippet Chain
The bundle has its own snippets. To use them add following directory to your theme snippet chain in CMS
../../../../vendor/schafferer/popular-brands-bundle/Resources/views
Step 4: Configuration
You can configure following values for bundle. You have to add this only if you want to change the default values
Example with default values:
schafferer_popular_brands:
count_list_items: 10
expire_list_cache_minutes: 1440
days_include_product_sales: 28