Zen Cart Logo

Logo override.

Locked

Views: 1,379

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
7 Feb 2008, 11:04 AM
#1
onesimpleman avatar

onesimpleman

New Zenner

Join Date:
Nov 2006
Posts:
47
Plugin Contributions:
0

Logo override.

I would like to have a different logo for checkout pages. How do you setup an override?

My logo is a banner . and I would like the banner to show relevant information on shopping card , shipping and payments.

What is the best way to do this. Can someone help me with the logic ....which files need changing .... or overriding ...can this be accomplished without changes to the core code.

Example website is http://morgan111morgan.com
Thank you in advance
Onesimpleman

7 Feb 2008, 12:47 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Logo override.

It can be achieved at the template level. Basically you would need to insert an IF statement into your override of the tpl_header.php file to use the different logo(s) for those pages.

7 Feb 2008, 3:21 PM
#3
onesimpleman avatar

onesimpleman

New Zenner

Join Date:
Nov 2006
Posts:
47
Plugin Contributions:
0

Re: Logo override.

Thank you for your fast reply.

How will you state in a IF statement....

If page = xyz
Can you please help me with the variables.

7 Feb 2008, 3:33 PM
#4
onesimpleman avatar

onesimpleman

New Zenner

Join Date:
Nov 2006
Posts:
47
Plugin Contributions:
0

Re: Logo override.

Is it something like

if $current_page_base==shopping_cart

7 Feb 2008, 10:55 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Logo override.

Yes though the full syntax would be

  if ($current_page_base=='shopping_cart') {
    ....
  } else {
    ....
  }
7 Feb 2008, 10:57 PM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Logo override.

Or you can use css over-ride. To do so, you have to use the logo as background image.

8 Feb 2008, 9:42 AM
#7
onesimpleman avatar

onesimpleman

New Zenner

Join Date:
Nov 2006
Posts:
47
Plugin Contributions:
0

Re: Logo override.

Thank you very much kuroi and yellow ...it was really helpful....
onesimpleman