Web Curator Posted March 3, 2015 Share Posted March 3, 2015 Hi guys,Nowadays UX and UI are becoming important in the navigation in an e-commerceThe most Themes for prestashop have the product page in the typical grid layout, and this dosen't help in the good comunication.So my question is:How I can customize every single product page layout?I'd like to leave a link, maybe there are some wrong choice (for example the use of jpeg for comunicate the text) but every single page product is different.Have a lookhttp://www.edelkrone.comThanks and Regards Link to comment Share on other sites More sharing options...
fred-vinapresta Posted March 3, 2015 Share Posted March 3, 2015 Hi you want to have a different template for each product -if it is just about customize css, you juste need to add a class or id product_page_{$product->id} in the container div of the product.tpl if you want a different tpl file for each product, you can modify the productController.php file, in initContent, replace: $this->setTemplate(_PS_THEME_DIR_.'product.tpl'); by $this->setTemplate(_PS_THEME_DIR_.'product'.$this->product->id.'.tpl'); then , you can create for each product a new template by , for example, call it product3.tpl and product6.tpl for product id 3 and product id 6.... 2 Link to comment Share on other sites More sharing options...
Web Curator Posted March 4, 2015 Author Share Posted March 4, 2015 Dear Fred, Thanks for your AMAZING support! Works Perfectly When you will come in Italy you have a dinner paid! Regards Andrea 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