VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: earlybird on May 16, 2014, 16:00:11 PM

Title: Solved Problem in product model using multible product modules
Post by: earlybird on May 16, 2014, 16:00:11 PM
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
Title: Re: Solved Problem in product model using multible product modules
Post by: GJC Web Design on May 16, 2014, 16:03:31 PM
what happened with the mod display b4 your fix?
Title: Re: Solved Problem in product model using multible product modules
Post by: earlybird on May 19, 2014, 10:57:10 AM
There was a PHP Error and the whole page was not displayed.