Pepozzo Posted April 16, 2012 Share Posted April 16, 2012 Hello! I'm trying to write my first module. I followed the documentation found here http://doc.prestashop.com/display/PS14/Creating+a+PrestaShop+module but now i'm trying to retrieve all products that are in the "Home" category. So, i don't know two things. How can i write the query? I guess it isn't like i usually do in PHP. And then, in my .tpl file how can i display the result? Thanks guys! Link to comment Share on other sites More sharing options...
hulk Posted April 16, 2012 Share Posted April 16, 2012 you can use the some thing in homefeatured module, it retrieve all product in "Home" category. just modify it to have the result that you need Link to comment Share on other sites More sharing options...
Pepozzo Posted April 16, 2012 Author Share Posted April 16, 2012 Yeah, i tought the same, but if i want to show, for example, only some of "new products"? Just to learn. Actually i would like to develop a module with an administration panel where i can choose some products from the "new products" and then display them on a block in the home page (left or right side only). That's my idea, but obviusly, step by step. 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