Author Topic: Fatal error: Call to undefined method shopFunctionsF::  (Read 9248 times)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Fatal error: Call to undefined method shopFunctionsF::
« on: February 24, 2012, 18:45:04 pm »
Errors like:

Fatal error: Call to undefined method shopFunctionsF::PdfIcon()
Fatal error: Call to undefined method shopFunctionsF::PrintIcon()
Fatal error: Call to undefined method shopFunctionsF::EmailIcon()

are connected to our changes to the shopFunctionsF. We use now a generic funtion, which replaces all of them.
search for:
Code: [Select]
echo shopFunctionsF::PrintIcon($link.'&print=1'); replace it with
Code: [Select]
echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon');
search for:
Code: [Select]
echo shopFunctionsF::EmailIcon($this->product->virtuemart_product_id); ?>replace it with
Code: [Select]
$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';
echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend');

When you have still problems, you can temporarly use the file below until your template is updated. (of course you must rename it to php)

[attachment cleanup by admin]
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/