I think it is necessary to correct this part of a code:
function onPrepareContent( &$article, &$params )
....
$regex = "#{extravote\s*([0-9]+)}#s";
if ( $extra == 2 && JRequest::getCmd('view') != 'article')
{
$article->text = preg_replace( $regex, '', $article->text );
} else {
$this->article_id = $article->id;
$article->text = preg_replace_callback( $regex, array($this,'plgContentExtraVoteReplacer'), $article->text );
}
How to get product id ?
And what variable for the text of the description of the goods?