Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 4 votes

Meta Tags For Your osC Shop


184 replies to this topic

#81 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 24 August 2007, 22:00

View Posttheantiquestore, on Aug 24 2007, 09:47 PM, said:

Its been a while since I've been back to this thread. I have had success with the code I've previously posted to generate the metatags for my shop. Now, I realize I need header tags.

I've downloaded the header tags 2.6.3 version. I did read back in this thread that just using the sql and catalog side of this would generate the header tags automatically for me. My fear is that I'll be messing my current metatag codes up.

Does anyone have this working for their sites? I'd love to have header tags show up, but I dont want to have to enter the info for every product.

Thank you in advance for your help!


Adding a new meta tags contribution will of-course remove all the meta tags info you have from before.
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#82 theantiquestore

  • Community Member
  • 584 posts
  • Real Name:Rachael
  • Gender:Female

Posted 24 August 2007, 23:34

I guess what I'm asking is this, is there an easier way to add some sort of header tags to the code I am already using without adding another meta tag contrib?

#83 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 25 August 2007, 00:29

View Posttheantiquestore, on Aug 24 2007, 11:34 PM, said:

I guess what I'm asking is this, is there an easier way to add some sort of header tags to the code I am already using without adding another meta tag contrib?

What are you referring to when you say "Header Tags" ?


The header tags controller does not add any special "header tags" , it adds meta tags.
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#84 theantiquestore

  • Community Member
  • 584 posts
  • Real Name:Rachael
  • Gender:Female

Posted 27 August 2007, 22:45

Quote

What are you referring to when you say "Header Tags" ?


The header tags controller does not add any special "header tags" , it adds meta tags.

Hmmm, I thought header tags were the <h1> and so on tags. And because I thought that, I assumed this contrib would create that sort of thing. I already have a decent enough meta tag thing going on.

I was hoping my sites would rank a little higher if I found some contrib to add the <h1> tags since it does not appear that my osc sites have them.

#85 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 28 August 2007, 00:28

View Posttheantiquestore, on Aug 27 2007, 10:45 PM, said:

Hmmm, I thought header tags were the <h1> and so on tags. And because I thought that, I assumed this contrib would create that sort of thing. I already have a decent enough meta tag thing going on.

I was hoping my sites would rank a little higher if I found some contrib to add the <h1> tags since it does not appear that my osc sites have them.


You can easily add h1 tags to the solution you already have....

1. add h1 definitions to you stylesheet, something like this:

Quote

h1 {
font-family: Verdana, Arial, sans-serif;
font-size: 20px;
font-weight: bold;
margin-bottom: 0;
padding-bottom: 0;
}

2. in any files where you want to use the tags, you can then just change the line which showes the heading:

Some examples:

Product_info.php

change:

Quote

<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

To:

Quote

<td valign="top"><h1><?php echo $products_name; ?></h1></td>
<td align="right" valign="top"><h1><?php echo $products_price; ?></h1></td>


For other standard pages, something like this:

change:

Quote

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

to:

Quote

<td><h1><?php echo HEADING_TITLE; ?></h1></td>

Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#86 theantiquestore

  • Community Member
  • 584 posts
  • Real Name:Rachael
  • Gender:Female

Posted 28 August 2007, 00:39

:P I just came back to tell you I decided to do it manually via the tags and css and you had the same idea! Well, at least your info will help others before they wander off into the land of confusion I just left!

Thanks so much for your help!

#87 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 28 October 2007, 03:34

Easy Meta Tags is a automatic meta tags generator which gives basic but relevant meta tags for all your osCommerce powered web shop pages.

It works with osCommerce MS2.2 up to and included the latest RC1 version.

Instructions for install on shops using STS V4... is also included.

This is not in any way a replacement for the header tags controller which is a very fully featured solution with manual and automatic meta tags information and also includes several other extra features for your site.

But if you are uncomfortable with complex installs and/or have a modified and/or template based shop....it offers a very easy and quick install which most should be able to do by simply following the included instructions.
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#88 xlilo

  • Community Member
  • 66 posts
  • Real Name:Andrew James

Posted 18 November 2007, 14:00

how can i customise the title of the home page withpout changeing the cat paghes?

#89 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 19 November 2007, 15:07

View Postxlilo, on Nov 18 2007, 02:00 PM, said:

how can i customise the title of the home page withpout changeing the cat paghes?


you can install the latest version of easy meta tags , it lets you set the title, meta description and meta keywords for the front page only....

(All other titles and metas are generated automatically)
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#90 jbastow

  • Community Member
  • 54 posts
  • Real Name:Janna

Posted 22 November 2007, 00:35

View Posttoyicebear, on Mar 20 2006, 12:41 AM, said:

2. C-Dynamic Meta Tags

This contribution incerts meta tags automatically for your shops products and categories (and new products, specials ++), in addition it lets you add meta tags for your index page and general tags manually.

The meta tags can also be cached for shortest possible execution time, lower server load and faster page load time.

Install

Install is very easy and straight forward.

