Jump to content

Mpower

Member
  • Posts

    2
  • Joined

  • Last visited

Mpower's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. hi bsmither i tried that and i didn't seem to have any effect at all. also looking back at my previous post i noticed i didn't clearly describe my objective. The store im working on has its store settings meta description set to merge product meta description. unfortunately this store has a lot of products without product meta descriptions so what happens is that a lot of products end up with generic and duplicate meta descriptions. My objective is to use the product description as the meta description, but only for products who are missing their product meta descriptions in the first place
  2. Im looking to concatenate a sub-string of the product description on to the meta description when there is no product meta description being called. bellow is the section of seo.class.php i was trying to alter but as far as i can make out the smarty variable does not work in the seo.class.php file. Any suggestions ? public function meta_description($glue = ' - ') { if ($GLOBALS['config']->has('config', 'seo_metadata') && $GLOBALS['config']->get('config', 'seo_metadata') && !empty($this->_meta_data['description'])) { switch ((int)$GLOBALS['config']->get('config', 'seo_metadata')) { case self::TAGS_MERGE: if ($GLOBALS['config']->get('config', 'store_meta_description') && $this->_meta_data['description']) { $description[] = $this->_meta_data['description']; $description[] = $GLOBALS['config']->get('config', 'store_meta_description'); } else if ($this->_meta_data['description']) { $description = $this->_meta_data['description']; } else { $description = $GLOBALS['config']->get('config', 'store_meta_description'); } break; case self::TAGS_REPLACE: $description = $this->_meta_data['description']; break; } return (is_array($description)) ? implode($glue, $description) : $description; } else { return $GLOBALS['config']->get('config', 'store_meta_description') . $PRODUCT.description, 120; } }
×
×
  • Create New...