Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tag controler


rmyles

Recommended Posts

Hi there,

 

I've got a question in the header tag controller, specifically this piece of code:

 

// product_info.php - if left blank in products_description table these values will be used

define('HTTA_PRODUCT_INFO_ON','1');

define('HTKA_PRODUCT_INFO_ON','1');

define('HTDA_PRODUCT_INFO_ON','1');

define('HEAD_TITLE_TAG_PRODUCT_INFO','');

define('HEAD_DESC_TAG_PRODUCT_INFO','');

define('HEAD_KEY_TAG_PRODUCT_INFO','');

 

I don't want to use the defaults so I know I have to set the 1's to 0's. How do I set the title, desc, and key words when they're different for every product?

 

Example: I'm selling comic books so if my product is Batman #1 my description is going to be the same (no need to be more descriptive than that) and my key words will be Batman.

 

I've entered the information for each product using the admin tool but I just don't know how to call on it.

 

Please help, and if this doesn't make sense don't be afraid to tell me!

 

Ron

Link to comment
Share on other sites

There are fields in the tables for each product.

 

You might get the Admin add-on that goes along with this that I asked Richard to write so that you could add them in when editing products on the Admin side.

 

Much easier than playing with the raw tables.

 

Also I think I added to the README.txt a quick way to get the product_names into the products title field, this lets each be unique.

Link to comment
Share on other sites

The admin tool was used to enter all the tags information but for some reason it isn't working.

 

I just don't understand how the header tags controller uses the tag information in the database. Is it automatic or do I have to do something to the php file to make it call on the info on the database?

Link to comment
Share on other sites

// product_info.php - if left blank in products_description table these values will be used

define('HTTA_PRODUCT_INFO_ON','1');

define('HTKA_PRODUCT_INFO_ON','1');

define('HTDA_PRODUCT_INFO_ON','1');

define('HEAD_TITLE_TAG_PRODUCT_INFO','');

define('HEAD_DESC_TAG_PRODUCT_INFO','');

define('HEAD_KEY_TAG_PRODUCT_INFO','');

 

I don't want to use the defaults so I know I have to set the 1's to 0's.  How do I set the title, desc, and key words when they're different for every product?

 

 

Setting the INFO_ON definitions to 1 will pull from the database the settings you have added to each individual product.

 

There is a _ALL definition that is the "default" value that can be added to the individual settings.

 

There is a _DEFAULT ... but this is for the default.php page, not the system default. So do not confuse _ALL and _DEFAULT settings.

 

If you have definitions for each product on the _INFO_ON settings set to 1 then you should see the values from the products_description table in your meta tags.

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.
Note: Your post will require moderator approval before it will be visible.

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...