sickshot Posted May 25, 2015 Share Posted May 25, 2015 hello i need to hook block viewed on product page right after images and before footer. something like the module that shows products in the same category using PS 1.6.0.9 http://chubika.com/skirts-/27-basket-skirt.html Link to comment Share on other sites More sharing options...
PascalVG Posted May 26, 2015 Share Posted May 26, 2015 Products of same category module uses this one: public function hookProductFooter($params) (See modules/productscategory/productscategory.php) Link to comment Share on other sites More sharing options...
sickshot Posted May 26, 2015 Author Share Posted May 26, 2015 (edited) hello PascalVG i dont quite get what you wrote. can you explain in little more details? how can I allow blockviewed to be hooked in product footer? I think productscategory is totally different thing than viewed products module. isn't it? Edited May 26, 2015 by sickshot (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted May 27, 2015 Share Posted May 27, 2015 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: If I totally misunderstood what you need, please elaborate. pascal. 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