Enabling Similar Products widget in your Product pages


Paste the following code at a desired location in your product view template at: app/design/frontend/PACKAGE-NAME/THEME-NAME/template/catalog/product/view.phtml


<div id="tagalys-namespace" class="tagalys-namespace" data-tagalys-widget="similar_products" data-tagalys-widget-opts-product-id="<?php echo $_product->getId() ?>"></div>


Enabling other recommendation widgets


Paste the following code in any desired template and replace 'widget_name' with the tagalys widget you desire.


<div id="tagalys-namespace" class="tagalys-namespace" data-tagalys-widget="widget_name"></div>