PrestaShark Posted October 22, 2013 Share Posted October 22, 2013 Hi! I have already make a HomeOnSale (duplicate HomeFeatured) module but i cant figure how to show On Sale products? Any hint? Any clue? Link to comment Share on other sites More sharing options...
vekia Posted October 22, 2013 Share Posted October 22, 2013 by onSale you mean products with dropped prices or just produts with checked "on sale" checkbox ? Link to comment Share on other sites More sharing options...
PrestaShark Posted October 22, 2013 Author Share Posted October 22, 2013 Hi Vekia, Cheked "on sale" option sounds good Maybe You can make another awesome tutorial for this? Link to comment Share on other sites More sharing options...
PrestaShark Posted October 25, 2013 Author Share Posted October 25, 2013 Bump... Anybody? Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 hello sorry i missed your reply here in this case you have to create own function to get products from database witch checked "on-sale" field. It's becasue $category->getProducts() function hasn't got feature to select only "on-sale" products. Link to comment Share on other sites More sharing options...
PrestaShark Posted October 25, 2013 Author Share Posted October 25, 2013 Hi, No problem Where to find this $category->getProducts() function? for c&p and customize it? Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 this is a part of controller, it will be much better if you will create new function (duplicate it!) /controllers/front/CategoryController.php 1 Link to comment Share on other sites More sharing options...
PrestaShark Posted October 25, 2013 Author Share Posted October 25, 2013 Thank You Vekia for this usefull hint! I'll be back in a minutes with HomeOnSale module Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 before release test it in different version of ps 1.5.x and try to avoid override! 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