Jump to content

Prestashop 1.7 add left column to Product Page


veresku

Recommended Posts

Hello,


Anybody knows how to add left column to Product Page?


I use classic theme and I do not see the product page on Appearance -> Theme & Logo -> Theme -> Choose layouts


I have changed the themes/classic/templates/catalog/product.tpl, changed to {extends file='layouts/layout-left-column.tpl'}, as a result, left column is shown but without the content.


Kind regards, Tiana


Link to comment
Share on other sites

  • 2 months later...

Hello Tiana,

I had the same problem and I solved it with editing file  /themes/classic/templates/layouts/layout-both-columns.tpl

On line 73 you will see next code:

 {if $page.page_name == 'product'}
                  {hook h='displayLeftColumnProduct'}
                {else}
                  {hook h="displayLeftColumn"}
                {/if}

And I changed it just to :

{hook h="displayLeftColumn"}

 

And if you need also the right column, you can do the same with right column code.

Or the second variant. You can Transplant the modules you need to the "displayLeftColumnProduct" hook.

Regards,

Yuriy

Edited by Yuriy (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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