Mat_D1245 Posted November 19, 2015 Share Posted November 19, 2015 Hi community, I would like to to show a different amount of new products, depending on the pages. Basically, I should have 12 new products on my homepage, but only 6 when displayed in the left column. Does anybody know how I could do that? I just need the general idea, I'll manage the details (i hope). I'd be really thankful for any hints! Link to comment Share on other sites More sharing options...
Mat_D1245 Posted November 20, 2015 Author Share Posted November 20, 2015 Ok, I found a way. It might not be really neat, I'd rather call "quick 'n dirty" but it works: in themes/ {your theme}/modules/blocknewproducts/blocknewproducts.tpl I added a condition {if $smarty.foreach.myLoop.index < 6} just after the foreach loop. Unfortunately, if I want to change that setting again I have to reopen my ftp and notepad. A better way would be to add a variable in the module settings in the BO, but I don't know how to do that yet and unfortunately don't have the time at the moment... Anyway, I hope this solution will be useful to the community. 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