Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Placing Logos at Sidebox on homepage only

    My affiliation with some marketing agents requires me to place their logos at my website. I wish to place these logos along the right side sidebox area and display them only at the homepage. Is an easy way to achieve this? Thanks.

  2. #2
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Placing Logos at Sidebox on homepage only

    I was considering to use the banner feature to achieve the objective listed in my posting above but realized that the banner would be displayed in every page rather then just the homepage.

    In addition, I would like to display these logos without any borders, header, and footer. Can someone pls. help. Thanks.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Placing Logos at Sidebox on homepage only

    You could make a custom sidebox for these images ... and turn them off based on the current page setting so that they only show when you want them to ...
    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!

  4. #4
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Placing Logos at Sidebox on homepage only

    Thanks for the suggestion Linda, I am not much of a php programmer. Is there a sample template i can refer to?

  5. #5
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Placing Logos at Sidebox on homepage only

    I have created a sidebox and am trying to get it to display only at the homepage w/o much luck. I referred to this link here but still aren't clear as to how to go about doing it.

    Any advise would be much appreciated.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Placing Logos at Sidebox on homepage only

    There is a new feature in Zen Cart v1.3.5 to know if you are on the real home page ...

    PHP Code:
    if ($this_is_home_page) {
    // I am on home page
    } else {
    // I am not home page

    Look at the other sideboxes and you will see $show_something ... follow that logic to enable/disable the sidebox utilizing the $this_is_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!

  7. #7
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Placing Logos at Sidebox on homepage only

    What shld I list as condition(s) in the If statement to determine whether the homepage is displayed? Many thanks.

  8. #8
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Placing Logos at Sidebox on homepage only

    Quote Originally Posted by Ajeh
    There is a new feature in Zen Cart v1.3.5 to know if you are on the real home page ...

    PHP Code:
    if ($this_is_home_page) {
    // I am on home page
    } else {
    // I am not home page

    Look at the other sideboxes and you will see $show_something ... follow that logic to enable/disable the sidebox utilizing the $this_is_home_page ...
    BTW, just to add that I am still at version 1.2.7d.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Placing Logos at Sidebox on homepage only

    bummer ... $this_is_home_page lives in v1.3.5 ...

    Might download it and install a test shop and find how that variable is determined ... then customize something similar ...

    Or ... upgrade ...
    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!

  10. #10
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Placing Logos at Sidebox on homepage only

    Perhaps a little background info. What I need to achieve is:

    if (Hompage)
    show sidebox 1
    else
    show sidebox 2

    I looked thru' v1.3.5 and found this code:

    Code:
    $this_is_home_page = ($current_page=='index.php' && !isset($_GET['cPath']));
    It's working somewhat to what I need. By that I mean when the Homepage is displayed, sidebox 1 is shown. When any category is clicked, sidebox 2 is switched to. However, when i click on a product which causes the URL to changed from

    www.mywebsite.com

    to

    http://www.mywebsite.com/index.php?m...roducts_id=962

    the code failed to switch to sidebox 2.

    I believe the condition in my IF statement is incomplete. Could anyone point out what I am missing? Thanks very much.

 

 

Similar Threads

  1. How to remove Featured [More] sidebox from homepage only?
    By bodkin77 in forum Customization from the Admin
    Replies: 4
    Last Post: 26 May 2013, 11:18 PM
  2. remove review sidebox from homepage only
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Jan 2011, 11:03 AM
  3. Blank Sidebox Only On Homepage
    By Globie in forum General Questions
    Replies: 2
    Last Post: 27 Oct 2008, 06:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR