News:

Support the VirtueMart project and become a member

Main Menu

Recent posts

#1
General Questions / Re: vDispatcher::trigger dont ...
Last post by AH - Today at 15:38:03 PM
The work to register vm triggers is already completed

There is no need to change the names to start with "on"
#2
Thanks Dud3!
I urge @milbo to have a look at that and add the required event triggers.
#3
General Questions / Re: vDispatcher::trigger dont ...
Last post by Ghost - Today at 08:25:28 AM
VM devs can't just change event names because that would break all existing plugins. Furthermore, events don't have to start with "on". You just need to register the listeners yourself or extend vmPlugin which already handles this.
#4
I ran into this same problem.  I went into /plugins/system/lscache/components/com_virtuemart.php and commented out line 22. 

//$this->dispatcher->addListener("onContentPrepare", [$this,'onContentPrepare']);

I don't know if this is a good long-term solution, or if it will work on a robust virtuemart site. I am only using this on 2 sites as a small product catalog in both cases.
#5
Same issue.
VM 4.2.10 11010
Joomla 3.10.12

Drag and drop functionality and arrow keys to reorder products are not working.
There are no JavaScript errors in the browser console.

With Firefox, I can see a hand cursor when hovering over to drag.
With Chromium (based on Chrome), there is no drag icon or change in cursor.


#6
General Questions / Re: Order sometimes shows all ...
Last post by modernmagic - Yesterday at 17:53:46 PM
ok, I have revised the config per your suggestion.  Thank you!

We will monitor to see if this happens again.
#7
General Questions / Re: vDispatcher::trigger dont ...
Last post by vdweb.cz - Yesterday at 12:37:09 PM
Hi, but joomla plugin dont handle this triger plgVmConfirmedOrder

because in J4 trigers must start with "on" plgVmConfirmedOrder -> onplgVmConfirmedOrder


But this is about Virtuemart developers to fix that and rename all names:



They use this trigger in:
administrator/components/com_virtuemart/helpers/vdispatcher.php

static function trigger ($name, $params){

if(self::$dispatcher === null){
if(JVM_VERSION<4){
self::$dispatcher = JEventDispatcher::getInstance();
} else {
self::$dispatcher = JFactory::getApplication();
}
}

if(JVM_VERSION<4){
return self::$dispatcher->trigger($name, $params);
} else {
return self::$dispatcher->triggerEvent($name, $params);
}
}


$dispatcher->triggerEvent($name, $params); is valid php in J4 but problem is in name plgVmConfirmedOrder joomla dont start this triger withou prefix "on"

Do you understand?
#8
General Questions / Re: vDispatcher::trigger dont ...
Last post by Ghost - Yesterday at 09:13:51 AM
You should either extend vmPlugin or manually register listeners in your plugin.
#9
General Questions / Re: Order sometimes shows all ...
Last post by fotonio - Yesterday at 00:53:51 AM
The prices enter when you add the custom fields in the products details page.
#10
General Questions / Re: Order sometimes shows all ...
Last post by modernmagic - May 08, 2024, 19:49:50 PM
Quote from: fotonio on May 08, 2024, 19:18:54 PMHi,
In the custom field configuration in the Default value insert the colors separated with ;
white;black;red

and Is a list? select As admin list


If I change it to white;black;red how will I charge a custom price for certain colors?