News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Recent posts

#1
General Questions / Re: vDispatcher::trigger dont ...
Last post by vdweb.cz - Today 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?
#2
General Questions / Re: vDispatcher::trigger dont ...
Last post by Ghost - Today at 09:13:51 AM
You should either extend vmPlugin or manually register listeners in your plugin.
#3
General Questions / Re: Order sometimes shows all ...
Last post by fotonio - Today at 00:53:51 AM
The prices enter when you add the custom fields in the products details page.
#4
General Questions / Re: Order sometimes shows all ...
Last post by modernmagic - Yesterday at 19:49:50 PM
Quote from: fotonio on Yesterday at 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?
#5
General Questions / Re: Order sometimes shows all ...
Last post by fotonio - Yesterday at 19:18:54 PM
Hi,
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

#6
Quote from: GJC Web Design on March 12, 2024, 12:56:42 PMtemp fix till this is in the core:

components\com_virtuemart\helpers\shopfunctionsf.php  ~ line 1256

currently

$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required'));
change to

$output = vDispatcher::trigger('onDisplay', array($reCaptchaName, $id, 'g-recaptcha required',null,null,null));

I tried this. The error goes away but now there is a text input box on the end of the form saying "recaptcha dynamic_" that will be confusing for the visitors.
#7
As Milbo wrote on November
QuoteBtw all Select. must be select. So just lowercase

So for VM 4.2.4 to work with Joomla 5.1 you have to replace using a text editor like Notepad++ 'Select.genericlist' with 'select.genericlist' in all files inside the virtuemart component files and vmadmin files.

No joomla core files need to be changed.
#8
General Questions / vDispatcher::trigger dont work...
Last post by vdweb.cz - Yesterday at 18:21:03 PM
Hi,
J: ‎4.4.4
VM: 4.2.8 11000


Plugins from folder plugins/system/* dont work with trigers

for example my plugin in J3 and VM 3.8 use this trigger function plgVmConfirmedOrder:

class plgSystemVD_matomo extends JPlugin {
function plgVmConfirmedOrder($cart, $order) {
//do something



in file:
components/com_virtuemart/helpers/cart.php
you have this:
$returnValues = vDispatcher::trigger('plgVmConfirmedOrder', array(&$this, $orderDetails));


but joomla J4 need system plugin triggers name start with "on"
soo if i want use plgVmConfirmedOrder in my plugin
correct name for this trigger must be: onplgVmConfirmedOrder

After that
you mast replace
$returnValues = vDispatcher::trigger('onplgVmConfirmedOrder', array(&$this, $orderDetails));

and in plugin use this
class plgSystemVD_matomo extends JPlugin {
function onplgVmConfirmedOrder($cart, $order) {
//do something


And after that triggers are called


Do you know about this incompatibility with Joomla?


Sorry for my english ;-)
#9
Hi in 4.2.8 11000 is not WEBP support

here is the solution in few rows:

administrator/components/com_virtuemart/helpers/img2thumb.php

AFTER ROW 215 ADD:
                case "webp":
                    if( function_exists("imagecreatefromwebp") ) {
                        $orig_img = imagecreatefromwebp($filename);
                    } else {
                        $app = JFactory::getApplication();
                        $app->enqueueMessage('This server does NOT suppport auto generating Thumbnails by webp');
                        return false;
                    }
                    break;





AFTER ROW 434 ADD:

            case "webp":
                if (strtolower(substr($fileout,strlen($fileout)-5,5))!=".webp")
                    $fileout .= ".webp";
                return imagewebp($new_img,$fileout);
                break;



AFTER ROW 476 ADD:

case "webp":
header ("Content-type: image/webp");
return imagewebp($new_img);
break;



AND in file
administrator/components/com_virtuemart/helpers/mediahandler.php

FIND
if($file_extension == 'jpg' || $file_extension == 'jpeg' || $file_extension == 'png' || $file_extension == 'gif'){
REPLACE
if($file_extension == 'jpg' || $file_extension == 'jpeg' || $file_extension == 'png' || $file_extension == 'gif' || $file_extension == 'webp'){
#10
Development & Testing / Re: Display subcategory produc...
Last post by sandomatyas - Yesterday at 13:18:50 PM
I created a dev site for that, it does work with a modified sortSearchListQuery function in a shop which uses >1000 categories in 4 level. For a top level category it collects 650 child category ids from multiple levels in few milliseconds