wstar Posted March 22, 2016 Share Posted March 22, 2016 (edited) 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 March 22, 2016 by wstar (see edit history) Link to comment Share on other sites More sharing options...
wstar Posted March 23, 2016 Author Share Posted March 23, 2016 Anyone Link to comment Share on other sites More sharing options...
yaniv14 Posted March 24, 2016 Share Posted March 24, 2016 (edited) 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 March 24, 2016 by yaniv14 (see edit history) 1 Link to comment Share on other sites More sharing options...
wstar Posted March 25, 2016 Author Share Posted March 25, 2016 Thank you yaniv14!! Worked perfectly. 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