X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Changing page tile on home page (https://forum.x-cart.com/showthread.php?t=18484)

minhta 12-06-2005 04:02 PM

Changing page tile on home page
 
Hello.

I would like to change the page title on the home page to say "Discount Perfume : Womens & Men's Fragrances" but to leave it dynamic for the other pages such as the product pages. Can someone help me with the code please?

I know I have to edit customer/home.tpl and have tried the following code:

<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} - {/if}
{/section}

START OF MY CODE
{if $main eq "index"} Discount Perfume : Womens & Men's Fragrances
{/if}
{else}
END OF MY CODE

{section name=position loop=$location step=-1}
{$location[position].0|escape}

The problem is I don't know what $main should be. I've tried "home" and "index" and they both don't seemed to work.

What am I doing wrong please?
Thanks.

balinor 12-06-2005 05:21 PM

try this:
Code:

{if $main eq "catalog" and $current_category.category eq ""}Your title here{else}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} - {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} - {/if}
{/section}
{/if}
{/if}


minhta 12-06-2005 05:55 PM

Thank Balinor

That's exactly what I need :D


All times are GMT -8. The time now is 02:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.