Jump to content

Recommended Posts

I want to change the layout of a page by passing a variable within the url.

For example if i send the url http://localhost/prestashop/?home1 then the global.css must be loaded.

If is send http://localhost/prestashop/?home2 then the global_extra.css must be loaded.

Can somebody explain to me how to pick up the ?home variable within the tpl file to change the css.
I know this can be done because the prestateam did the trick on www.natarianni.fr (notice the tabs in the header)

Regards, Martin

Share this post


Link to post
Share on other sites

If I understand you correctly, you want to have a site that calls for more than 1 css.

If you are using the site that you are talking about as an example, There are two ways to do this:

#1) The easy way--it is using one category, two sub-categories and a filter. The filer will restrict certain items to pass along the value to each sub category. And each sub-categories uses different css.

#2) Difficult way--Group the elements and use a html template. Use the header menu to call for different css with different category.

I have test tried both ways, and they work.
http://www.blossomcart.com/gift-baskets.php
http://www.blossomcart.com/florist-arranged-flowers.php

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More