PHP
  Home arrow PHP arrow Page 2 - Using PHP to Create Relevant Title Tags in osCommerce Websites
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

Using PHP to Create Relevant Title Tags in osCommerce Websites
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2009-05-21


    Table of Contents:
  • Using PHP to Create Relevant Title Tags in osCommerce Websites
  • osCommerce Web Template Files and Page Title Naming
  • Proper Page Title Naming for the Home Page and Categories
  • Proper Page Title Naming for the Product Pages

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Using PHP to Create Relevant Title Tags in osCommerce Websites - osCommerce Web Template Files and Page Title Naming
    ( Page 2 of 4 )

    In order to successfully create appropriate names for the page title in an osCommerce website, you must edit two important files and the corresponding important pages of the website.

    1. Index.php - This is the most important template file in osCommerce. This template is responsible for generating titles for the home page and category pages. 

    2. Product_info.php - This template is responsible for naming the title tag for the product pages. This template can cause very serious problems. In a giant osCommerce site with thousands of products, using this template unmodified also means there are thousands of pages with the same titles.

    Other pages are not as important as the two above, but it is very important that they also use unique and relevant page titles. The pages are found in the main site navigation menu. For example:

    • New Products page: products_new.php

    • Special offer page: specials.php

    • Contact us page: contact_us.php

    • Privacy Policy page: privacy.php

    You should also modify other pages that are commonly found if you have them, such as the terms and conditions page, sitemap page and "About Us" page.

    We'll start with the index.php since this is a very important file. By default, the title tag PHP script found in the index.php is:

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

    This is not enough. It will produce a home page title equal to the store owners' name, or the name of the store, which will not help with search engine optimization efforts.

    It gets worse. The page title on the categories pages will be the same as the one on the home page and even the product pages! 

    This can confuse visitors shopping your online store powered by osCommerce; even search engine bots like Googlebot will have problems sorting things out. Your site will be very hard for them to understand, and in return, since you confused Googlebot, you will not be rewarded with great rankings and traffic.



     
     
    >>> More PHP Articles          >>> More By Codex-M
     

       

    PHP ARTICLES

    - Adding Ordering and Grouping Clauses to the ...
    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek