Elber Posted May 5, 2011 Share Posted May 5, 2011 I looking for function to list all promotions ? Is there any foreach ?? Link to comment Share on other sites More sharing options...
shokinro Posted May 5, 2011 Share Posted May 5, 2011 what do you mean by "promotions"?featured products? - There is home featured module, which display featured product at home page, installed by default.specials (discounted products)?- there is a page prices-dtop.phpthere is a link at footer by default. Link to comment Share on other sites More sharing options...
Elber Posted May 5, 2011 Author Share Posted May 5, 2011 I mean specials (discounted products). I want to make a little box with list of all specials (name+link) , but i don't now how get this list from db Link to comment Share on other sites More sharing options...
shokinro Posted May 5, 2011 Share Posted May 5, 2011 but i don’t now how get this list from db You check prices-dtop.php to find out how to get product list from DB. Link to comment Share on other sites More sharing options...
Elber Posted May 5, 2011 Author Share Posted May 5, 2011 In prices-drop.php i have only: require(dirname(__FILE__).'/config/config.inc.php'); ControllerFactory::getController('PricesDropController')->run(); Link to comment Share on other sites More sharing options...
shokinro Posted May 5, 2011 Share Posted May 5, 2011 In version 1.4, it is page controller.so you need go to /controllers/'PricesDropController.php file Link to comment Share on other sites More sharing options...
Elber Posted May 5, 2011 Author Share Posted May 5, 2011 I need for example code like: {foreach .....} $produkt.name {/foreach} Link to comment Share on other sites More sharing options...
Elber Posted May 5, 2011 Author Share Posted May 5, 2011 Please help me ... it is important for me Link to comment Share on other sites More sharing options...
shokinro Posted May 5, 2011 Share Posted May 5, 2011 assume you have retrieve correct product data and assigned to smarty.And you code should be changed as {$produkt.name} Link to comment Share on other sites More sharing options...
Elber Posted May 6, 2011 Author Share Posted May 6, 2011 No...HOW TO MAKE this foreach ?? how to listed this ? Link to comment Share on other sites More sharing options...
Elber Posted May 10, 2011 Author Share Posted May 10, 2011 No one can help me ? Link to comment Share on other sites More sharing options...
Elber Posted May 11, 2011 Author Share Posted May 11, 2011 Help my please ... it's more important for me... 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