Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

<title> tag on product_info pages


phatweb

Recommended Posts

Ok... Currently in catalog/product_info.php - I have this:

 

<title><?php echo $the_product_name; ?> Magazine</title>

 

It works great see it here:

http://www.magazines2u.com/product_info.ph...oducts_id/11660

 

Basically just takes the magazine's name and adds Magazine after the name in the title tag.

 

Now... I'd like it to read:

 

Money Magazine - Starting at only $19.95

 

I've tried:

<title><?php echo $the_product_name; ?> Magazine - Starting at only <?php echo $products_price; ?></title>

 

And the like but can't seem to get it to work... anyone know how to do this?

 

Thanks in advance...

Link to comment
Share on other sites

By doing it this way, you are hurting your chances of getting a better position in the search engine listings. I recommend installng the Header Tags controller. You can then set the title to what you want and it will be optimized properly for the SE's.

 

As for this problem, in order for <?php echo $products_price; ?> to work, $products_price has to be declared before the title is displayed. So you may need to include a database call to get that figure.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...