Welcome to WebmasterWorld Guest from 54.196.175.173

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

How to Add Meta Tags Using Zen Cart

How to Add Meta Tags Using Zen Cart

     

bilalseo

4:25 pm on Jul 1, 2008 (gmt 0)

5+ Year Member



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

8:12 pm on Jul 1, 2008 (gmt 0)

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



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

9:58 pm on Jul 1, 2008 (gmt 0)

5+ Year Member



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

Thanks,

bilal

bilalseo

10:29 pm on Jul 1, 2008 (gmt 0)

5+ Year Member



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

10:59 pm on Jul 1, 2008 (gmt 0)

5+ Year Member



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

5:01 am on Jul 2, 2008 (gmt 0)

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



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

2:36 pm on Jul 3, 2008 (gmt 0)

5+ Year Member



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

eelixduppy

3:54 pm on Jul 3, 2008 (gmt 0)

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



Thanks for the compliment :)

Glad you figured it out

bilalseo

5:01 pm on Jul 3, 2008 (gmt 0)

5+ Year Member



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

5:04 pm on Jul 3, 2008 (gmt 0)

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



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

bilalseo

5:50 pm on Jul 3, 2008 (gmt 0)

5+ Year Member



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:57 pm on Jul 3, 2008 (gmt 0)

5+ Year Member



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 :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month