Add Buyers to Joomla Groups for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!



The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1


Plugin not working for child products, unless the Override flag is ticked 05 Jul 2018 23:19 #1

  • aftertaf
  • aftertaf's Avatar Topic Author
I've been going crazy trying to figure out why the plugin stopped working, and I just figured it out.
I wanted to let others know, and maybe also suggest an improvement (when you have time, the workaround is in the subject :) )
So, i've created some products and assigned the plugin to them.
I've then created child products and it is only the child products that can be purchased.
The children all inherit the plugin and the groups to add/remove to.
But clients don't get added.

I just tested by ticking the override box on one of the children, and with this it works.
I had 16 children products in all that are concerned by this, so was easy enough to tick the box on all of them.
If you could make this work without having to tick the override box, it might save some other person going nuts :)
Thank you for your very good and very simple to use products, and hope the Huge project is going well.
Like i said, no rush, workaround easy to do and in place :)

Plugin not working for child products, unless the Override flag is ticked 10 Sep 2018 17:35 #2

Dear David,
Sorry to hear about the trouble that you had with the plugin.

Your observation is entirely correct: The plugin will only work when you tick the override box.
Technically, the reason is that the core VM function to retrieve the custom field (VirtueMartModelCustomfields::getCustomEmbeddedProductCustomFields) uses a direct SQL query to the database, thuse ignoring all products that only inherit the custom field. If you tick that box, VM will save the custom field together with the child product and also properly retrieve it. If that box is not ticked, VM will store the custom field only together with the parent product. Those parts in VM where custom fields inherited from parent products are working, add explicit code to handle this situation.

For now, I don't have any plans to implement this. As a workaround, one has to tick the "override" box, which should not be too hard, once you know about the problem.

Best regards,
  • Page:
  • 1