Jump to content
Sign in to follow this  
Randelia

[contribution support] Custom META Tags per ITEM

Recommended Posts

Is there a way to do this for manufactures title and meta tags? i have it all working great but the manufactures meta tags are all default.

 

Thanks

Andy

Share this post


Link to post
Share on other sites

Has anyone got this working with manufacturers, i have tried but failed. Any tipon how to change the admin/manufacturers.php file

 

Thanks

andy

Share this post


Link to post
Share on other sites

In case anyone is interested. I uploaded a file to the contribution for a better search. The file will enable searching through Title, Meta Keywords, Description. etc.

 

Very easy to install. Only change one file. Works great on OSC.

 

Hope this helps,

 

Charles

Share this post


Link to post
Share on other sites

 

Perhaps someone can more elegantly put this in the showMETA function like the rest of the mod, but I couldn't get it to work.

 

 

In the setup instructions that were provided, Randelia may have forgotten to provide the code for the 'product_info' case in his ShowMETA function. Install as instructed per Randelia's "Installation.html".

 

Finally, modify: /includes/functions/general.php

 

REPLACE:

 

  case 'product_info':
 case 'product_review':
      $product_info_query = tep_db_query("select products_keywords, products_metadescription, products_pagetitle from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $id . "' and language_id = '" . (int)$languages_id . "'");
      $product_info = tep_db_fetch_array($product_info_query);
      if (tep_not_null($product_info['products_keywords'])){$Keywords=$product_info['products_keywords'];}
      if (tep_not_null($product_info['products_metadescription'])){$Description=$product_info['products_metadescription'];}
      if (tep_not_null($product_info['products_pagetitle'])){$Pagetitle=$product_info['products_pagetitle'];}
      break;

 

WITH:

 

  case 'product_info':
      $product_info_query = tep_db_query("select products_keywords, products_metadescription, products_pagetitle from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $id . "' and language_id = '" . (int)$languages_id . "'");
      $product_info = tep_db_fetch_array($product_info_query);
      if (tep_not_null($product_info['products_keywords'])){$Keywords=$product_info['products_keywords'];}
      if (tep_not_null($product_info['products_metadescription'])){$Description=$product_info['products_metadescription'];}
      if (tep_not_null($product_info['products_pagetitle'])){$Pagetitle=$product_info['products_pagetitle'];}
      break;       
 case 'product_review':
      $product_info_query = tep_db_query("select products_keywords, products_metadescription, products_pagetitle from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $id . "' and language_id = '" . (int)$languages_id . "'");
      $product_info = tep_db_fetch_array($product_info_query);
      if (tep_not_null($product_info['products_keywords'])){$Keywords=$product_info['products_keywords'];}
      if (tep_not_null($product_info['products_metadescription'])){$Description=$product_info['products_metadescription'];}
      if (tep_not_null($product_info['products_pagetitle'])){$Pagetitle=$product_info['products_pagetitle'];}
      break;

 

You can now also revert to the default META, TITLE values when blank.

Edited by ilocanosc

Share this post


Link to post
Share on other sites

Well, it works ok for me - except I have nothing pertaining to this mod in my admin panel. In looking at the mod I can't see anything that adds anything to the admin panel at all. Maybe I have an old version, or something. In any case I wrote a 'back office' program that populates the three new fields in the category and products_description tables along with a way to modify them as needed.

 

Someone asked - "How do I run sql?"

It's done with PhPMyAdmin. Click on the sql tab after opening your database, copy/paste randy's sql into the box, click 'go'. Worked fine for me.

 

The result can be seen on my site here -> http://bonnefidesavings.com/catalog/index.php

(note: this is a live site, so don't make an order unless you mean it. *grin*)

Edited by mb01a

Share this post


Link to post
Share on other sites

I have this contribution working for some years, in different sites, I want to have it working in combination with SIMPLE TEMPLATE SYSTEM (STS) contribution, but unfortunately I haven't been able to get it working.

Al the info is in the admin, everything seems to be ok, but it doesn't generate metatags!

I can tell, since there is no title tag displayed from the productpage.

It also takes the title tag (if nothing has been configured in one product) from the administration, not the title as configured in catalog/includes/functions/general.php

 

Where do I need to make any changes?? anyone?

Share this post


Link to post
Share on other sites

I Finally uninstalled this contrib, and installed Header Tags SEO 3.2.8 with instructions how to work with STS.

Works like a charm!

Unfortunately for this old one.

Share this post


Link to post
Share on other sites

this doesn't show any "page" info...all my product info, etc. pages show "default page title goes here"...

 

isn't it supposed to show the exact page/item meta info??

 

I read you have to change the default tags...but how can I add a default description for each product when there are over 200 products in my store??

same for keywords and page titles...

 

am I missing something here??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×