Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 05, 2012, 12:26:30 PM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12248 Posts in 1444 Topics by 5546 Members
Latest Member: airmaxbrainty
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Shopping cart software
| | |-+  Zen cart
| | | |-+  basic zencart customisation
« previous next »
Pages: [1] 2 Print
Author Topic: basic zencart customisation  (Read 6227 times)
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1079



WWW
« on: February 23, 2010, 07:44:16 PM »

right, you have installed zencart, what next?


first you will need a good FTP client like filezilla, you can download this for free here
http://sourceforge.net/projects/filezilla/

and here is a video tutorial on how to use filezilla
http://www.youtube.com/watch?v=yr_u2iKfAt0

now you have filezilla and have an idea how to use it, heres what you need to do to customise your zencart,

first things first, if your a UK seller you will probably want to change zip code to post code, state to county etc, on the register page,
here is how you do that
depending on whether you are using the classic template or another template you have installed, you will need to edit one of these files,

/public_html/includes/languages/english.php
or if you are using a different template to the classic green one that zencart comes with it will be,
/public_html/includes/languages/YOUR_TEMPLATE/english.php
YOUR_TEMPLATE would be the name of the template you are using, eg cool_steel or sexy_pink or whatever the template is called

ok, in english.php find this piece of code

Code:
define('ENTRY_POST_CODE', 'Zip/post code:');
  define('ENTRY_POST_CODE_ERROR', 'Your zip Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.');
  define('ENTRY_POST_CODE_TEXT', '*');
  define('ENTRY_CITY', 'City:');
  define('ENTRY_CUSTOMERS_REFERRAL', 'Referral Code:');

  define('ENTRY_CITY_ERROR', 'Your City must contain a minimum of ' . ENTRY_CITY_MIN_LENGTH . ' characters.');
  define('ENTRY_CITY_TEXT', '*');
  define('ENTRY_STATE', 'State:');
  define('ENTRY_STATE_ERROR', 'Your State must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.');

and change all the text from zip/post code to post code, state to county,  it should look like this when you have finished

Code:
define('ENTRY_POST_CODE', 'Post Code:');
  define('ENTRY_POST_CODE_ERROR', 'Your Post Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.');
  define('ENTRY_POST_CODE_TEXT', '*');
  define('ENTRY_CITY', 'City or Town:');
  define('ENTRY_CUSTOMERS_REFERRAL', 'Referral Code:');

  define('ENTRY_CITY_ERROR', 'Your City or Town must contain a minimum of ' . ENTRY_CITY_MIN_LENGTH . ' characters.');
  define('ENTRY_CITY_TEXT', '*');
  define('ENTRY_STATE', 'County:');
  define('ENTRY_STATE_ERROR', 'Your County must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.');

make sure you keep the single quote marks arount the text like this 'Post code:'
if one of the single quote marks are left out, it will cause the template to break, small details like this can have a massive impact on php the slightest error can leave you with a blank white screen where your website should be, so pay attention to how the code is entered, before changing anything, and always save an unaltered copy of the file you are editing, to your computer, just incase you need to replace the file with the original, if somthing does go wrong.

save the edited file and upload it back to the server

ok, your login/register page is now suited to a UK buyer, next the look of your website

the classic template will still have "Congratulations! You have successfully installed your Zen Cart" across the top of your main page,
here is how to remove that, go into
/public_html/includes/languages/english/index.php or if you are using a different template it will be
/public_html/includes/languages/english/YOUR_TEMPLATE/index.php (YOUR_TEMPLATE being the name of the template you are using)

and at the bottom of the page look for this code

Code:
// This section deals with the "home" page at the top level with no options/products selected
/*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
} elseif ($category_depth == 'nested') {
// This section deals with displaying a subcategory
/*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
}

and replace both lines of the "congratulations" text with what ever message you want, making sure you keep the single quote marks at either end of the phrase you are entering

save the edited file and upload it back to the server

if you want to change the "Sales Message Goes Here" or "Tagline Here" text, here is how to do that
go into
/public_html/includes/languages/english/header.php or if you are using a different template go into
/public_html/includes/languages/english/YOUR_TEMPLATE/header.php
and find this code

Code:
define('HEADER_SALES_TEXT', 'Tagline Here');

and change the 'Tagline Here' to any text you want to see on your site, keeping the single quote marks at each end of the phrase
then upload the edited file back onto your server

you may also need to go into includes/languages/english/classic/header.php
to change the 'Sales Message Goes Here'
find this code in header.php

Code:
define('HEADER_SALES_TEXT', 'Sales Message Goes Here');
and change  'Sales Message Goes Here' to what ever you want, again keeping the single quote marks
then upload the edited file back to your server

ok, you might want to change the colours and maybe the width of your zencart, heres how you do that,

changing the width, if you feel that the template you are using is to skinny, (like the classic green really is) go into
/public_html/includes/templates/classic/css/stylesheet.css       or if you are using a different template go into
/public_html/includes/templates/YOUR_TEMPLATE/css/stylesheet.css

and find this code
Code:
/*wrappers - page or section containers*/

