Jump to content

hook block viewed on product page


sickshot
 Share

Recommended Posts

Hmm,

 

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)

 

Result:

post-455771-0-56137200-1432703246_thumb.png

 

 

If I totally misunderstood what you need, please elaborate.

 

pascal.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More