ex625 Posted December 3, 2011 Share Posted December 3, 2011 Hello guys, I have a question... How i can get using ready Smarty Presta API ( inside .tpl file): 1. Full list of categories 2. List of subcategories from specifed category 3. Random product(or Last product, or most viewed) from specifed category I know that i should probably use loop like {foreach} but i don't know what array i shoud iterate Can you help me? I want modify some .tpl files and need it. Link to comment Share on other sites More sharing options...
ex625 Posted December 4, 2011 Author Share Posted December 4, 2011 Who know answer ? Link to comment Share on other sites More sharing options...
tomerg3 Posted December 6, 2011 Share Posted December 6, 2011 Those variables do not exist everywhere, you would have to create them in a php Controller (most likely, depends on where you want to display them), and then pass them to smarty. Link to comment Share on other sites More sharing options...
gonandriy Posted December 7, 2011 Share Posted December 7, 2011 Look at blockcategory module. There, probably, you can see code for assign appropriate variables to smarty 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