FACT-Finder - Recommendation


The FACT-Finder recommendation engine analyzes product and category relationships. The results are rendered in recommendations widget, which can be displayed on product details pages, homepage or in the shopping cart.


To add recommendations widget to product page, insert the following code into src/Pyz/Yves/Product/Theme/default/product/detail.twig:

{{ fact_finder_recommendations({id: product.sku, mainId: product.idProductAbstract}, '@FactFinder/recommendations/products.twig') }}

To add recommendations widget to cart page, modify cart controller (src/Pyz/Yves/Cart/Controller/CartController.php) to add array of product ids into template variables:

Then add recommendations widget to cart page template src/Pyz/Yves/Cart/Theme/default/cart/index.twig:

{{ fact_finder_recommendations({id: cartItemsIds, mainId: cartItemsIds}, '@FactFinder/recommendations/products.twig') }}


See also:


Last review date: Dec. 22nd, 2017