Jump to content

[SOLVED] switch from 3 columns to 2 columns


Recommended Posts

I understand that :

for header.tpl, it controls the left and the middle column,
for footer.tpl, it controls the right column,

how about if I want the checkout page to be 2 column layout?
and the product category page of 3 columns layout?
and the product detail page of 2 column layout?

Do i just add if statement at header.tpl and footer.tpl ?
Any more comprehensive and integrated way of doing so?

Link to comment
Share on other sites

You can go to Modules > Positions, edit each module in the left and right columns and add "order.php, product.php" as Exceptions. The only problem is that the columns will still be there, they will just be empty. Adding an if statement in header.tpl or footer.tpl is the best option, since it actually removes the columns. Something like this should do:

{if $page_name != 'order' AND $page_name != 'payment' AND $page_name != 'product'}

Link to comment
Share on other sites

Dear Rocky, I wonder where can I have information on the LIST of the value of $page_name?

I check from others thread that there are $page_name = "cms", "category", "order", "product", "payment"

Does it have something like "manufacturer" or "new-products"??

Would like to know the whole list of such names.
Where to get access to them?

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