Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Support Thread for Product Header Tags Contribution


naylwin

Recommended Posts

Sweet and short! If you are one of those who care about the SEO [search Engine Optimization] stuffs and don't want to deal with too many FINDs and REPLACEs and ask for support at forum and wait for reply about a week or so. Here is the contribution you might want to try it out. I personally wrote this contribution to use it on my site although there are many excellent contributions out there because I am one of those who don't want to deal with too many FINDs and REPLACEs. You will get this contribution installed on your OSC with one SQL command, one new file upload, and two FINDs and REPLACEs.

 

 

Nay

Link to comment
Share on other sites

  • 1 month later...

Naylwin,

 

Thanks for your contribution, it looks very simple to setup. However, I believe I have done everything correctly and it's not working for me. I have tried previous header mods, but I believe I removed all of the code correctly.

 

I definitely have the DB setup correctly and have input test data.

 

If you could take a quick look at the application_top.php and product_info.php here, I would appreciate it:

http://www.vegasmaximus.com/UpdatedFiles.rar

 

When the products are viewed, here is what is being displayed in the source code...

<title>TITLE HERE</title><meta name="description" content=""><meta name="keywords" content="">

 

Thanks for your help!

Link to comment
Share on other sites

Naylwin,

 

Thanks for your contribution, it looks very simple to setup. However, I believe I have done everything correctly and it's not working for me. I have tried previous header mods, but I believe I removed all of the code correctly.

 

I definitely have the DB setup correctly and have input test data.

 

If you could take a quick look at the application_top.php and product_info.php here, I would appreciate it:

http://www.vegasmaximus.com/UpdatedFiles.rar

 

When the products are viewed, here is what is being displayed in the source code...

<title>TITLE HERE</title><meta name="description" content=""><meta name="keywords" content="">

 

Thanks for your help!

 

Hi futurestar! It seems that you have installed the STS 4.5 in your system. I believe that might be causing the problem. STS usually comes with the feature to handle custom variables such as

$sts->template['MyText']='Hello World';

in catalog/includes/modules/sts_inc/sts_user_code.php. You can modify this code to use with title, meta tags, and etc. If that is too complicated for you, I would suggest you to place the code:

 

<?php
/* Nay Meta Tags */
if(isset($header_tags) && $header_tags){
if(!$header_tags->his_empty()){
	echo $header_tags->houtput('META');
	$htitle = (isset($header_tags->htitle) && $header_tags->htitle)?$header_tags->htitle:'';
}
}
/* End Nay */
?>
<title><?php echo (isset($htitle) && tep_not_null($htitle))?$htitle:TITLE; ?></title>

 

from product_info.php line: 24 to 34 to head section of product_info template (possibly catalog/includes/sts_templates/full/product_info.php_3.html).

 

I hope this helps.

Let me know if that works out for you.

 

Nay

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...