Forums / Templates, Stylesheets, Page Layout / Editing a template 101

Editing a template 101

Views: 2,182

Results 1 to 20 of 27
23 Jan 2011, 1:43 AM
#1
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Editing a template 101

Okay, I have figured out how to do a few tings from the admin panel, but now I am lost on how to continue on.

http://pawsomedogclothes.com

  1. Based on things I've read on here, I thought I could edit out the text included, in the header.php file, but there is no header.php in the includes/languages/english folder. There is an index.php but I don't see any text in there to edit/delete either. So, how do I remove both the text at the top "Your logo could be wider here ..." and "Congratulations, you have successfully installed ..." ??

  2. How do I place my logo at the top, and get rid of the Cherry Zen logo? How do I know what size my logo should be?

  3. Can I remove "Template designed by Sage Fish.com." from the bottom, or is it against the rules? If I can delete it, can you tell me how to do that?

Lastly, is there a place where there are some easy to read and understand tutorials ... for someone like me that has never used Zen-Cart? I am using the Zen-Cart/wiki ones, the ones I can understand ... but I'd love if there were some easy ones on customising a template ... setting up products, prices, sales tax, etc.

I have used the search function on here so many times the last week I feel brain dead. So, yes, I do know how to search the forums ... it's just hard finding specifics ... especialy for a total newbie. :wacko:

Thanks and HUGz! Jules

23 Jan 2011, 1:52 AM
#2
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

One other question ... when I open my website, up in the left hand corner of the browser it says "Zen Cart!, The Art of E-commerce - Mozilla Firefox".

Can I change that so that it has my own custom title, such as "Pawsome Dogz - Haute Designs for Pawsome Dogs! - Mozilla Firefox". ??

Thanks bunches! Jules

23 Jan 2011, 2:06 AM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Editing a template 101

You can find the answers in the Tutorials/FAQ (link at top of page).

Start with... https://www.zen-cart.com/tutorials/index.php?article=129

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Jan 2011, 2:25 AM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Editing a template 101

You might also consider using one of the free templates available for Zen Cart. They make great jumping off points and learning tools.

You can see them in action at http://(sorry, site offline)/

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Jan 2011, 3:04 AM
#5
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

Thanks Afo.

I did open the index.php file, but did not see any text in there ... just code.

However, I will say that I opened it in my host's file manager, in edit mode, so maybe it does not show up in there. Maybe I need to try and open it in a text editor for that text to show up?

HUGz! Jules

23 Jan 2011, 3:23 AM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Editing a template 101

ALWAYS edit php files with a good text editor. Crimson Editor and Notepad++ are good and free on the net.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Jan 2011, 4:16 AM
#7
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

Okay, I have opened index.php and there is no text in there to replace. I''m using Notepad++.

define('HEADING_TITLE', 'Choose an action..');

define('BOX_TITLE_ORDERS', 'Orders');
define('BOX_TITLE_STATISTICS', 'Statistics');

define('BOX_ENTRY_SUPPORT_SITE', 'Support Site');
define('BOX_ENTRY_SUPPORT_FORUMS', 'Support Forums');
define('BOX_ENTRY_MAILING_LISTS', 'Mailing Lists');
define('BOX_ENTRY_BUG_REPORTS', 'Bug Reports');

define('BOX_ENTRY_FAQ', 'FAQ');
define('BOX_ENTRY_LIVE_DISCUSSIONS', 'Live Discussions');
define('BOX_ENTRY_CVS_REPOSITORY', 'CVS Repository');
define('BOX_ENTRY_INFORMATION_PORTAL', 'Information Portal');

define('BOX_CONNECTION_PROTECTED', 'You are protected by a %s secure SSL connection.');
define('BOX_CONNECTION_UNPROTECTED', 'You are <font color="#ff0000">not</font> protected by a secure SSL connection.');
define('BOX_CONNECTION_UNKNOWN', 'unknown');

define('CATALOG_CONTENTS', 'Contents');
define('TOOLS_BACKUP', 'Backup');
define('TOOLS_BANNERS', 'Banners');
define('TOOLS_FILES', 'Files');

// statistics
define('REPORTS_PRODUCTS', 'Products');
define('REPORTS_ORDERS', 'Orders');

define('BOX_ENTRY_CUSTOMERS', 'Customers:');
define('BOX_ENTRY_NEWSLETTERS', 'Newsletter subscribers:');

define('BOX_ENTRY_PRODUCTS', 'Products:');
define('BOX_ENTRY_PRODUCTS_OFF', 'Products deactivated:');
define('BOX_ENTRY_REVIEWS', 'Reviews:');
define('BOX_ENTRY_REVIEWS_PENDING', 'Reviews Pending Approval:');

define('BOX_ENTRY_NEW_CUSTOMERS', 'New customers:');
define('BOX_ENTRY_NEW_ORDERS', 'New orders:');

define('BOX_ENTRY_SPECIALS_EXPIRED','Specials Expired');
define('BOX_ENTRY_FEATURED_EXPIRED','Featured Products Expired');
define('BOX_ENTRY_SALEMAKER_EXPIRED','Sales Expired');

define('BOX_ENTRY_SPECIALS_ACTIVE','Specials Active');
define('BOX_ENTRY_FEATURED_ACTIVE','Featured Products Active');
define('BOX_ENTRY_SALEMAKER_ACTIVE','Sales Active');

define('LAST_10_DAYS', 'Counter History for last %s recorded days');
define('SESSION', 'Session');
define('TOTAL', 'Total');
?>

I don't see any of the text I mentioned in my first post. :no:

Since I don't have a header.php file, is the text maybe in another .php file?

Thanks! Jules

23 Jan 2011, 4:26 AM
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Editing a template 101

