Jump to content

Recommended Posts

I created a module which displays right under the product description on the product page.  I wanted to show a matrix view of color / size.  I got the general matrix to show, but I'm having issues gathering data on the product.


I've been looking at product.tpl for examples and such.  Is there anyway to access the product class information from my module?


I just need to loop through the product attribute combinations to populate the matrix (color / size).

RIght now Im using the hook "hookDisplayFooterProduct" to display my tpl file.



Any help would be great!


Thanks for any info.

Edited by wstar (see edit history)

Share this post

Link to post
Share on other sites

You can get the product id from the params in the hook or from the get parameter with $id_product = (int)Tools::getValue('id_product')

and then $product = new Product($id_product)

Edited by yaniv14 (see edit history)
  • Like 1

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
  • Create New...

Important Information

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