Zmey05 Posted September 11, 2011 Share Posted September 11, 2011 Hi guys, I'd like to add the comparison feature to the manufacturer's pages. Currently it's active only on the categories pages. I've tried by adding these lines to the manufacturer.tpl: {include file="$tpl_dir./product-compare.tpl"} {include file="$tpl_dir./product-sort.tpl"} {include file="$tpl_dir./product-list.tpl" products=$products} {include file="$tpl_dir./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl"} The sort function works just fine, but the comparison buttons and the check box don't appear at all. Obviously something else needs to be edited, but I have no idea what. I will appreciate very much if someone helps me here. Link to comment Share on other sites More sharing options...
Mike Spike Posted January 18, 2012 Share Posted January 18, 2012 I have the same issue! I would like to add the compare function to 1) Manufacturers page 2) 'View All Products' page if anyone knows how, please let us know! I believe something needs to be added in the controller?? Thanks in advance Mike : DovJudaica Link to comment Share on other sites More sharing options...
shacker Posted January 20, 2012 Share Posted January 20, 2012 send me your site url so i can check. and have enabled force compile after these changes in preferences, performance? Link to comment Share on other sites More sharing options...
acateon Posted May 10, 2013 Share Posted May 10, 2013 Did anyone come up with a solution? Link to comment Share on other sites More sharing options...
bercik3 Posted February 12, 2014 Share Posted February 12, 2014 Add these lines to file: /controllers/front/ManufacturerController.php in function initContent(): if (isset($this->context->cookie->id_compare)) $this->context->smarty->assign('compareProducts', CompareProduct::getCompareProducts((int)$this->context->cookie->id_compare)); Link to comment Share on other sites More sharing options...
mmsh Posted June 15, 2015 Share Posted June 15, 2015 Add these lines to file: /controllers/front/ManufacturerController.php in function initContent(): if (isset($this->context->cookie->id_compare)) $this->context->smarty->assign('compareProducts', CompareProduct::getCompareProducts((int)$this->context->cookie->id_compare)); this code is not good for PS 1.4 'cause you can't use $this->context please, what's the correct method for PS 1.4? thanks Link to comment Share on other sites More sharing options...
Recommended Posts