Jump to content



Latest News: (loading..)

* * * * * 4 votes

Meta Tags For Your osC Shop


  • Please log in to reply
184 replies to this topic

#61   BuckNrut

BuckNrut
  • Members
  • 8 posts
  • Real Name:John

Posted 20 February 2007 - 03:13 AM

View Posttoyicebear, on Feb 19 2007, 07:44 PM, said:

I had a look and you seem to have fixed it yourself  :thumbsup:

Please post where you found the open bracket so that other with the same problem can find it easily...


I didnt fix it. I just undid the code change from the index.php

It still has it on the conditions.php and about_us.php :)

#62   BuckNrut

BuckNrut
  • Members
  • 8 posts
  • Real Name:John

Posted 20 February 2007 - 04:57 AM

View PostBuckNrut, on Feb 19 2007, 10:13 PM, said:

I didnt fix it. I just undid the code change from the index.php

It still has it on the conditions.php and about_us.php :)

I think I have fixed mine.

I went back and replaced the files with the ones in the cDynamic_Meta_Tags v1.4 contrib.

Hopefully someone will find the error in the v1.6 and update it.

I think mine is working properly now.

#63   cwu

cwu
  • Members
  • 25 posts
  • Real Name:charles wu

Posted 03 April 2007 - 07:11 AM

Hi, Nick,

After I installed cDynamic_Meta_Tags v1.6,  I can not access my site which ask login username and password. I think it may cause by uploading Cache file that is .htaccess. what do you think. If it is would you mind send a standard. htaccess to me at ywu12003@yahoo.com.au because I lost it and I could not find it at http://oscdox.com//crossx  <_< .  Another question is where I should put stylsheet.css of cDMT v1.6 into ?

Thanks,

Charles

#64 ONLINE   toyicebear

toyicebear
  • Community Sponsor
  • 6,053 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 03 April 2007 - 08:22 AM

View Postcwu, on Apr 3 2007, 07:11 AM, said:

Hi, Nick,

After I installed cDynamic_Meta_Tags v1.6,  I can not access my site which ask login username and password. I think it may cause by uploading Cache file that is .htaccess. what do you think. If it is would you mind send a standard. htaccess to me at ywu12003@yahoo.com.au because I lost it and I could not find it at http://oscdox.com//crossx  <_< .  Another question is where I should put stylsheet.css of cDMT v1.6 into ?

Thanks,

Charles


I have not tried the newer versions after cDMT 1.4 . (You can ofcourse change to version 1.4, which is stable and is easy to install)

Edited by toyicebear, 03 April 2007 - 08:25 AM.

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.

#65   cwu

cwu
  • Members
  • 25 posts
  • Real Name:charles wu

Posted 04 April 2007 - 01:42 AM

Hi, Nick,

I think that .htaccess file in cache folder is wrong please see
AuthType Basic
AuthName "OS Commerce Administration"
AuthUserFile "/home/pcmart/.htpasswds/admin/passwd"
require valid-user
it ask  login passwd when anyone goes to the site. Do you know what sort of file format of .htaccess becaue I find a .htaccess2 in my site. the code is
# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
  <IfDefine SSL>
	SetEnvIf User-Agent ".*MSIE.*" \
			 nokeepalive ssl-unclean-shutdown \
			 downgrade-1.0 force-response-1.0
  </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>
I think that it is original .htaccess file. I only can see it by using the file manger of OSc not smartFTP. That is a little bit strange. If I know the format of .htaccess I can just reedit it and upload.

Thanks,

Charles

#66   cwu

cwu
  • Members
  • 25 posts
  • Real Name:charles wu

Posted 04 April 2007 - 05:26 AM

View PostBuckNrut, on Feb 20 2007, 03:57 PM, said:

I think I have fixed mine.

I went back and replaced the files with the ones in the cDynamic_Meta_Tags v1.4 contrib.

Hopefully someone will find the error in the v1.6 and update it.

I think mine is working properly now.

Hi,

If I use cDMTv1.4 how do I install the stylsheet.css comes with cDMT v1.4 ? Should I merge it with my current stylsheet.css ?

Thanks,

Charles

#67 ONLINE   toyicebear

toyicebear
  • Community Sponsor
  • 6,053 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 04 April 2007 - 05:32 AM

View Postcwu, on Apr 4 2007, 05:26 AM, said:

Hi,

If I use cDMTv1.4 how do I install the stylsheet.css comes with cDMT v1.4 ? Should I merge it with my current stylsheet.css ?

Thanks,

Charles

NO..the stylesheet is for the html install instructions... not to use in your site....

Read and follow the included instructions..

Edited by toyicebear, 04 April 2007 - 05:33 AM.

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.

#68   cwu

cwu
  • Members
  • 25 posts
  • Real Name:charles wu

Posted 04 April 2007 - 07:02 AM

Hi, Nick,

I think that I have installed cDMTv1.6 successfully. When I went admin I can see D. M. T, but if I try to edit it., no value can be edited. Then I went back to .sql file. It seems one of sentence missing the right ')" say,
 'tep_cfg_select_option(array(\'0\', \'1\',\'2\'),'
