If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Cart colour change to match homepage advice please

Cart colour change to match homepage advice please

Locked

Started by ritchie111 on 9 Aug 2006, 2:05 AM · Views: 4,929

Results 1 to 20 of 40
This thread is locked. New replies are disabled.
9 Aug 2006, 2:05 AM
#1
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Cart colour change to match homepage advice please

Hi I would like to change my cart colour to match the homepage ect, like white background and blue boxes or somthing along those lines so everything matches through out my site.
can anyone give me some help on this please, bare in mind im new to this :blush:
Thanks in advance

Ritchie

9 Aug 2006, 2:17 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cart colour change to match homepage advice please

To be fair, you provided very little in the way of information about your site, the Zen Cart version, what you have for a logo, etc. etc.

If using the most recent version and a template based on the template_default file set, then all this is controlled through the stylesheet.css. Each item has a class and this class is either in the css or can be added and then size, margins, internal & external spacing, colors font type, size, and other styling functions can be set there.

Zen-Venom Get Bitten

9 Aug 2006, 1:44 PM
#3
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

Sorry :blush:
This is the cart i am using
Zen Cart 1.3.0
Database Patch Level: 1.3.0
v1.3.0 [2006-05-25 21:43:57] (Fresh Installation)
PHP Version 4.3.11
do you mean what is the logo for my site?

10 Aug 2006, 4:38 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cart colour change to match homepage advice please

I would port the current style of your site directly into Zen Cart and then scrap the current site.

This is not a particularly complicated site and Zen Cart can look as it does and then you have the one site to maintain.

Zen-Venom Get Bitten

10 Aug 2006, 3:00 PM
#5
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

Sorted now i think it looks 100% better and goes with the homepage much better:thumbsup:

10 Aug 2006, 3:52 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cart colour change to match homepage advice please

Good Job...You can keep your tagline of "Capture your Dreams in Beautifully Shaped Glass." and add the image from your old site in this fashion:

define('HEADER_SALES_TEXT', 'Your Tagline <img src="http://your_url.com/includes/templates/your_template/images/Your Image.jpg">');

As the old image is sliced you would have to join the top & bottom pieces into one image. You could also leave out the text and just use the image to match your current site but add align right to the code snfd/or you might need to use align-absolute: center to display correctly....

You can also add your nav bar(with some changes) to Zen Cart...try searching here first for the many posts of others wanting this.

Keep at it to match more closely.

Zen-Venom Get Bitten

10 Aug 2006, 9:18 PM
#7
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

kobra:

Good Job...You can keep your tagline of "Capture your Dreams in Beautifully Shaped Glass." and add the image from your old site in this fashion:

define('HEADER_SALES_TEXT', 'Your Tagline <img src="http://your_url.com/includes/templates/your_template/images/Your Image.jpg">');

> As the old image is sliced you would have to join the top & bottom pieces into one image. You could also leave out the text and just use the image to match your current site but add align right to the code snfd/or you might need to use align-absolute: center to display correctly....
> 
> You can also add your nav bar(with some changes) to Zen Cart...try searching here first for the many posts of others wanting this.
> 
> Keep at it to match more closely.
Thanks Kobra for good the advice :thumbsup: 
Ritchie
10 Aug 2006, 11:11 PM
#8
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

kobra:

Good Job...You can keep your tagline of "Capture your Dreams in Beautifully Shaped Glass." and add the image from your old site in this fashion:

define('HEADER_SALES_TEXT', 'Your Tagline <img src="http://your_url.com/includes/templates/your_template/images/Your Image.jpg">');

> As the old image is sliced you would have to join the top & bottom pieces into one image. You could also leave out the text and just use the image to match your current site but add align right to the code snfd/or you might need to use align-absolute: center to display correctly....
> 
> You can also add your nav bar(with some changes) to Zen Cart...try searching here first for the many posts of others wanting this.
> 
> Keep at it to match more closely.
what am i doing wrong ,i am trying to add a second image to my header.
here is what i ahve done and there is no image apearing on the right of the header:blush: 
<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0
 * @version $Id: header.php 2848 2006-01-14 09:47:08Z wilt $
 */

// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Home');
define('HEADER_TITLE_LOGOFF', 'Log Out');
define('HEADER_TITLE_LOGIN', 'Log In');

// added defines for header alt and text
define('HEADER_ALT_TEXT', 'CrystalGlassFantastic- Online Shop for your Personal Glass needs');
define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/includes/templates/your_template/images/<img src="blocks.gif');
define('HEADER_LOGO_WIDTH', '260px');
define('HEADER_LOGO_HEIGHT', '78px');
define('HEADER_LOGO_IMAGE', 'logo.gif');


// header Search Button/Box Search Button
define('HEADER_SEARCH_BUTTON','Search');
define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here');
?>
11 Aug 2006, 1:26 AM
#9
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

Ok i have got the box there for the header picture from my homepage but no picture and i am having trouble moving it to the right of the header.
any ideas where i am going wrong please?

<?php /** * @package languageDefines * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: header.php 2848 2006-01-14 09:47:08Z wilt $ */ // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Home'); define('HEADER_TITLE_LOGOFF', 'Log Out'); define('HEADER_TITLE_LOGIN', 'Log In'); // added defines for header alt and text define('HEADER_ALT_TEXT', 'CrystalGlassFantastic- Online Shop for your Personal Glass needs'); define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/images/<img alt="fileyl78 (5K)" src="fileyl78.jpg" height="100" width="214" />'); define('HEADER_LOGO_WIDTH', '260px'); define('HEADER_LOGO_HEIGHT', '78px'); define('HEADER_LOGO_IMAGE', 'logo.gif'); // header Search Button/Box Search Button define('HEADER_SEARCH_BUTTON','Search'); define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here'); ?>

