VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: smimish on February 02, 2012, 20:28:51 PM

Title: A little enhancements
Post by: smimish on February 02, 2012, 20:28:51 PM
Hi guys,
I am not sure how to commit to your development branch. However, the following little fix will remove some of the error messages:
file: components\com_virtuemart\helpers\shopfunctionsf.php
replace line 166 into this:
if (VmConfig::get('show_emailfriend', 1) == '1' && !JRequest::getVar('pop') && (isset($product->virtuemart_product_id) && $product->virtuemart_product_id > 0)  ) {

i.e., just to check if the $product->virtuemart_product_id is set before trying to access it.
hope this helps.
 
Title: Re: A little enhancements
Post by: Milbo on February 02, 2012, 20:35:06 PM
Thanks, but this function is deprecated since 2.0.1