CrazedLemming Posted July 21, 2010 Share Posted July 21, 2010 First, I'm brand new to prestashop. (just installed for the first time last night) I'm impressed so far but I'm still working on wrapping my head around it.Now for the problem:I'm working on porting the design of my zen cart site over to presta and need a little advice on the correct way to do things in presta.My old header template included a chunk of php to load random images in the site header. (Go to http://crazedlemming.com/ and refresh the page to see the shirt change at the top) With the way presta appears to keep all php out of the template files, what would be the best way to go about duplicating the random image feature?Here's the test install in case it matters: http://ronpbutler.com/PrestashopTest/Thanks for any help!Ron Link to comment Share on other sites More sharing options...
CrazedLemming Posted July 22, 2010 Author Share Posted July 22, 2010 I found a way to accomplish what I wanted. Smarty has a random function and I just used that to throw a random number at the end of the image name. 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