Jump to content

hook block viewed on product page


Recommended Posts



Maybe I misunderstood your question?


What exactly did you mean with:


something like the module that shows products in the same category




I thought you meant the blockproductcategory module, which shows products that are in the same category as the product currently being shown in detail.


If you meant that, the function mentioned above is the one they use to hook to the Product footer   (i.e. at the bottom of the product details)


If you indeed want to put it there, then in the file /modules/blockviewed/blockviewed module, add this function to the class:


public function hookProductFooter($params)
    return $this->hookRightColumn($params);



And, to get the products not below eachother, but next to eachother, in themes/<your theme folder>/css/global.css, add something like: 


#center_column #viewed-products_block_left li {

    float: left;

    margin-left: 20px;

    border-bottom: none;



(Maybe this needs some fine tuning. Also check for different browser window sizes if it looks ok)






If I totally misunderstood what you need, please elaborate.



Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...