If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Only starting so i just want to kiss!!!

Only starting so i just want to kiss!!!

Locked

Started by alnaad on 28 Jun 2009, 8:05 AM · Views: 2,708

Results 1 to 20 of 35
This thread is locked. New replies are disabled.
28 Jun 2009, 8:05 AM
#1
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Only starting so i just want to kiss!!!

Hi Everyone,

I have only 10 products to sell.
All i want is a shopping cart, a proceed to checkout where i get an invoice with only mode of payment: simple bank transfer. so there are many features i don't need at this stage.

The first change i tried in my css was to change the body bgrd from a color to an image with bgrd repeat. Not working. Looks like the default template is still taking priority to mine.

Only working with MAMP at the moment.

Anyone who could help?

Thanking you

28 Jun 2009, 9:38 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Only starting so i just want to kiss!!!

Are you a boy :yuck:

or a girl? :smile:

20 years a Zencart User

28 Jun 2009, 9:47 AM
#3
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

very funny schoolboy:D
I want to Keep It Simple Stupid
Can you help?
Managed to get my first edit to style sheet working.
Now i want a logo centered to replace the zencart one.

28 Jun 2009, 10:03 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Find the line in your stylesheet that says:

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
	float: left;
	}

REMOVE ```
#logo,


... so you get:-

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;
}


Directly under that, put the following:-

#logo {
text-align: center;
}

20 years a Zencart User

28 Jun 2009, 12:50 PM
#5
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Thank you schoolboy, now if you could tell me how i replace the zencart logo with mine i would be very grateful.

28 Jun 2009, 1:14 PM
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Sorry. Wrong answer. Just a sec...

Breakfast: the most important donut of the day.

28 Jun 2009, 1:20 PM
#7
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

In the file includes/languages/english/header.php change the following lines to suit your logo...

define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');

You can create your logo with the same name -- logo.gif -- or you can change the name in this file. If your dimensions are different than the default, you'll also need to make some adjustments in the stylesheet to make sure the wrapper is tight around the logo.

Rob

Breakfast: the most important donut of the day.

28 Jun 2009, 3:45 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

I wish rob would stop posting on threads that I post on, because every time I look at that donut, my mouth starts to water!

20 years a Zencart User

29 Jun 2009, 3:36 AM
#9
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

thank you Funny boy and doughnut.

DO you remember Borat in the supermarket? What's that? Cheese and what's that? Cheese...etc
Yes too much stuff on this template makes it hard to understand what's what.
I just want something basic like i explained when i started this thread.
Couldn't you guys make the learning experience simpler?

Like ok let's start with just one product ( say doughnuts).
I put them on line there is a shopping cart and a check out and it generates a message saying "here are my account details, transfer the money onto it with the invoice number and we'll send you the doughnut.

I guess what i am trying to say is how do i get rid of all that stuff so i can put what i want in?

I managed to change background and size. I managed to change logo for mine but what is tagline? and what is EZ pages?

Could go on but will stop here for the moment.

i am a student in multimedia so i know a bit of html,CSS,php. Just enough to not be a complete idiot (i still feel like one)

Anyway it is all fun and games so i still enjoy this forum

Cheers

29 Jun 2009, 4:06 AM
#10
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Just had a look at rstevenson's site.Very nice! Yes something like that.
How do i go about just keeping the features i need ?

29 Jun 2009, 5:42 AM
#11
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

I guess what i need to know is:
Where do all the stuff i see on my template lives?
How do i get rid of the features i don't need
How do i place the one i need like on line banking (i have downloaded 2 modules i think will give me this)

Guys i'm really trying hard! Some of the answers i found by myself but i need some help and this forum is a real maze for someone not used to it.

29 Jun 2009, 6:01 AM
#12
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Please see what appears in RED at the foot of this post... :smile:

The zencart site is also FULL of additional help and advice (see at the top right of your screen - the orange bar).

If you have working knowledge of CSS and PHP, you come into the ZC community with a distinct advantage.

If you intend e-commerce being more than just a weekend hobby, then buy the Owners Manual. (I still refer to it even though I have over 5 years' experience in ZC.)

29 Jun 2009, 7:49 AM
#13
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

ok i'm going to get the book, 'cause i'm serious. But with due respect, how do you expect newbies to catch up with you by sending them to where you must know they already have been to find info. If i am here that's because i cannot make sense of what i am seing. Should i just let go just because i don't understand what you're talking about? My concern is that this book is going to use the same language...Sorry if i come accross a bit despondent... THe fact is I REALLY WANT TO LEARN. So far i got rid of most of the stuff in the side columns and the only way i was able to get rid of "Have you got yours yet etc... was by deleting content of /languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php which i find worrying because of the file name itself...Where does the rest of the content resides?

I know it must be hard for you too

29 Jun 2009, 7:51 AM
#14
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

ok i'm going to get the book, 'cause i'm serious. But with due respect, how do you expect newbies to catch up with you by sending them to where you must know they already have been to find info. If i am here that's because i cannot make sense of what i am seing. Should i just let go just because i don't understand what you're talking about? My concern is that this book is going to use the same language...Sorry if i come accross a bit despondent... THe fact is I REALLY WANT TO LEARN. So far i got rid of most of the stuff in the side columns and the only way i was able to get rid of "Have you got yours yet etc... was by deleting content of /languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php which i find worrying because of the file name itself...Where does the rest of the content resides?

I know it must be hard for you too:(

29 Jun 2009, 8:27 AM
#15
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

One of the most useful features in your admin panel is under the TOOLS menu>>> "Developers Tool Kit".

You use this function to locate strings of either text, or code, in the files associated with ZC.

In general, bits of embedded text (labels, definitions, titles) are contained in PHP DEFINE STATEMENTS, and (almost always) these DEFINES are in the language php files.

How it works (generally speaking) is as follows...

A php template and/or module file contains php CONSTANTS. These are UPPER_CASE_STRINGS.

Here's one random example (of many hundreds that exist in the code files). This one is on line 25 of the tpl_modules_create_account.php file ...

<div class="information"><?php echo TEXT_PRIVACY_CONDITIONS_DESCRIPTION;?></div>

What the above is saying is this...

"This division is governed by the "information" CSS class, so apply whatever style conditions that this class requires. Then, after determining what language the site is in, go grab whatever the DEFINE statement is for the constant called TEXT_PRIVACY_CONDITIONS_DESCRIPTION, and "echo" it to the browser page."

If your site is configured to use english as the language, zencart will then hunt in the language folders for english, for whatever is defined for this constant.

... and it will see that what it needs to "echo" is contained in line 609 in:-

/includes/languages/english.php

  define('TEXT_PRIVACY_CONDITIONS_DESCRIPTION', 'Please acknowledge you agree with our privacy statement by ticking the following box. The privacy statement can be read <a href="' . zen_href_link(FILENAME_PRIVACY, '', 'SSL') . '"><span class="pseudolink">here</span></a>.');

*(Interestingly, this particular DEFINE also contains other constants - the hyperlink location of the Privacy Statement - which is written in a way to ensure that your zencart references the appropriate page, depending again on your language choice.)
*

To change the DEFINE, it's simply a case of altering the text that is contained BETWEEN to two single quotes after the constant.

define('WHATEVER_CONSTANT_IS_BEING_REFERRED_TO','This text string can be edited to your needs, or removed completely to leave a blank space.');

... so let's say you didn't want it to "echo" anything... You leave the define statement in the file, and just remove all the text BETWEEN the two single quotes...

define('WHATEVER_CONSTANT_IS_BEING_REFERRED_TO','');

... so now, as there is NOTHING to echo for that define constant, the php code will just return nothing to the page it has cobbled together.

IF you delete the entire define line from the code, it will return the CONSTANT - which is what you don't want, so you never delete the DEFINE statement completely - just the text element that is associated with it.

There is lots of help on the forum and tutorials about using TOOLS>>>DEVELOPERS TOOL KIT.

29 Jun 2009, 2:07 PM
#16
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

:smile:Thank you for your new approach. It will work out in the end and i promised myself that the first sale i make i will donate to zencart.
Can i ask you to tell me if i can just delete the content of the following file: /languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php. I am asking this because it seems the only way to get rid of the ad for the zencart book.If yes... Why not delete the file altogether?
My second question is in order to clean the site of all the products will i just delete the categories to replace them by the ones i want ?

29 Jun 2009, 3:54 PM
#17
afo avatar

afo

Totally Zenned

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

Re: Only starting so i just want to kiss!!!

If you create a custom template (or get one from http://(sorry, site offline)/) the ad will disappear.

DO NOT delete files that came with Zen Cart. YOUR_TEMPLATE indicates your custom template.

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

29 Jun 2009, 6:57 PM
#18
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Yes... Afo makes a very important point. One of the first things you ought to do is set up your own (CUSTOM) template (see the FAQ/TUTORIALS).

It is not a good idea to make changes to core files. Changes you make are done to COPIES of core files, and these copies - as and when you create them - reside in your CUSTOM (over-ride) folders.

So, set up a custom template (its a good learning curve) and sets you up for the correct and disciplined approach to managing your site.

20 years a Zencart User

30 Jun 2009, 12:28 AM
#19
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

but:huh:i thought that's what i did. For the moment i am only working with MAMP so in MAMP/htdocs/zencart138 and in that i have includes/templates/test which is the name i gave to my template.
Now what this new template should look like? You're telling me that the ad wouldn't be on it. Anything else? What about the other stuff ?
I think i have made a real dog breakfast of it...:yes:

30 Jun 2009, 2:30 AM
#20
afo avatar

afo

Totally Zenned

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

Re: Only starting so i just want to kiss!!!

Did you copy any files into your /test folder(s)? Did you create a includes/templates/YOUR_TEMPLATE/template_info.php file to identify your template and select it from admin>tools>template selection?

Take a peek at the site I mentioned earlier - http://(sorry, site offline)/ - and pick a design you like. Download it and look at how the template was constructed. It'll help you build one of your own.

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

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