jenzki Posted July 16, 2012 Share Posted July 16, 2012 Hi, I have a Prestashop project right now. that need to show all products under a specific manufacturer. So, in my cms.tpl, I added a code that once this specific page is clicked, what you can see on the page are all the manufacturers images. Now, once you click on the "click here" button of the image, all products under the manufacturer will show. This is how my code looks like so far: <div class="storeset5"> <a href="javascript:unhide('product1');"><img src="{$content_dir}themes/prestashop/images/click-here.jpg" alt="" style="padding-top:95px; padding-left:90px;" /></a> <a href="javascript:unhide('product2');"><img src="{$content_dir}themes/prestashop/images/click-here.jpg" alt="" style="padding-top:95px; padding-left:95px;" /></a> </div> <div id="product1" class="hidden"> <hr /><br/> <p>Products of manufacturer 1 here</p> </div> <div id="product2" class="hidden"> <hr /><br/> <p>Products of manufacturer 2 here</p> </div> I'm stuck on how to show all products of that specific manufacturer. Can anybody give me an idea how to do this or how the code may look like? Thanks. Link to comment Share on other sites More sharing options...
halennoor Posted July 17, 2012 Share Posted July 17, 2012 What theme are you using? The default prestashop theme has manufacturers module that does this.i.e.show all products under a specific manufacturer. Link to comment Share on other sites More sharing options...
jenzki Posted July 23, 2012 Author Share Posted July 23, 2012 Hi, Sorry for the late response. I got busy with other projects. Anyways, thanks for the response. I have already look into the default manufacturers module. In the manufacturers, once you go to manufacturer.php, what you can see is the list of all the manufacturers showing how many products under it, and a button to show products which will take you to another page. I don't want it that way. I want it to show on the same page. I want it this way: Once I click the "show products" button, it will show at the bottom of the page. There will also be button for "unshow products" so the products will hide once that button is clicked. But I'm stucked on how to show the products. Though the show/hide functionality at the bottom is working already, I just placed some texts in place with the supposed products to be seen there. 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