Solved Problem in product model using multible product modules

Started by earlybird, May 16, 2014, 16:00:11 PM

Previous topic - Next topic

earlybird

I had a mysterious Problem when I added two product modules on the same page.
With only one module everything was ok. (after updating VM2 to the latest Version)
So I started searching for the Problem.
My solution was to change the following Line:
/administrator/components/com_virtuemart/models/product.php Line: 245
there was :
if ( $this->searchplugin !== 0)
to
if (isset($this->searchplugin) && $this->searchplugin != '' && $this->searchplugin !== 0)
cause the value of $this->searchplugin was not 0 it was ''
I'am not sure why this is but it helped.

If somebody knows the reason, i would be interested!

Cheers
Tobi

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

earlybird

There was a PHP Error and the whole page was not displayed.