Zen Cart Logo
Forums / General Questions / Meta Mistakes and Need some help ZC 1.3.7

Meta Mistakes and Need some help ZC 1.3.7

Locked

Views: 1,661

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
12 Mar 2007, 2:48 AM
#1
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Meta Mistakes and Need some help ZC 1.3.7

If there is anyone who knows meta tags in the new ZC please help.
I used the meta_tags.php and now keywords are being used for the description as well.

Please break down how and where to edit the Title, tag line, keywords and description stuff.

I have good category descriptions and great product descriptions.

               Thank you, 
                           John
12 Mar 2007, 3:55 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Meta Mistakes and Need some help ZC 1.3.7

What changes did you make and to which file(s)?

12 Mar 2007, 4:00 AM
#3
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Re: Meta Mistakes and Need some help ZC 1.3.7

/includes/languages/english/my-template/meta_tags.php
there were some others that fell victim to ignorance but were later mended.

I followed a help for a previous version and crashed out my whole store.

12 Mar 2007, 4:02 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Meta Mistakes and Need some help ZC 1.3.7

What did you set things to in that file and do you have an URL to your site that we can peek at?

12 Mar 2007, 4:02 AM
#5
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Re: Meta Mistakes and Need some help ZC 1.3.7

check out the source for my site
http://www.stompaudio.com everything doubles somehow and im getting words mixed up in there that i didnt even put in the meta_tags.php

whats up with that?

// page title
define('TITLE', 'Hook up your dream system today! The 12v Entertainment Headquarters, Kicker, Spl, Power Acoustik, SoundStorm.');

// Site Tagline
define('SITE_TAGLINE', 'StompAudio the Best Car Audio In Town!');

// Custom Keywords
define('CUSTOM_KEYWORDS', 'kicker spl audiopipe speakers stereo
head units,stereos, highs, tweeters, bullet, horns, 6x9, 5x8, 6x8, 12", 10", subwoofer, enclosure, amps, amplifier, capacitor, farad, mobile video, rca cables, sound, inexpensive, legacy, lanazar, pyramid, pioneer, sonik, dvd, cd, player,volfenhag, visonik,');

// Review Page can have a lead in:
define('META_TAGS_REVIEW', 'Reviews: ');

// separators for meta tag definitions
// Define Primary Section Output
define('PRIMARY_SECTION', ' : ');

// Define Secondary Section Output
define('SECONDARY_SECTION', ' - ');

// Define Tertiary Section Output
define('TERTIARY_SECTION', ', ');

// Define divider ... usually just a space or a comma plus a space
define('METATAGS_DIVIDER', ' ');

// Define which pages to tell robots/spiders not to index
// This is generally used for. . . . . blah blah blah

12 Mar 2007, 4:15 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Meta Mistakes and Need some help ZC 1.3.7

If you read through the file:
/includes/modules/meta_tags.php

You will see the sections where the keywords are added to the end of the description for pages that are not specifically defined ...

This changes as you navigate through the site ... example, hit a category and you will see the keywords not included in the description ...

You can always customize the meta tags by copying the file to your templates and overrides directory:
/includes/modules/your_templates_dir/meta_tags.php

and change how the various pages handle constructing the meta tags ...

12 Mar 2007, 4:23 AM
#7
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Re: Meta Mistakes and Need some help ZC 1.3.7

the thread that i followed and screwed me involved the modules/meta_tags.php
Ill try it again tho.
What about /includes/lang/eng/meta_tags.php should i put it back to normal?

Reading through the modules/meta_tags.php doesnt help too much. What am i supposed to do with this file?
why are there meta_tag.php files everywhere?

Am I the only one who has this much trouble?

12 Mar 2007, 4:37 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Meta Mistakes and Need some help ZC 1.3.7

There are two main files:

/includes/modules/meta_tags.php
/includes/languages/english/meta_tags.php

Then to customize things you would use copies to:

/includes/modules/your_template_dir/meta_tags.php
/includes/languages/english/your_template_dir/meta_tags.php

The language file defines default values to help build auto generated meta tags ...

The module for the meta tags is designed to specify exactly what is used to construct the meta tags for each page ...

The various cases in the module define specifically what needs to be done to combine from known information about the page and your default defines or custom settings per Product or per Category to build each meta tags for the various pages ...

From what I can see, your meta tags are working how they should be as the main page says to add the keywords in the language file to the end of the description ...

If you don't want this to happen, you would need to customize the module to not include the keywords with the description ...

12 Mar 2007, 4:42 AM
#9
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Re: Meta Mistakes and Need some help ZC 1.3.7

This is exactly what Im trying to accomplish. . . I need to define custom keywords, description, tag line, and related for Search Engine submission.
I understand that zen creates all of the above ???>> dynamically <<??? from product descriptions n stuff when called upon. Im talking about the home page stuff. The stuff Google would see at first glance!

Thanks to all who participate in helping me get things in line here. Im feelin pretty lost here.
John

p.s
Looked at the modules/meta_tags.php . Yup thats about it. . . What am i doing in there and where am i supposed to do it?:huh:

12 Mar 2007, 4:54 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Meta Mistakes and Need some help ZC 1.3.7

Afraid I have to be a lot more awake to break down how to read php code and rewrite it for each case statement if you don't already know php ... :cry:

The main page alone has multiple possibilities based on the depth of your categories selection ...

Each page you see in the URL the main_page = blah is associated with a case statement that can be customized further or else can be associated with a case statement by adding more ...

12 Mar 2007, 5:04 AM
#11
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Re: Meta Mistakes and Need some help ZC 1.3.7

Ajeh,
I found 1/2 of what i was looking for okay. I had the includes/languages/english/meta_tags.php and the includes/languages/english/my_template/meta_tags.php identical.
Mustve overwritten the original by mistake.

So now all I need is to define my own Description.
Zen seems to be taking the Page title Site Tagline Custom Keywords and making them all into one very long description.

This is my question /\ /\ Thank you ,
John

12 Mar 2007, 5:39 AM
#13
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

Re: Meta Mistakes and Need some help ZC 1.3.7

Okay all ! Its Fixed ! ! !

If anyone else has this problem described above follow this http://www.zen-cart.com/forum/showthread.php?t=41020&highlight=meta_tags.php
thread. Make sure to read to the end of the second page as some info gets updated later in the story. :D Still works for version 1.3.7

               Now with my head out of my A#@ I thank you all, 
                                                                               John