News:

Support the VirtueMart project and become a member

Main Menu

Recent posts

#41
General Questions / Re: VM 4.2.0
Last post by Teejay - April 16, 2026, 19:25:13 PM
Quote from: hazael on January 15, 2024, 22:44:03 PMHave you installed the language versions for Virtuemart?

https://virtuemart.net/community/translations/virtuemart
https://virtuemart.net/community/translations/virtuemartplugins

Your products are added in NL by default:
https://altenagala.nl/jeugd-prins-en-prinsescarnavalskostuums-html
https://altenagala.nl/en/jeugd-prins-en-prinsescarnavalskostuums-html

In order for the same product to be displayed in a different language version, e.g. EN, you must open it in the administrator panel and save it in the selected language version.


You do the same with categories and manufacturer's name

For these language options to work, you must first select all the languages you are interested in in the Virtuemart settings - select NL as the default - necessarily with the "global configuration" option
Hi Hazel, we have resolved this issue, every product is now displayed in the right language
#42
General Questions / Currency rounding mismatch bet...
Last post by sandomatyas - April 16, 2026, 14:55:31 PM
Hi

I might be misunderstanding something in the configuration, so I'd like to ask.

I'm using two currencies, where one is the default, and the second one is calculated from it via exchange rate. Both are set to 0 decimal places. I also tried switching the "Round only display" setting on and off.

Example:

Product price in default currency: 500
After currency switch, the calculated value is not an integer, but since decimals are set to 0, it is shown as €1 in the frontend (rounded)
But during checkout/payment, the amount becomes €1.33

Because of this, the price shown on the site and in the checkout differs from the amount shown by the payment provider (e.g. PayPal).

What would be the correct way to handle this?
How can I make sure the payment amount matches what is shown in the checkout?

Thanks!
#43
Installation, Migration & Upgrade / Re: class does not exist Plgvm...
Last post by PRO - April 13, 2026, 22:27:00 PM
its from a file,

did you turn on debug, error reporting and find the file?
#44
solved the problem, now any captcha can work also on J5 and J6

components/com_virtuemart/hellpers/shopfunctionsf.php

line 1276: replace both renderCaptcha and checkCaptcha functions with this:

   /*
    * @author Davide Reitano
    */

   static public function renderCaptcha($config = 'reg_captcha', $id = 'dynamic_recaptcha_1') {

   static $counter;
   if (empty($counter)) $counter = 1;

   if ($id === 'dynamic_recaptcha_1') {
      $id = 'dynamic_recaptcha_' . $counter;
      $counter++;
   }

   if (VmConfig::get($config) and ((JFactory::getUser()->guest == 1) || (VmConfig::get($config . '_logged')))) {

      $captchaPlugin = JFactory::getConfig()->get('captcha', '');

      if ($captchaPlugin === '0') {
         $captchaPlugin = null;
      }

      JPluginHelper::importPlugin('captcha', $captchaPlugin);

      try {
         $pluginName = empty($captchaPlugin) ? '' : $captchaPlugin;

         // solo gruppo captcha, non evento globale Joomla
         vDispatcher::directTrigger('captcha', $pluginName, 'onInit', array($id));

         // nome campo STRINGA, non null
         $fieldName = 'cf-turnstile-response';

         $output = vDispatcher::directTrigger(
            'captcha',
            $pluginName,
            'onDisplay',
            array($fieldName, $id, 'required')
         );

      } catch (Exception $e) {
         JFactory::getApplication()->enqueueMessage($e->getMessage(), 'error');
         if (empty($output)) $output = array();
      }

      $out = '';

      if (is_array($output)) {
         foreach ($output as $html) {
            if (empty($html)) continue;
            $out .= $html;
         }
      } else if (is_string($output)) {
         $out .= $output;
      }

      return $out;
   }

   return '';
}

   /**
    * Check the Joomla ReCaptcha Plg
    *
    * @author Davide Reitano
    */
    static function checkCaptcha($config = 'reg_captcha') {

   if (VmConfig::get($config) and ((JFactory::getUser()->guest == 1) || (VmConfig::get($config . '_logged')))) {

      $app   = JFactory::getApplication();
      $input = $app->input;

      $captchaPlugin = JFactory::getConfig()->get('captcha', '');
      if ($captchaPlugin === '0') {
         $captchaPlugin = null;
      }

      $captchaResponse = $input->post->getString('cf-turnstile-response', '');

      if ($captchaResponse === '') {
         $captchaResponse = $input->post->getString('g-recaptcha-response', '');
      }

      if ($captchaResponse === '') {
         $captchaResponse = $input->post->getString('recaptcha_response_field', '');
      }

      if ($captchaResponse === '') {
         vmInfo('COM_VM_RECAPTCHA_ERROR');
         return false;
      }

      JPluginHelper::importPlugin('captcha', $captchaPlugin);

      try {
         $pluginName = empty($captchaPlugin) ? '' : $captchaPlugin;

         $res = vDispatcher::directTrigger(
            'captcha',
            $pluginName,
            'onCheckAnswer',
            array($captchaResponse)
         );
      }
      catch (Exception $e) {
         $errmsg = $e->getMessage();

         switch ($errmsg) {
            case 'missing-input-secret':
            case 'invalid-input-secret':
            case 'missing-input-response':
            case 'invalid-input-response':
            case 'bad-request':
            case 'timeout-or-duplicate':
               vmInfo('COM_VM_RECAPTCHA_ERROR_' . strtoupper(str_replace('-', '_', $errmsg)));
               break;
            default:
               vmInfo($errmsg);
               break;
         }

         return false;
      }

      if (empty($res)) {
         vmInfo('COM_VM_RECAPTCHA_ERROR');
         return false;
      }

      foreach ($res as $ret) {
         if (!$ret) {
            vmInfo('COM_VM_RECAPTCHA_ERROR');
            return false;
         }
      }

      return true;
   }

   return true;
}
#45
Administration & Configuration / Menu side bar
Last post by johnknit - April 08, 2026, 11:00:48 AM
Hello,
Is it possible to hide the menu side bar permanent until you deside you want to use it.
An extra button for permanent or temporaly hiding.??
At the moment the sidebar come back every time there is bin a saving or other action. Therefore you need to hide the sidebar over and over again.
This takes a lot of time when working on it.
#46
Coding Central / Re: VirtueMart shipping/paymen...
Last post by razor7 - April 07, 2026, 13:16:09 PM
Great! Shipping/payment order is an issue for years now. Sometimes you need to force order and that is really difficult as of right now.
#47
Coding Central / Re: Search results varies acco...
Last post by razor7 - April 07, 2026, 13:12:30 PM
Bump 2?
#48
About VirtueMart - not for support posts / Re: Joomla 6
Last post by rdcustom - April 06, 2026, 17:56:09 PM
this means that virtuemart will finally exit from 2008?

damn is so frustrating to pay a membership after many promises and feeling dumb cause nothing is changing here
#49
In what situation does such an error occur?
#50
Hi!

I'm currently using Joomla 5.4.4 with Virtuemart 4.6.4 11226 and I get the 500 Joomla\CMS\HTML\HTMLHelper Select not found.

Any fix?

Thank you