I thought I saw this somewhere else but I can't find where.
How do I display banners ONLY on the homepage. I can't find the conditional logic for displaying..
Thanks!
I thought I saw this somewhere else but I can't find where.
How do I display banners ONLY on the homepage. I can't find the conditional logic for displaying..
Thanks!
You would have to use an additional condition for if you are on the home page ...
The variable:
$this_is_home_page
evaluates to true if you are on the Home page ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
So I would use that in a conditional statement how?
if( $this_is_home_page){
??
}
What is the function to disable the banners? I see the:
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists...
I tried to wrap it around this but no success. Excuse my ignorance...
Thanks in advance!!
Try using:
PHP Code:
if ($this_is_home_page && (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1))) {
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
no dice. No errors, but it doesn't remove the banners from the products page(s)..Any other suggestions? Logically it makes sense?
I'm an idiot. I figured it out. I was applying the recommended to the wrong banner group. Thanks!
fussy little thing about code, eh? Always does what you say and never what you mean ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
What file I need to add that script? to show banners in the header position 3 on home page only ?
Here's the answer to my latest question, but what file does it go in?
JOhn ><>
Newest Site: ChargerPros - Stuff4Toys
Found the answer THANKS
JOhn ><>
http://www.zen-cart.com/forum/showth...273#post476273
Newest Site: ChargerPros - Stuff4Toys
Bookmarks