Download the PHP package setono/sylius-strands-plugin without Composer
On this page you can find all versions of the php package setono/sylius-strands-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/sylius-strands-plugin
More information about setono/sylius-strands-plugin
Files in setono/sylius-strands-plugin
Package sylius-strands-plugin
Short Description Plugin that integrates Strands
License MIT
Informations about the package sylius-strands-plugin
Sylius Strands Plugin
Integrates the Strands recommendation engine into Sylius.
Installation
Step 1: Download the plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the plugin
Then, enable the plugin by adding it to the list of registered plugins/bundles
in the config/bundles.php
file of your project:
Step 3: Create configuration
Usage
Create a generic widget
In your twig template you can insert a widget like this:
The template
is the id you get from here: strands.com/tpl/website.
It will output this: <div class="strandsRecs" tpl="template"></div>
Create a widget for the cart
It will output this: <div class="strandsRecs" tpl="template" item="list of items in the current cart"></div>
Create a widget for the product page
It will output this: <div class="strandsRecs" tpl="template" item="product code"></div>
All versions of sylius-strands-plugin with dependencies
setono/tag-bag-bundle Version ^2.0
setono/tag-bag-twig Version ^1.0
sylius/sylius Version ^1.4