Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2006
    Posts
    8
    Plugin Contributions
    0

    Default Dynamic Meta Tag Problems

    I have been unable to get the metatags to show up dynamically at our shop. The title tag is always "PokerSavvy" regardless of what page one is on:
    http://www.pokersavvy.com/__shop/.

    I am using zencart 1.2.6. I have found the a meta-tags.php is two different locations:

    Includes/languages/english/metatags.php
    includes/modules/meta-tags.php.

    Those files look untouched since it still has the 'TITLE' defined as Zen Cart!

    I would like to solve this problem without updating if possible. Thanks!

  2. #2
    Join Date
    Aug 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Dynamic Meta Tag Problems

    More stuff~!

    I've found that the current tags are located in the:
    Includes/templates/templates_default/common
    In both the html_header.php and then tpl_header.php

    The tags are generated using standard html such as <title>pokersavvy </title>

    How can I have those replaced with the dynamically generated title/taglines/product descriptions? Please note that I did not design this site so I don't know what the zc files should look at default.

    Thanks again!

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Dynamic Meta Tag Problems

    Who customized your site? They did not follow the override system for using Zen Cart.

  4. #4
    Join Date
    Aug 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Dynamic Meta Tag Problems

    I unfortunately don't know. I'm in intern and I'm just trying to make things work. I downloaded the files from 1.3 and was able to piece together enough to make it run by echoing the META_TAG_DESCRIPTION and META_TAG_TITLE variables in the appropriate tags and by using the developingtools to search where to change the other vars.

    This brings me to a related problem that I just ran into. Is it possible to increase the number of characters define to the META_TAG_DESCRIPTION? It truncates it a earlier than I would like.

    Thanks for the speedy reply btw!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Dynamic Meta Tag Problems

    If you're using v1.2.6, then you can probably have a safe start by using the original file from v1.2.6 or 1.2.7:
    /includes/templates/template_default/common/html_header.php

    It has all the dynamic code in it for pulling the appropriate metatag details from the languages/english/YOURTEMPLATE/meta_tags.php language file and from the product/category details in your database (as they are generated from the modules/meta_tags.php file)
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Aug 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Dynamic Meta Tag Problems

    I ended up using a litte of the code from 1.3, I dont' know where to find the older versions intact. Regardless it seems to work except I still don't know how to control what the META_TAG_DESCRIPTION grabs - I only want it to get the product or category description. I'd also like to increase the amount of characters it grabs.

    If some of our code as been overwritten in a non-standard manor, will we likely run into trouble if/when we update to the newest zen-cart? I'm sorry I don't know how much of the code has been edited. Thanks again.

    ~Erik, the PokerSavvy Intern

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Dynamic Meta Tag Problems

    Quote Originally Posted by thechoyboy
    If some of our code as been overwritten in a non-standard manor, will we likely run into trouble if/when we update to the newest zen-cart? I'm sorry I don't know how much of the code has been edited.
    Upgrading will always run into at least some small edits that have to be merged or rebuilt in the new version.
    In going from v1.2 to 1.3 you will have to do a lot of that anyway.
    Fastest way to identify how many components have been edited, is to download the original code for the version you're using, and a copy of your site. Then compare them using a text-diff tool like WinMerge.sf.net and identify the differences. You'll start with that when doing an upgrade anyway.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Dynamic Meta Tag Problems

    Quote Originally Posted by thechoyboy
    I dont' know where to find the older versions intact.
    Same place as you grab the 1.3 code ... but on the navigation menu, click the obscure "Files" link ... which will show you all files released by Zen Cart.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Dynamic Meta Tag Problems

    Quote Originally Posted by thechoyboy
    I still don't know how to control what the META_TAG_DESCRIPTION grabs - I only want it to get the product or category description. I'd also like to increase the amount of characters it grabs.
    It's all driven on a page-by-page basis via the /includes/modules/YOURTEMPLATE/meta_tags.php script.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Aug 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Dynamic Meta Tag Problems

    Thanks a lot of the information! I really appreciate it.

 

 

Similar Threads

  1. Meta Tag Problems
    By tmendes in forum General Questions
    Replies: 1
    Last Post: 22 Oct 2008, 09:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg