Originally Posted by
carlwhat
you are in the right place. the variable you are looking for is:
$meta_products_name
it starts on line 216 and the final assignment is on line 248 (just for the products page).
to me, it looks like line 228 adds the extra stuff that you want to eliminate.
if you were to change the value of:
metatags_title_tagline_status
to 0 for all your products in the products table, you would accomplish what you are looking for.
good luck.
Thank you!
Here is the section of code you mentioned:
Code:
if ($product_info_metatags->EOF) {
$meta_tags_over_ride = true;
} else {
// custom meta tags per product
if (!empty($product_info_metatags->fields['metatags_keywords']) or !empty($product_info_metatags->fields['metatags_description'])) {
$meta_products_name = '';
$meta_products_price = '';
$metatags_keywords = '';
$meta_products_price = ($product_info_metatags->fields['metatags_price_status'] == '1' ? SECONDARY_SECTION . ($product_info_metatags->fields['products_price_sorter'] > 0 ? $currencies->display_price($product_info_metatags->fields['products_price_sorter'], zen_get_tax_rate($product_info_metatags->fields['products_tax_class_id'])) : SECONDARY_SECTION . META_TAG_PRODUCTS_PRICE_IS_FREE_TEXT) : '');
$meta_products_name .= ($product_info_metatags->fields['metatags_products_name_status'] == '1' ? $product_info_metatags->fields['products_name'] : '');
$meta_products_name .= ($product_info_metatags->fields['metatags_title_status'] == '1' ? ' ' . $product_info_metatags->fields['metatags_title'] : '');
$meta_products_name .= ($product_info_metatags->fields['metatags_model_status'] == '1' ? ' [' . $product_info_metatags->fields['products_model'] . ']' : '');
if (zen_check_show_prices() == true) {
$meta_products_name .= $meta_products_price;
}
$meta_products_name .= ($product_info_metatags->fields['metatags_title_tagline_status'] == '1' ? PRIMARY_SECTION . TITLE . TAGLINE : '');
if (!empty($product_info_metatags->fields['metatags_description'])) {
// use custom description
$metatags_description = $product_info_metatags->fields['metatags_description'];
} else {
// no custom description defined use product_description
$metatags_description = zen_truncate_paragraph(strip_tags(stripslashes($product_info_metatags->fields['products_description'])), MAX_META_TAG_DESCRIPTION_LENGTH);
}
$metatags_description = zen_clean_html($metatags_description);
if (!empty($product_info_metatags->fields['metatags_keywords'])) {
// use custom keywords
$metatags_keywords = $product_info_metatags->fields['metatags_keywords'] . METATAGS_DIVIDER . CUSTOM_KEYWORDS; // CUSTOM skips categories
} else {
// no custom keywords defined use product_description
$metatags_keywords = KEYWORDS . METATAGS_DIVIDER . $meta_products_name . METATAGS_DIVIDER;
}
define('META_TAG_TITLE', str_replace('"','',zen_clean_html($review_on . $meta_products_name)));
define('META_TAG_DESCRIPTION', str_replace('"','',zen_clean_html($metatags_description . ' ')));
define('META_TAG_KEYWORDS', str_replace('"','',zen_clean_html($metatags_keywords))); // KEYWORDS and CUSTOM_KEYWORDS are added above
Line 228 is this:
Code:
$meta_products_name .= ($product_info_metatags->fields['metatags_title_tagline_status'] == '1' ? PRIMARY_SECTION . TITLE . TAGLINE : '');
What should it be changed to? It looks to me that it's the bit after the ":" that needs to be eliminated.
Note that it's the site title that's being added to the product.
I'm not comfortable made changes to the database directly, but can handle some edits to the files.
Thank you so much for taking the time to have a look! I'd buy you a drink if you were local.
Bookmarks