Author Topic: Solved Problem in product model using multible product modules  (Read 772 times)

earlybird

  • Beginner
  • *
  • Posts: 14
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9748
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Solved Problem in product model using multible product modules
« Reply #1 on: May 16, 2014, 16:03:31 pm »
what happened with the mod display b4 your fix?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

earlybird

  • Beginner
  • *
  • Posts: 14
Re: Solved Problem in product model using multible product modules
« Reply #2 on: May 19, 2014, 10:57:10 am »
There was a PHP Error and the whole page was not displayed.