eddy2014 Posted February 28, 2014 Share Posted February 28, 2014 I'm using a template from Template Monster but believe the same feature exist on the default template. Using PS 1.5.6.2 is it possible to disable the compare function for products you can't compare but for those products which can be compared it should be available. Is there a easy solution to this? Haven't found a setting in the back office yet. Regards, Ed Link to comment Share on other sites More sharing options...
NemoPS Posted February 28, 2014 Share Posted February 28, 2014 It all depends on what you mean by 'can be compared'. Product that have features? There is no setting in the back office anyway, so you'll need to change the code in any case Link to comment Share on other sites More sharing options...
vekia Posted February 28, 2014 Share Posted February 28, 2014 preferences > products "product comparision" option - set it to 0 - you will disable comparision feature Link to comment Share on other sites More sharing options...
eddy2014 Posted March 1, 2014 Author Share Posted March 1, 2014 Thanks Vekia & Nemo1. Nemo1, where would this be done and could you help me with the code? Vekai, but this will disable the compare function for all. I would like to see a feature in the product page where you can set this per product. Can we do here a feature request? Link to comment Share on other sites More sharing options...
NemoPS Posted March 1, 2014 Share Posted March 1, 2014 If you want to set it per product you must extend the product class as explained here: http://nemops.com/extending-prestashop-objects/ Then, in the template (product-list.tpl), you can use {if $product.compare_activated} ....here the compare, compare_activated is just a name I chose.... {/if} Link to comment Share on other sites More sharing options...
Recommended Posts