Jump to content

Two sections with different categories.


Recommended Posts

Hi,
Do you know how I can do like this store?
http://www.gingerpuplane.com/shop-cat/c2/index.html
I need to get two sections, "DOGS" and "CATS", and show different categories and background.
Thank you.


Of course. You need to modify your header.tpl with a conditional. If the url is dogs.html, load a css file, if is cats, load another.

For example, si the category url is /dogs.html, you can use:

{php}
if ($_SERVER['REQUEST_URI'] == __PS_BASE_URI__.'dogs.html'){
{/php}
<link href="{php}echo __PS_BASE_URI__;{/php}themes/yourtheme/css/slide.css" rel="stylesheet" type="text/css" media="all" />
{php}
}
else{
{/php}
<link href="{php}echo __PS_BASE_URI__;{/php}themes/yourtheme/css/slide2.css" rel="stylesheet" type="text/css" media="all" />
{php}
}
{/php}
Link to comment
Share on other sites

CSS is good for change the styles, but how can I make the different categories for dogs and cats?


The same thing. You can create a condition that if the url is http://..../dogs, the category only load dogs. You need to modify the category module or put only links as text. To load the categories dinamically, this is more complicated, you need to write a new module
Link to comment
Share on other sites

×
×
  • Create New...