Ritchie

11 Aug 2006, 8:04 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cart colour change to match homepage advice please

Compare:

'<img src="http://www.crystalglassfantastic.co.uk/images/fileyl78.jpg">');
'<img src="http://www.crystalglassfantastic.co.uk/images/<img alt="fileyl78 (5K)" src="fileyl78.jpg" height="100" width="214" />');

You have got some extra code that I do not think you need, especially the double img and src tags and others.

Zen-Venom Get Bitten

11 Aug 2006, 7:40 PM
#11
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

kobra:

Compare:

'<img src="http://www.crystalglassfantastic.co.uk/images/fileyl78.jpg">');
'<img src="http://www.crystalglassfantastic.co.uk/images/<img alt="fileyl78 (5K)" src="fileyl78.jpg" height="100" width="214" />');

> 
> You have got some extra code that I do not think you need, especially the double img and src tags and others.

:blush: Still the same :( 

Ritchie
12 Aug 2006, 12:53 AM
#12
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

Hi again
Ok i have changed is but its still not appearing
here is what i changed the highlighted red area.:blush: :(

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: header.php 2940 2006-02-02 04:29:05Z drbyte $ */ // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Home'); define('HEADER_TITLE_LOGOFF', 'Log Out'); define('HEADER_TITLE_LOGIN', 'Log In'); // added defines for header alt and text define('HEADER_ALT_TEXT', 'Welcome to My Shop!!'); define('HEADER_SALES_TEXT', 'Online Shop covering all your online Glass needs.'); define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/logo2.JPG"'); define('HEADER_LOGO_WIDTH', '192px'); define('HEADER_LOGO_HEIGHT', '64px'); define('HEADER_LOGO_IMAGE', 'logo.jpg'); // header Search Button/Box Search Button define('HEADER_SEARCH_BUTTON','Search'); define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here'); ?>
12 Aug 2006, 1:00 AM
#13
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Cart colour change to match homepage advice please

First of all, you can't have two variables with the same name. The second will overwrite the first.

Secondly, you'll need to work on the image call a little. Don't forget the alt and, of course the closing >

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

12 Aug 2006, 1:05 AM
#14
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

Ok is this better ,but still no picture:blush:

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: header.php 2940 2006-02-02 04:29:05Z drbyte $ */ // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Home'); define('HEADER_TITLE_LOGOFF', 'Log Out'); define('HEADER_TITLE_LOGIN', 'Log In'); // added defines for header alt and text define('HEADER_ALT_TEXT', 'Welcome to My Shop!!'); define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/logo2.JPG">'); define('HEADER_LOGO_WIDTH', '192px'); define('HEADER_LOGO_HEIGHT', '64px'); define('HEADER_LOGO_IMAGE', 'logo.jpg'); // header Search Button/Box Search Button define('HEADER_SEARCH_BUTTON','Search'); define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here'); ?>
12 Aug 2006, 3:23 AM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cart colour change to match homepage advice please

 define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/logo2.JPG">');

Your code...where is this file???

place it in the /images folder and use the code that I referenced before...or

 define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/images/logo2.JPG">');

Zen-Venom Get Bitten

12 Aug 2006, 3:26 AM
#16
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

kobra:

define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/logo2.JPG">');

> Your code...where is this file???
> 
> place it in the /images folder and use the code that I referenced before...or
> ```
 define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/images/logo2.JPG">');

Hi Kobra
my file is in the index of my ftp?
Is that ok ?

define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/index/logo2.JPG">'); 

Ritchie.

12 Aug 2006, 3:28 AM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cart colour change to match homepage advice please

Note: on references to any image ... always use relative links vs absolute to avoid non-secure vs secure page issues ...

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!]
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!

12 Aug 2006, 3:33 AM
#18
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cart colour change to match homepage advice please

well this last code at least points to a folder???

If this folder is in the FTP area then this wil not suffice...you need to use the "FULL Actual PATH" to the file.

I can not see your structure but it might be like http://www.your_url.com/ftp/index/your_image...

what ever that actual full path is is what you need.

Why not place it in the cart images folder??

Zen-Venom Get Bitten

12 Aug 2006, 3:34 AM
#19
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

kobra:

well this last code at least points to a folder???

If this folder is in the FTP area then this wil not suffice...you need to use the "FULL Actual PATH" to the file.

I can not see your structure but it might be like http://www.your_url.com/ftp/index/your_image...

what ever that actual full path is is what you need.

Why not place it in the cart images folder??
Gonna try that now:wink2:
will let ya know how is goes:thumbsup:

12 Aug 2006, 3:47 AM
#20
ritchie111 avatar

ritchie111

New Zenner

Join Date:
Jun 2006
Posts:
70
Plugin Contributions:
0

Re: Cart colour change to match homepage advice please

Sorry to be a pain but this is doing my head in and i wont settle till its done :D
Is this correct?

 define('HEADER_SALES_TEXT', '<img src="http://www.crystalglassfantastic.co.uk/ftp/root/public_html/shop/images/logo2.JPG">');