EddardStark Posted April 9, 2012 Share Posted April 9, 2012 Hi, I am new to prestashop, its a realy great product dough! im creating a sings column webshop. and i want the "viewed product" module in the center column (i disabled the left and right column in "live edit" mode). When i want to drag the module the a red rectangle appears. wicht files do i have to modify to realise what i want. See picture!! Thanks Link to comment Share on other sites More sharing options...
Flaunt Posted April 9, 2012 Share Posted April 9, 2012 Well, firstly that module is not designed to work in that position. You can open up blockviewed.php' and change the hooks. Find: if (!parent::install() OR !$this->registerHook('leftColumn') OR !$this->registerHook('header') OR !Configuration::updateValue('PRODUCTS_VIEWED_NBR', 2)) return false; return true; And change 'leftcolumn' to 'home' Also: function hookLeftColumn($params) { return $this->hookRightColumn($params); } function hookHeader($params) And change 'leftcolumn' again. Uninstall the module before you do this then re-install. However, there is no guarantee the module will look right in this new position or even sit correctly as, like I said, it wasn't designed to work there so you may have to mess around with it further. 1 Link to comment Share on other sites More sharing options...
EddardStark Posted April 9, 2012 Author Share Posted April 9, 2012 Thanks Flaunt, Your advise whas correct! Thanks! Link to comment Share on other sites More sharing options...
amit03 Posted May 22, 2012 Share Posted May 22, 2012 Well, firstly that module is not designed to work in that position. You can open up blockviewed.php' and change the hooks. Find: if (!parent::install() OR !$this->registerHook('leftColumn') OR !$this->registerHook('header') OR !Configuration::updateValue('PRODUCTS_VIEWED_NBR', 2)) return false; return true; And change 'leftcolumn' to 'home' Also: function hookLeftColumn($params) { return $this->hookRightColumn($params); } function hookHeader($params) And change 'leftcolumn' again. Uninstall the module before you do this then re-install. However, there is no guarantee the module will look right in this new position or even sit correctly as, like I said, it wasn't designed to work there so you may have to mess around with it further. your advice worked great but it only works if some products are already in cookie, if i open same page in different browser it wont work ..... plzz help.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now