phatweb Posted November 15, 2005 Posted November 15, 2005 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...
phatweb Posted November 17, 2005 Author Posted November 17, 2005 Anyone? All I'm wanting to do is add the price to the <title> tag.
Jack_mcs Posted November 17, 2005 Posted November 17, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.