Jump to content

The Perfect E-Commerce


Recommended Posts

Hi guys,

Nowadays UX and UI are becoming important in the navigation in an e-commerce

The 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 look

http://www.edelkrone.com

Thanks and Regards

 

 

Link to comment
Share on other sites

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....

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...