Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    38
    Plugin Contributions
    1

    Default Meta titles ignored unless meta keywords/description also set

    If you create a customized meta title for any particular product, but do not also enter customized meta keywords and/or description, the customized title is ignored and ZC uses default HTML page title, and furthermore does not show the product as having customized meta tags in the admin.

    Perhaps this is intentional behavior, but if so, it makes little sense to me. I'm using 1.3.7.

    I believe these modifications fix it:

    includes/modules/meta_tags.php, lines 211-212:
    Code:
        // custom meta tags per product
        if (!empty($product_info_metatags->fields['metatags_keywords']) or !empty($product_info_metatags->fields['metatags_description']) or !empty($product_info_metatags->fields['metatags_title'])) {
    admin/includes/modules/category_product_listing.php, line 177:

    Code:
            if (zen_get_category_metatags_keywords($categories->fields['categories_id'], (int)$_SESSION['languages_id']) or zen_get_category_metatags_description($categories->fields['categories_id'], (int)$_SESSION['languages_id']) or zen_get_category_metatags_title($categories->fields['categories_id'], (int)$_SESSION['languages_id'])) {
    admin/includes/modules/category_product_listing.php, line 371:

    Code:
            if (zen_get_metatags_keywords($products->fields['products_id'], (int)$_SESSION['languages_id']) or zen_get_metatags_description($products->fields['products_id'], (int)$_SESSION['languages_id']) or zen_get_metatags_title($products->fields['products_id'], (int)$_SESSION['languages_id'])) {

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Meta titles ignored unless meta keywords/description also set

    That isn't a Bug as it was coded to work that way ...

    We will look into this for a future release for those who want a different Title but do not want to build custom keywords or custom descriptions ...

    Thanks for the info ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Meta titles ignored unless meta keywords/description also set

    I've just been working on a site and ran into exactly the same issue... good thing I searched before reporting this as a bug.

    To confirm, I tried to remove the price and model number from the meta tag title of one product. I didn't want to enter a custom title, description or keywords.

    However, you have to enter a either a custom title, keywords or description for any of the "Mark What the Product's Meta Tag Title Should Include" radio button settings to be saved.

    So, I'd vote that this is a bug.

    It would be really handy to be able to only edit the radio buttons in this certain situation - without having to input the other information. Hopefully a fix (or a change in the way things currently work) will be released in 1.3.9.

 

 

Similar Threads

  1. v139h How do I change basic meta tags such as page title and description and meta keywords
    By robertwebsite in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Aug 2012, 08:38 AM
  2. Changes to home page meta description and meta keywords from admin area?
    By nic678dog in forum Customization from the Admin
    Replies: 4
    Last Post: 24 Mar 2011, 10:10 PM
  3. Meta keywords are also being used for meta description across entire site
    By bowerstech in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Mar 2010, 11:26 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR