Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Title Tag Question


Nasfat

Recommended Posts

Posted

Is there a simple way of having the product's name come up as the title tag for product_info.php, without having to add any contributions to my site?

 

I'm not worried about changing the meta tags or having all the features of the Header Tag contributions. I'm just looking for some php code to stick in the product_info.php title tag that echo's the product's name, like what the pop-up windows have. Is this even possible to do?

 

I'm fairly new to PHP, but I can't figure out on my own how the pop-up windows have unique title tags and the product_info.php doesn't.

 

Thanks for the help

Posted

Is there a simple way of having the product's name come up as the title tag for product_info.php, without having to add any contributions to my site?

 

I'm not worried about changing the meta tags or having all the features of the Header Tag contributions. I'm just looking for some php code to stick in the product_info.php title tag that echo's the product's name, like what the pop-up windows have. Is this even possible to do?

 

I'm fairly new to PHP, but I can't figure out on my own how the pop-up windows have unique title tags and the product_info.php doesn't.

 

Thanks for the help

 

I suppose you would have to query the products table for the product name before the html declarations start, and then echo it in the title tag instead of TITLE, if you really mean you want the product name in the browser title bar?

www.jyoshna.com. Currently using OsC with STS, Super Download Store, Categories Descriptons, Manufacturers Description, Individual Item Status, Infopages unlimited, Product Sort, Osplayer with flashmp3player, Product Tabs 2.1 with WebFx Tabpane and other bits and pieces including some I made myself. Many thanks to all whose contributions I have used!

Posted

ok, seems it's not quite as simple as that, but have a look at this contribution, which might do what you're looking for.

www.jyoshna.com. Currently using OsC with STS, Super Download Store, Categories Descriptons, Manufacturers Description, Individual Item Status, Infopages unlimited, Product Sort, Osplayer with flashmp3player, Product Tabs 2.1 with WebFx Tabpane and other bits and pieces including some I made myself. Many thanks to all whose contributions I have used!

Posted

I'm not worried about changing the meta tags or having all the features of the Header Tag contributions.

 

Hey Nick,

 

You really should consider adding a Header Tags contribution, something like Header Tags SEO.

They really do help with search engines, plus you can accomblish what you're after.

 

wink.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

I suppose you would have to query the products table for the product name before the html declarations start, and then echo it in the title tag instead of TITLE, if you really mean you want the product name in the browser title bar?

 

Ya, that's exactly what I'm looking for. I'll give that a try and if not, I'll try installing the contributions.

 

Thanks for the advice everyone!

Archived

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

×
×
  • Create New...