homepage Welcome to WebmasterWorld Guest from 54.227.34.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
How to Add Meta Tags Using Zen Cart
How to Add Meta Tags Using Zen Cart
bilalseo

5+ Year Member



 
Msg#: 3687799 posted 4:25 pm on Jul 1, 2008 (gmt 0)

Hello

I'm new at Zen Cart, bascially I need to add meta tags while using zen cart. Could someone help me out how to use and if, then is there any module to be downloaded?

Thanks,

Bilal

 

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3687799 posted 8:12 pm on Jul 1, 2008 (gmt 0)

You will be able to add meta tags in the admin control panel. Go to the following:

Admin -> Catalog -> Categories/Products

And click on the little icon for meta tags. Once there you can set your meta tags appropriately.

bilalseo

5+ Year Member



 
Msg#: 3687799 posted 9:58 pm on Jul 1, 2008 (gmt 0)

hey thanks for the help..... I'm going for it and if I need any help please help me then...

Thanks,

bilal

bilalseo

5+ Year Member



 
Msg#: 3687799 posted 10:29 pm on Jul 1, 2008 (gmt 0)

hey i can not see the admin in my account. I can only see few buttons, like my account, renewal, etc. but there is no admin area.. where could I find that..

bilalseo

5+ Year Member



 
Msg#: 3687799 posted 10:59 pm on Jul 1, 2008 (gmt 0)

here is the code I got from the categories file:

$categories_id = $_POST['categories_id'];
$languages = zen_get_languages();
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
$language_id = $languages[$i]['id'];
$check = $db->Execute("select *
from " . TABLE_METATAGS_CATEGORIES_DESCRIPTION . "
where categories_id = '" . (int)$categories_id . "'
and language_id = '" . (int)$language_id . "'");
if ($check->RecordCount() > 0) {
$action = 'update_category_meta_tags';
} else {
$action = 'insert_categories_meta_tags';
}

$sql_data_array = array('metatags_title' => zen_db_prepare_input($_POST['metatags_title'][$language_id]),
'metatags_keywords' => zen_db_prepare_input($_POST['metatags_keywords'][$language_id]),
'metatags_description' => zen_db_prepare_input($_POST['metatags_description'][$language_id]));

if ($action == 'insert_categories_meta_tags') {
$insert_sql_data = array('categories_id' => $categories_id,
'language_id' => $language_id);
$sql_data_array = array_merge($sql_data_array, $insert_sql_data);

zen_db_perform(TABLE_METATAGS_CATEGORIES_DESCRIPTION, $sql_data_array);
} elseif ($action == 'update_category_meta_tags') {
zen_db_perform(TABLE_METATAGS_CATEGORIES_DESCRIPTION, $sql_data_array, 'update', "categories_id = '" . (int)$categories_id . "' and language_id = '" . (int)$language_id . "'");
}
}

zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories_id));
break;
// eof: categories meta tags

please help me where I can put metas, and please also direct me are these metas works for each page, I mean for each product or we can create separate metas for every product within the categories file.

Thanks

Bilal

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3687799 posted 5:01 am on Jul 2, 2008 (gmt 0)

The admin section should be at /admin and you can login at the following:

/admin/login.php

Try to log into that, and do what I said before. It works; you shouldn't need to edit the code directly :)

bilalseo

5+ Year Member



 
Msg#: 3687799 posted 2:36 pm on Jul 3, 2008 (gmt 0)

hey thanks for the help.. you are just amazing dude ;) thats why I called often webmasterworld always rocks :)

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3687799 posted 3:54 pm on Jul 3, 2008 (gmt 0)

Thanks for the compliment :)

Glad you figured it out

bilalseo

5+ Year Member



 
Msg#: 3687799 posted 5:01 pm on Jul 3, 2008 (gmt 0)

hey I'm here again.... I put the metas where you told me.. and issues are still there.. when I browse the website, it is still showing the old dynamic metas for the products...please help me out.. how can I veiw the new meta while using IE.

Thanks again

bilal

eelixduppy

WebmasterWorld Senior Member eelixduppy us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3687799 posted 5:04 pm on Jul 3, 2008 (gmt 0)

Not sure. Is the page being cached? You might want to try clearing that.

bilalseo

5+ Year Member



 
Msg#: 3687799 posted 5:50 pm on Jul 3, 2008 (gmt 0)

no sir, I have checked arround, but found nothing against those pages in google. Except index page, no page got indexed in Google. What to do then? shall I submit site map to google or resubmit my website in google for reconsideration?

Thanks in anticipation,

Bilal

bilalseo

5+ Year Member



 
Msg#: 3687799 posted 5:57 pm on Jul 3, 2008 (gmt 0)

I have changed the metas of index page, but could not get the right meta again in the IE top address bar (where title is shown). even the page is indexed in Google. What to do :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved