| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Want to show different banner on Home page and other pages. | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Want to show different banner on Home page and other pages.
I want to show my own banner on Home page and Google banners on all other pages.
I know it will require an if condition and a veriable to catch link. I am giving down an idea but if someone can give me exact code needed. variable = a a = get current link if ( a = homepage or a = home.php ) { show my own banner (My HTML Code)} else { show google banner (Google Adsense Code)} Here I use or in if condition because when you simply open the domain example http://www.soft-reseller.com you will not find any file name in the end and usually it is index.html but what xcart uses I dont know. Regards
__________________
Zaintech Technologies http://www.soft-reseller.com http://www.zaintech.pk X-Cart Gold v4.6.5 Gold Plus X-Cart Reboot Template v3.2 Reseller AVG, WinRAR, RoboForm, Likno, IDM, LiveHelp Messenger |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Want to show different banner on Home page and other pages.
{if $main eq "catalog" and $current_category.category eq ""}
{ HOME PAGE show my own banner (My HTML Code)} {else} { ALL OTHER PAGES show google banner (Google Adsense Code)} {/if}
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Want to show different banner on Home page and other pages.
Quote:
Hello Thanks Pauldodman you understand what I want and we have done the job and got the results we want. We put the code {if $main eq "catalog" and $current_category.category eq ""} {include file="addons/banners/col/banner_1.tpl"} {else} {include file="addons/banners/col/google_banner.tpl"} {/if} Can see on our site http://www.soft-reseller.com Thanks again and regards
__________________
Zaintech Technologies http://www.soft-reseller.com http://www.zaintech.pk X-Cart Gold v4.6.5 Gold Plus X-Cart Reboot Template v3.2 Reseller AVG, WinRAR, RoboForm, Likno, IDM, LiveHelp Messenger |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|