#mainWrapper {

background-color: #ffffff;

text-align: left;

width: 720px;

vertical-align: top;

border: 1px solid #202020;

}

and change 720px to what ever width you would like the center of the page to be, somthing like 900px is a good size
save the changes and upload the file back to the server,

header logo,
the easiest way to do this is by using just the logo and getting rid of the header background image,
to remove the header background image go into here
/public_html/includes/templates/classic/css/stylesheet.css       or if you are using a different template go into
/public_html/includes/templates/YOUR_TEMPLATE/css/stylesheet.css
and find this code

Code:
#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}

and remove the ../images/header_bg.jpg just leaving ()

save the file and upload it back to the server,

its always best to leave the code for the background-image and just edit out the file path, just incase you want to add an image in there at a later date, the code is still there for it

then to add your own logo, create a logo the same width as you set your zencart (as above)
say you set your site to 900px then your logo should be 900px wide, make it any height you like, 150px, 175px somthing like that
upload it to
/public_html/includes/templates/classic/images or if you are using another template
/public_html/includes/templates/YOUR_TEMPLATE/images

then you need to go into
/public_html/includes/languages/english/classic/header.php or if you are using a different template go into
/public_html/includes/languages/english/YOUR_TEMPLATE/header.php

and find this code
Code:
define('HEADER_LOGO_IMAGE', 'logo.gif');

and change logo.gif to the name of the logo you created and uploaded
save the file and upload back to the server


colours,
how to change the background colour,
/public_html/includes/templates/classic/css/stylesheet.css       or if you are using a different template go into
/public_html/includes/templates/YOUR_TEMPLATE/css/stylesheet.css
 find this code

Code:
body {
margin: 0;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
color: #000000;
background-color: #e5edf5;
}

simply change the #e5edf5 to what ever colour you want,
here is a list of colours you can use
http://www.w3schools.com/html/html_colors.asp

changing the box headers, now there are two ways to do this,
the easy way to do this is to copy the tile_back.gif to your computer, you will find that in
/public_html/includes/templates/classic/images or if its a different template
/public_html/includes/templates/YOUR_TEMPLATE/images

use what ever photo editing software you have to change the colour of that image, and upload it back to the same folder it came from,

you can get some free image editing software from here
http://www.gimp.org/

the other way to change the box headers is to find all references to tile_back.gif in the stylesheet.css you are using for your template and delete the ../images/tile_back.gif just leaving the () and change the background-color: #abbbd3; and enter what ever colour you would like inplace of the #abbbd3

here is the code you need to change

Code:
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
margin: 0em;
background-color: #abbbd3;
background-image: url(../images/tile_back.gif);
padding: 0.5em 0.2em;
font-weight: bold;
color: #ffffff;
height: 1%;
}

and

Code:
#navEZPagesTop {
background-color: #abbbd3;
background-image: url(../images/tile_back.gif);
font-size: 0.95em;
font-weight: bold;
margin: 0em;
padding: 0.5em;
}

and

Code:
.leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
margin: 0em;
background-color: #abbbd3;
background-image: url(../images/tile_back.gif);
padding: 0.5em 0.2em;
}

and

Code:
.productListing-rowheading {
background-color: #abbbd3;
background-image: url(../images/tile_back.gif);
height: 2em;
color: #FFFFFF;
}

its always best to leave the code for the background-image and just edit out the file path, just incase you want to add an image in there at a later date, the code is still there for it

theres a start for any one wanting to customise thier zencart,

if anyone needs to know anything more, let me know and I will add it here

 8)




Made a sticky awarded some good Karma ~ Excellent post!
« Last Edit: February 23, 2010, 08:25:57 PM by Serendipity » Logged

Gothic Dropshipping
Member (ds)
Liking it Here
*****

Karma: 6
Offline Offline

Gender: Male
Posts: 101



WWW
« Reply #1 on: February 23, 2010, 08:30:29 PM »

Good post!  great
Logged

fivewood
Liking it Here
***

Karma: 5
Offline Offline

Gender: Male
Posts: 101


WWW
« Reply #2 on: February 23, 2010, 08:39:01 PM »

Wish I'd seen something like this when I first set out on the good ship Zen
Logged

http://www.footballbits.co.uk - huge selection of officially licenced football souvenirs, merchandise, memorabilia and gifts. Perfect for fans of all ages and at affordable prices.
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1079



