Sylius plugin that allows you to compare two or more products.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
etc/build
features
spec
src
tests
.gitignore
.travis.yml
LocasticSyliusComparePlugin.png
README.md
behat.yml.dist
composer.json
easy-coding-standard.neon
node_modules
phpspec.yml.dist
phpstan.neon
phpunit.xml.dist

README.md


Demo

To Do

Overview

Locastic comparer is Sylius Plugin for comparing store products. This plugin allows you to easily embody action of comparing products before adding them into cart in Sylius.

Installation

$ composer require locastic/sylius-comparer-plugin

Add plugin dependencies to your AppKernel.php file:

public function registerBundles()
{
    return array_merge(parent::registerBundles(), [
        ...
        
        new \Locastic\SyliusComparerPlugin\LocasticSyliusComparerPlugin(),
    ]);
}

Usage

Inside Sylius shop add links to access comparer, and link to add shop product to comparer. Accessing comparer through link allows user to see comparer page with table of compared products and theirs attributes. Also, user has option of removing single product from comparer, or adding it further to shop cart.

Testing

$ composer install
$ yarn install
$ yarn run gulp
$ (cd tests/Application && bin/console assets:install web -e test)
$ (cd tests/Application && bin/console doctrine:database:create)
$ (cd tests/Application && bin/console doctrine:schema:create -e test)
$ (cd tests/Application && bin/console sylius:fixtures:load)
$ (cd tests/Application && bin/console server:run 127.0.0.1:8080 -d web -e test)
$ open http://localhost:8080
$ bin/behat
$ bin/phpspec run

Contribution

Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.

Support

Want us to help you with this plugin or any Sylius project? Write us an email on info@locastic.com