Forums / Bug Reports / Meta titles ignored unless meta keywords/description also set

Meta titles ignored unless meta keywords/description also set

Locked

Views: 2,854

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Jul 2008, 7:36 PM
#1
capnhairdo avatar

capnhairdo

New Zenner

Join Date:
Jan 2008
Posts:
38
Plugin Contributions:
1

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:

    // 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:

        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:

        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'])) {
17 Jul 2008, 3:21 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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!]
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!

10 Mar 2010, 5:45 PM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

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

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

My Contributions: Zen Lightbox | Best Sellers Reloaded