I'm installing this addon as we speak, but I'm not sure if it'll work for me. I've already installed another contribution for search engine-friendly URLs, which required me to edit the code. I've now basically blindly added the code for the meta tag contrib, and I'm not sure if it's right:


  $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

// Ultimate SEO URLs v2.1 -- NOTE: This contrib was added first
// If the action will affect the cache entries
    if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_seo_cache.php');

# cDynamic Meta Tags  -- NOTE: This was added second (I kinda just stuck it in between other chunks of code)
  // If the action will affect the cache entries
  if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_meta_cache.php');

  if (tep_not_null($action)) {
    switch ($action) {
      case 'setflag':
        if ( ($HTTP_GET_VARS['flag'] == '0') || ($HTTP_GET_VARS['flag'] == '1') ) {
          if (isset($HTTP_GET_VARS['pID'])) {
            tep_set_product_status($HTTP_GET_VARS['pID'], $HTTP_GET_VARS['flag']);
          }

          if (USE_CACHE == 'true') {
            tep_reset_cache_block('categories');
            tep_reset_cache_block('also_purchased');
          }
        }

I tested the site, and it still functions (definitely a good thing) but I just want to check that this is still going to allow the meta tags contrib to work. Thanks for your help!

#91 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 24 November 2007, 18:22

View Postjbastow, on Nov 22 2007, 12:35 AM, said:

I'm installing this addon as we speak, but I'm not sure if it'll work for me. I've already installed another contribution for search engine-friendly URLs, which required me to edit the code. I've now basically blindly added the code for the meta tag contrib, and I'm not sure if it's right:
  $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

// Ultimate SEO URLs v2.1 -- NOTE: This contrib was added first
// If the action will affect the cache entries
    if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_seo_cache.php');

# cDynamic Meta Tags  -- NOTE: This was added second (I kinda just stuck it in between other chunks of code)
  // If the action will affect the cache entries
  if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_meta_cache.php');

  if (tep_not_null($action)) {
    switch ($action) {
      case 'setflag':
        if ( ($HTTP_GET_VARS['flag'] == '0') || ($HTTP_GET_VARS['flag'] == '1') ) {
          if (isset($HTTP_GET_VARS['pID'])) {
            tep_set_product_status($HTTP_GET_VARS['pID'], $HTTP_GET_VARS['flag']);
          }

          if (USE_CACHE == 'true') {
            tep_reset_cache_block('categories');
            tep_reset_cache_block('also_purchased');
          }
        }

I tested the site, and it still functions (definitely a good thing) but I just want to check that this is still going to allow the meta tags contrib to work. Thanks for your help!


should be ok...
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#92 tng001

  • Community Member
  • 3 posts
  • Real Name:Tu

Posted 10 December 2007, 00:15

Hi Nick,

I tried to install your Basic Meta Tags and now only product pages are showing the product titles, the Category and Sub-Category pages are showing "HEADING_TITLE_NEW" instead. Any advise? thanks

#93 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 10 December 2007, 12:08

View Posttng001, on Dec 10 2007, 12:15 AM, said:

Hi Nick,

I tried to install your Basic Meta Tags and now only product pages are showing the product titles, the Category and Sub-Category pages are showing "HEADING_TITLE_NEW" instead. Any advise? thanks


Go through the install one more time and make sure you have done all the required changes.
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#94 Blackthorneppc

  • Community Member
  • 27 posts
  • Real Name:Paymun

Posted 12 December 2007, 04:43

Hi, I was wondering which meta contribution would you recommend for my ecommerce website with the type of product line I offer? I want to make sure I get good page ranks.
http://www.blackthorne.ca

Edited by Blackthorneppc, 12 December 2007, 04:44.


#95 gotit

  • Community Member
  • 16 posts
  • Real Name:Fahim

Posted 12 December 2007, 05:23

HI Jack,
I followed all the instructions for generating meta tags and added fields to product description.

Uploaded the files according to instruction and made the changes required to some files.



Now I can add meta tags in product update page in admin.


Problem is that when i click on any of those products i get this error:

Fatal error: Call to undefined function: clean_html_comments() in /homepages/4/d191950542/htdocs/includes/header_tags.php on line 79



and this is how line 79 looks like in includes/header_tags.php
else {
if ( HTTA_PRODUCT_INFO_ON=='1' ) {
(79) $the_title= HEAD_TITLE_TAG_ALL . ' ' . clean_html_comments($the_product_info['products_head_title_tag']);
} else {


I use v2.2
Can you help
Thanks,

Edited by gotit, 12 December 2007, 05:30.


#96 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 12 December 2007, 05:46

View Postgotit, on Dec 12 2007, 05:23 AM, said:

HI Jack,
I followed all the instructions for generating meta tags and added fields to product description.

Uploaded the files according to instruction and made the changes required to some files.
Now I can add meta tags in product update page in admin.
Problem is that when i click on any of those products i get this error:

Fatal error: Call to undefined function: clean_html_comments() in /homepages/4/d191950542/htdocs/includes/header_tags.php on line 79
and this is how line 79 looks like in includes/header_tags.php
else {
if ( HTTA_PRODUCT_INFO_ON=='1' ) {
(79) $the_title= HEAD_TITLE_TAG_ALL . ' ' . clean_html_comments($the_product_info['products_head_title_tag']);
} else {
I use v2.2
Can you help
Thanks,

Ask in the header tags support tread....
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#97 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 12 December 2007, 05:47

View PostBlackthorneppc, on Dec 12 2007, 04:43 AM, said:

Hi, I was wondering which meta contribution would you recommend for my ecommerce website with the type of product line I offer? I want to make sure I get good page ranks.
http://www.blackthorne.ca


Read this tread from page 1 and decide if you want automatic or manual meta tags for your shop.
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#98 bonzabuy

  • Community Member
  • 85 posts
  • Real Name:Adam

Posted 15 December 2007, 06:29

View Postthunderace, on Mar 26 2006, 05:13 AM, said:

I did this for myself, if it helps

Adds dynamic page titles and meta info to osCommerce based on the existing breadcrumb so no extra queries.

Replace <title></title> with ..

<?php include(DIR_WS_INCLUDES . 'meta_info.php'); ?>
create a file called meta_info.php and place in catalog>includes.

File contains the following: -

<?php
/*
  $Id: meta_info.php,v 1.280 2003/07/12 09:38:07 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
/**********************************************
Modifications by ...
Robert Fisher aka Thunderace
**********************************************/

// This file uses the breadcrumb class to create SEO friendly page titles
$title = '';
$meta_description = '';
$meta_keywords = '';
$count = count($breadcrumb->_trail);
for ($i=0; $i<($count); $i++)
{
  if ($breadcrumb->_trail[$i]['title'] != HEADER_TITLE_TOP && $breadcrumb->_trail[$i]['title'] != HEADER_TITLE_CATALOG)
  {
  $title .= $breadcrumb->_trail[$i]['title'] . ' | ';
  $meta_description .= $breadcrumb->_trail[$i]['title'] . ' | ';
  $meta_keywords .= $breadcrumb->_trail[$i]['title'] . ', ';
  if ($i == ($count-1))
  {
  //$shop_name is hardcoded if you wish to add your shop name to the end of <title> and meta info
  $shop_name = 'My Shop';
  $title .= $shop_name;
  $meta_description .= $shop_name;
  $meta_keywords .= $shop_name;
  }
  }
  }
  if ($title == '') {
	//below are hardcoded to show meta info when no breadcrumb exists
	$title = 'My standard shop title';
	$meta_description = 'My standard shop description';
	$meta_keywords = 'My standard shop keywords';
  }
  //Display <title> and meta info
  echo '<title>' . $title . '</title>' . "\n";
  echo '<meta name="description" content="' . $meta_description . '" />' . "\n";
  echo '<meta name="keywords" content="' . $meta_keywords . '" />' . "\n";
  ?>


Gday - sorry if this is a silly question...
Where do you put:
<?php include(DIR_WS_INCLUDES . 'meta_info.php'); ?>
?

Do I replace the title tags in product_info.php ? or index.php or others ?
Thanks in advance

Edited by bonzabuy, 15 December 2007, 06:31.


#99 toyicebear

  • Community Sponsor
  • 5,692 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 15 December 2007, 07:42

View Postbonzabuy, on Dec 15 2007, 06:29 AM, said:

Gday - sorry if this is a silly question...
Where do you put:
<?php include(DIR_WS_INCLUDES . 'meta_info.php'); ?>
?

Do I replace the title tags in product_info.php ? or index.php or others ?
Thanks in advance

Using the mod from Robert Fischer mentioned earlier in this tread you should do it for these 2 files atleast: index.php and product_info.php

change:

Quote

<title><?php echo TITLE; ?></title>

to

Quote

<?php include(DIR_WS_INCLUDES . 'meta_info.php'); ?>

Edited by toyicebear, 15 December 2007, 07:43.

Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#100 bonzabuy

  • Community Member
  • 85 posts
  • Real Name:Adam

Posted 15 December 2007, 11:47

View Posttoyicebear, on Dec 15 2007, 03:42 PM, said:

Using the mod from Robert Fischer mentioned earlier in this tread you should do it for these 2 files atleast: index.php and product_info.php

change:
to

Thanks - does this mean the tip listed (the one I quoted) was to be used as part of a contrib? I thought it was an alternative to the contrib> must have missed the point altogether.

Would be great for dumbos like me to have a thread that answered the 'which contrib is best' & 'which ones work together' or even 'what total SEO package works best' for urls, meta tags, headers etc.

I have read through what feel like hundreds of pages (always exaggerating!) & am still no wiser...

Have installed header tags for novices & was going to do a Google sitemap one just in the meantime while I try to figure out the best way to go...
This thread was probably the most helpful with the 'auto or manual meta tags' question & a few other tips so thanks to all concerned.

I guess SEO is no simple topic!

Edited by bonzabuy, 15 December 2007, 11:48.