And a bit more to add to my post below...
After you fix the syntax error in user.php, you'll likely experience another error:
Fatal error: Call to undefined method shopFunctionsF::printicon() in xxxxxxxx/templates/your_template/html/com_virtuemart/productdetails/default.php on line 80
In Virtuemart 2.0.1N looks like they have changed the product detail print/pdf/email function? You can get rid of this error by editing templates/gk_esport/html/com_virtuemart/productdetails/default.php
delete everything from line 74 to 82 (this code below)
- Code: Select all
<?php // PDF - Print - Email Icon
if ( VmConfig::get('show_emailfriend', 1) == '1' || VmConfig::get('show_printicon', 1) == '1') { ?>
<?php $link = (VmConfig::isJ15()) ? 'index2.php' : 'index.php';
$link .= '?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id;
$pdflink= JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&format=pdf');
// echo shopFunctionsF::PdfIcon($pdflink );
echo shopFunctionsF::PrintIcon($link.'&print=1');
echo shopFunctionsF::EmailIcon($this->product->virtuemart_product_id); ?>
<?php } // PDF - Print - Email Icon END ?>
and replace it with the new code from the default template code in VM 2.0.1N (this code below)
- Code: Select all
<?php // PDF - Print - Email Icon
if (VmConfig::get('show_emailfriend') || VmConfig::get('show_printicon') || VmConfig::get('pdf_button_enable')) { ?>
<div class="icons">
<?php
//$link = (JVM_VERSION===1) ? 'index2.php' : 'index.php';
$link = 'index.php?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->virtuemart_product_id;
$MailLink = 'index.php?option=com_virtuemart&view=productdetails&task=recommend&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component';
if (VmConfig::get('pdf_icon', 1) == '1') {
echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_button_enable', false);
}
echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon');
echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend');
?>
<div class="clear"></div>
</div>
<?php
} // PDF - Print - Email Icon END ?>
Looks like that does the job and I hope it helps those with errors.