WWW
« Reply #3 on: February 23, 2010, 08:53:54 PM »

cheers  :D

if theres any more info anyone needs, I'll post the how to,  in here again  :)
Logged

grandpa
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #4 on: February 27, 2010, 10:08:54 AM »

Thats the best bit of a tut I have found yet. Im new to zencart and that was really helpful, thanks!  great
Logged
EyeCandiLingerie
Liking it Here
***

Karma: 0
Offline Offline

Gender: Female
Posts: 80


If You Get Knocked Down Then Try Again


WWW
« Reply #5 on: December 02, 2010, 11:45:15 AM »

I know i managed to work it out sometime ago but alot of my customers are saying that on sign up they are becoming confused as obviously the date of birth is set in the American dob way

I cant for the life of me remember how to change the numbers on the php file to set it to the UK way

Can you blow these cobwebs out of my head.lol
Logged

Gothsiren09
Settling In
**

Karma: 1
Offline Offline

Gender: Female
Posts: 34



WWW
« Reply #6 on: December 02, 2010, 01:31:31 PM »

I know i managed to work it out sometime ago but alot of my customers are saying that on sign up they are becoming confused as obviously the date of birth is set in the American dob way

I cant for the life of me remember how to change the numbers on the php file to set it to the UK way

Can you blow these cobwebs out of my head.lol

Yeah - me too please!!   wink - excellent post btw - zencart completly baffles me   eek
Logged

Rainee Bows
hobnob keeper
Shareholder ;o)
*****

Karma: 19
Offline Offline

Gender: Female
Posts: 938


Currently Online: 109 visitors - 21 Members.


WWW
« Reply #7 on: December 02, 2010, 02:39:57 PM »

english.php


seamus may correct me on this as my memory is as bad as yours ....

includes/languages/english.php

unless you have a custom template then its

includes/languages/your-template/english.php



 Rainee
xxxxxx
Logged

If you want the Rainbow,you have to put up with a little Rain
Facebook Articles
Graphic & Web Design Services
Business Network
Andy c
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 568



WWW
« Reply #8 on: December 02, 2010, 11:48:58 PM »

I knew I had seen this before ,Just couldn't find it
thanks
I too would love to find out how to change the date format .. I have tried but for some reason I messed up the page completely so had to reinstall original file 
Logged
mahesh adodis
Settling In
**

Karma: 0
Offline Offline

Posts: 32


« Reply #9 on: December 03, 2010, 05:18:24 AM »

Hi,
Nice share thanks ,keep sharing 
Logged
EyeCandiLingerie
Liking it Here
***

Karma: 0
Offline Offline

Gender: Female
Posts: 80


If You Get Knocked Down Then Try Again


WWW
« Reply #10 on: December 03, 2010, 01:06:26 PM »

http://tutorials.zen-cart.com/index.php?article=401

I have just used this and managed to change my date of birth to UK format

The instructions are so simple but please before you do this BACKUP everything as i would not like to be in strife for you losing your store.

Hope this helps
Logged

Andy c
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 568



WWW
« Reply #11 on: December 03, 2010, 11:19:57 PM »

yeah I found that link too :) although i only needed the 1st section ...as as soon as I touched the 2nd part my pages went down
Logged
carlberry64
Settling In
**

Karma: 0
Offline Offline

Posts: 36


« Reply #12 on: December 18, 2010, 10:33:48 AM »

Great post seamos
do you know how to change the email and newsletter to display wider page when sent.
also how do you add coloured background on them.

cheers carl
Logged
FionaJMD
Fiiiiiioooooooooooonnaaaaaaaaaaaaaaaaa
Global Moderator
Part of the Furniture
*****

Karma: 5
Offline Offline

Posts: 301



WWW
« Reply #13 on: April 14, 2011, 10:47:51 AM »

Margins round images.

I was chatting with Rainee last night about my images butting up against each other and the suggestion was ProductListing-odd and ProductListing-Even.

I am using template grungegrey and I added the recommended information into the css stylesheet but it hasnt made any difference.

This is what I have added:

Quote
productListing-even{margin-top:5px;}

productListing-odd{margin-top:5px;}

am I missing any other details.

I know Rainee is a very busy lady so I would appreciate help from anyone who has the time.
Logged

RB_Beads
Settling In
**

Karma: 0
Offline Offline

Gender: Female
Posts: 62


WWW
« Reply #14 on: April 14, 2011, 11:15:05 AM »

Fiona I think when I put it into mine there were . in front of product! Im at work so cant get on ftp to check, but Im pretty sure there were!
Logged

Pages: [1] 2 Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009