Please have a look it
INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (9999,'Dynamic Meta Tag','Configuration options for the Dynamic metatag',4,1);

INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES  
  ('', 'Cache options', 'D_METATAG_CACHE_OPTIONS', '0', 'Change the result cache type (reduce server load and boost speed) : 0-Off<br>1-Chemo\'s osC Advanced Cache Class (REQUIRES v1.1 or higher))<br>2-Cache to directory ', 9999, 30, '2007-02-00', '2007-02-01', NULL, 'tep_cfg_select_option(array(\'0\', \'1\',\'2\'),');

INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES  
  ('', 'Chemo Cache Class set lifetime of cache', 'D_METATAG_CHEMO_LIFETIME', '30/days', 'Original value is 30/days', 9999, 100, '2007-02-00', '2007-02-01', NULL, '');


INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES  
  ('', 'Show Model in Title ?', 'D_METATAG_SHOW_MODEL_INTITLE', 'true', 'D_METATAG_SHOW_MODEL_INTITLE', 9999, 100, '0000-00-00', '2007-02-01', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES  
  ('', 'Show Manufacturer in Title ?', 'D_METATAG_SHOW_MANUF_INTITLE', 'true', 'D_METATAG_SHOW_MANUF_INTITLE', 9999, 100, '0000-00-00', '2007-02-01', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');


INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES  
  ('', 'Pages to use HEADING_TITLE for title', 'D_METATAG_EXTRA_PAGES', '\'product_reviews.php\', \'contact_us.php\', \'product_reviews.php\'', 'Do not list pages with specific meta tags<br>Original  is : \'product_reviews.php\', \'contact_us.php\', \'product_reviews.php\'', 9999, 100, '2007-02-00', '2007-02-01', NULL,'tep_cfg_textarea(');

Thanks,

Charles

#69   cwu

cwu
  • Members
  • 25 posts
  • Real Name:charles wu

Posted 04 April 2007 - 07:16 AM

I am may be wrong after I check other .sql files.  Are the values of DMT set to not allowed to be changed.?

Thanks,

Charles

#70 ONLINE   toyicebear

toyicebear
  • Community Sponsor
  • 6,053 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 04 April 2007 - 10:25 AM

I can not comment on any version after cDMT - 1.4

1.4 do not use new db incerts, but uses language defines in file format.

So for cdmt - 1.6 problems i suggest looking through and asking guestions in the support tread for the contribution.
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.

#71   cwu

cwu
  • Members
  • 25 posts
  • Real Name:charles wu

Posted 05 April 2007 - 01:26 AM

Thanks a lot. From what I understood including your comments
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.

Pros:
- Very easy install
- Easy on server resources due to caching
- Creates all your meta tags automatically for any amount of categories/products.

Cons
- You can not enter your product/category meta tags manually
- The category part of the automatic meta tags function is very basic.

Conclusion

This is a very good seo tool for those who have a pre-populated shop with many categories and products or for those who fill up their products using feed import as well as it is a very easy server load which is more and more important teh larger your product/category numbers get.

Also its a good tool for those who whant to have meta tags and tittles but who do not want to manually incert them.

Last but not least if the header tags install is to much for you, then the easy install of this one will probably appeal to you.
that is all I have done. Just waiting for the outcoming.

#72   cwu

cwu
  • Members
  • 25 posts
  • Real Name:charles wu

Posted 05 April 2007 - 01:37 AM

Can I say that if I use google search engine to look for a product which is containing in my site the google can find out, which means cDMT working. Because I have tried a few products, the google find out straight away. It's amazing.  Before I installed cDMTv1.6 I typed any items in my site the google could not list out.

Thanks,

Charles

#73   erniethemilk

erniethemilk
  • Members
  • 85 posts
  • Real Name:Wibblus Maximus

Posted 06 April 2007 - 04:24 PM

I've tried doing this particular contribution, and for a complete numpty like me the contribution uploaded fine, only problem I've had is I'm not sure if I have to fill in the meta tags or not  :'(

If I look at the page source the meta tags are still blank, so I assume something somewhere is not working quite the way it should be.... :(



View Posttoyicebear, on Mar 20 2006, 06: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.

Pros:
- Very easy install
- Easy on server resources due to caching
- Creates all your meta tags automatically for any amount of categories/products.

Cons
- You can not enter your product/category meta tags manually
- The category part of the automatic meta tags function is very basic.

Conclusion

This is a very good seo tool for those who have a pre-populated shop with many categories and products or for those who fill up their products using feed import as well as it is a very easy server load which is more and more important teh larger your product/category numbers get.

Also its a good tool for those who whant to have meta tags and tittles but who do not want to manually incert them.

Last but not least if the header tags install is to much for you, then the easy install of this one will probably appeal to you.

Link to contrib....


In the next post i will have a closer look at some of the other meta tags contributions too.


#74 ONLINE   toyicebear

toyicebear
  • Community Sponsor
  • 6,053 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 08 April 2007 - 02:02 AM

View Posterniethemilk, on Apr 6 2007, 04:24 PM, said:

I've tried doing this particular contribution, and for a complete numpty like me the contribution uploaded fine, only problem I've had is I'm not sure if I have to fill in the meta tags or not  :'(

If I look at the page source the meta tags are still blank, so I assume something somewhere is not working quite the way it should be.... :(


Read the included instructions, in adition to uploading the contribution files you will also have to manually edit some of your web shop files.
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.

#75   Proenski

Proenski
  • Members
  • 41 posts
  • Real Name:Proenski Kaproensky

Posted 18 April 2007 - 08:56 PM

View Postthunderace, on Mar 25 2006, 09:13 PM, 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 ..

Sounds like a pretty good and maintainable  solution to me, but on which file do I need to replace the <title> tag? Or do I need to replace every single occurence on all php files??

#76 ONLINE   toyicebear

toyicebear
  • Community Sponsor
  • 6,053 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 01 May 2007 - 03:27 AM

View PostProenski, on Apr 18 2007, 08:56 PM, said:

Sounds like a pretty good and maintainable  solution to me, but on which file do I need to replace the <title> tag? Or do I need to replace every single occurence on all php files??


The most important is:

index.php and product_info.php

But you will also have to modify any other .php file where you want meta tags to show.
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.

#77   mikeemmessen

mikeemmessen
  • Members
  • 36 posts
  • Real Name:Mike Emmessen
  • Gender:Male
  • Location:Netherlands

Posted 20 July 2007 - 09:24 AM

View Postthunderace, on Mar 25 2006, 09:13 PM, 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";
  ?>

I applied this piece of code, together with the <A href="http://www.oscommerce.com/community/contributions,4354/category,all/search,breadcrumb">breadcrum contribution</A>and it works beautifully!

However, I was wondering how to add other meta tags to my webshop, like abstract, author, language, revisit and robots meta tags. Some of these (like author and language) would be identical for all webpages, so I presume I could just add these to the php scripts in the catalog folder?

One other question. Could there perhaps be a way to add custom meta keywords to the category and product pages? Probably I am asking too much, since this wonderful peace of code automatically generates meta keywords, but if there were a way add custom meta keywords per product and category, it would be so nice....

thanks for the great contribution!

Mike Emmessen

#78   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 20 July 2007 - 10:08 AM

View Postmikeemmessen, on Jul 20 2007, 10:24 AM, said:

I applied this piece of code, together with the <A href="http://www.oscommerce.com/community/contributions,4354/category,all/search,breadcrumb">breadcrum contribution</A>and it works beautifully!

However, I was wondering how to add other meta tags to my webshop, like abstract, author, language, revisit and robots meta tags. Some of these (like author and language) would be identical for all webpages, so I presume I could just add these to the php scripts in the catalog folder?

One other question. Could there perhaps be a way to add custom meta keywords to the category and product pages? Probably I am asking too much, since this wonderful peace of code automatically generates meta keywords, but if there were a way add custom meta keywords per product and category, it would be so nice....

thanks for the great contribution!

Mike Emmessen

abstract, author, language, revisit and robots meta tags.

These were left out because tbh they are useless (not used by SEs), so I wouldn't bother.

Language is best defined in <html> to my knowledge .. e.g.

<html xmlns="http://www.w3.org/1999/xhtml" lang="en_GB">

Quote

Could there perhaps be a way to add custom meta keywords to the category and product pages? Probably I am asking too much, since this wonderful peace of code automatically generates meta keywords, but if there were a way add custom meta keywords per product and category, it would be so nice.

My meta tag script is basic but does what I require of it, if you need more control then there are excellent far more powerful solutions in the contribs area.

Header Tags Controller is excellent and being written by Jack_mcs it's bound to be good code.

Hope that helps.

#79 ONLINE   toyicebear

toyicebear
  • Community Sponsor
  • 6,053 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 20 July 2007 - 11:35 AM

View Postmikeemmessen, on Jul 20 2007, 09:24 AM, said:

I applied this piece of code, together with the <A href="http://www.oscommerce.com/community/contributions,4354/category,all/search,breadcrumb">breadcrum contribution</A>and it works beautifully!

However, I was wondering how to add other meta tags to my webshop, like abstract, author, language, revisit and robots meta tags. Some of these (like author and language) would be identical for all webpages, so I presume I could just add these to the php scripts in the catalog folder?

One other question. Could there perhaps be a way to add custom meta keywords to the category and product pages? Probably I am asking too much, since this wonderful peace of code automatically generates meta keywords, but if there were a way add custom meta keywords per product and category, it would be so nice....

thanks for the great contribution!

Mike Emmessen


This tread is not a support tread for any contribution, just information about some of the available meta tags contributions and their install.

If you want more manual control, you can go back to the first page of this tread and read up on Header Tags Controller.
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.

#80   theantiquestore

theantiquestore
  • Members
  • 619 posts
  • Real Name:Rachael
  • Gender:Female

Posted 24 August 2007 - 09:47 PM

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!