I find it unlikely that you don't have a header.php file. Look in includes/languages/english/cherry_zen/

You can also try searching for the text you want to change using admin>tools>developers tool kit. Scroll to the bottom of the screen and type the phrase in the box. Search in "all files catalog/admin".

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Jan 2011, 5:13 AM
#9
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

afo:

I find it unlikely that you don't have a header.php file. Look in includes/languages/english/cherry_zen/

You can also try searching for the text you want to change using admin>tools>developers tool kit. Scroll to the bottom of the screen and type the phrase in the box. Search in "all files catalog/admin".

There is no includes/languages/english/cherry_zen/

There is ... /extra_definitions/
... /images/
..../modules/

I tried the developers tool kit, but it made absolutely no sense to me. I'm sorry. Still real new to all of this.

HUGz! Jules

23 Jan 2011, 5:26 AM
#10
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Editing a template 101

The developers tool kit will give you a list of the files where the phrase you're looking for is found.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Jan 2011, 5:27 AM
#11
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

Okay, I tried the dev tool kit again ... at the bottom ... I tried 'header.php', 'header, and 'HEADER', and all came back with "Error: No matching Configuration Keys were found ... header.php, header and HEADER.

:(

My oh my ... I can't imagine how this is going to go for me when I try adding products. :blink:

HUGz! Jules

23 Jan 2011, 5:40 AM
#12
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

Okay, hold on ... I found it in the dev tool kit ... but I am not seeing it in my FTP program ....

Going way back in my brain ... is this maybe because the CHMOD (?) is not set up for this to be a writable file?

Oh my doG .... is CHMOD even a word? :blush:

HUGz! Jules

23 Jan 2011, 5:42 AM
#13
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

Found it. :smartalec:

Call me Arnold .... "I WILL BE baaaackkk!"

HUGz! Jules

23 Jan 2011, 6:08 AM
#14
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

Crapolla ... I did something wrong. I thought I just replaced the text ... but now my website just goes to a blank page. :lookaroun

All I did was replace the text at the bottom.

define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');

// Showcase vs Store
if (STORE_STATUS == '0') {
  define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
} else {
  define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
}

define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');

define('TEXT_INFORMATION', 'Define your main Index page copy here.');

//moved to english
//define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
  // This section deals with product-listing page contents
  define('HEADING_TITLE', 'Available Products');
  define('TABLE_HEADING_IMAGE', 'Product Image');
  define('TABLE_HEADING_MODEL', 'Model');
  define('TABLE_HEADING_PRODUCTS', 'Product Name');
  define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
  define('TABLE_HEADING_QUANTITY', 'Quantity');
  define('TABLE_HEADING_PRICE', 'Price');
  define('TABLE_HEADING_WEIGHT', 'Weight');
  define('TABLE_HEADING_BUY_NOW', 'Buy Now');
  define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
  define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
  define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
  define('TEXT_SHOW', 'Filter Results by:');
  define('TEXT_BUY', 'Buy 1 \'');
  define('TEXT_NOW', '\' now');
  define('TEXT_ALL_CATEGORIES', 'All Categories');
  define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
  // 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', 'Welcome to Pawsome Dogz ');
} 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', 'Welcome!  We're so glad you stopped by!  We just love when company drops in ... especially if you brought treats! '); 
}
?>

:frusty:

Maybe an adult beverage and hour in the hot tub will help? :oops:

HUGz! Jules

23 Jan 2011, 7:10 AM
#15
kobra avatar

kobra

Black Belt

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

Re: Editing a template 101

  define('HEADING_TITLE', 'Welcome!  We're so glad you stopped by!  We just love when company drops in ... especially if you brought treats!'); 

You omitted the closing single quote ' that I have highlighted where it should be in the code above

And the major fo-paw is that you used a single quote in the text in

we're

And that is read as the ending single quote
You need to use the escape sequence for any punctuation in text

single quote = '
So this becomes - - and the forum will most likely convert it

we're 

And you do have a header.php file at
/includes/languages/english/
Yes it did so I have added spaces to prevent that
we & # 3 9 ; re

Zen-Venom Get Bitten

23 Jan 2011, 7:15 AM
#16
kobra avatar

kobra

Black Belt

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

Re: Editing a template 101

And you do have a header.php file at
/includes/languages/english/

Zen-Venom Get Bitten

23 Jan 2011, 8:44 AM
#17
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

Kobra, I don't know how to thank you! Do you like brownies? :smile:

Okay ... and yes, I had an adult beverage and some hot tub time ... are you saying that when I add words to the .php files such as we're, they're, I'll, you'll, etc. ... that I have to add a space before and after the ' ? So it would be we ' re, they ' re. ??

Just FYI ... I used to be an admin and a mod at 2 forums back in the day ... and I don't like people doing the work for me ... I do want to learn ... which is why I ask questions.

But, please know how much I appreciate the help!! :wub:

HUGz! Jules

23 Jan 2011, 8:51 AM
#18
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

use the escape sequence

And, as I re-read this, I have no clue what that means. :cry:

HUGz! Jules

23 Jan 2011, 3:22 PM
#19
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Editing a template 101

write it like this

we're
they're
etc.

A backslash before the single quote.
When you see something between two single quotes you escape it with the backslash, so you'll have opening quote middle quote escaped and closing quote.

23 Jan 2011, 5:23 PM
#20
nekkidfish avatar

nekkidfish

Zen Follower

Join Date:
Jan 2011
Posts:
124
Plugin Contributions:
0

Re: Editing a template 101

keneso:

write it like this

we're
they're
etc.

A backslash before the single quote.
When you see something between two single quotes you escape it with the backslash, so you'll have opening quote middle quote escaped and closing quote.

Thank you for the explain Keneso!!!

HUGz! Jules