News:

Support the VirtueMart project and become a member

Main Menu

Recent posts

#21
Hello,

I wanted to replace Google reCAPTCHA with Cloudflare Turnstile for customer registration, aiming to maintain protection against automated submissions while making the verification process easier for customers.

However, after switching to Turnstile, I encountered a validation problem that prevented new customers from registering.

Environment

- Joomla 5.4.10
- VirtueMart 4.8.2
- Captcha – Cloudflare Turnstile 1.5.2 by SharkyKZ

Problem

The Turnstile widget completes successfully, but submitting the VirtueMart registration form results in the following message:

QuoteCaptcha verification failed. Note that JavaScript is required to submit this form.

Registration fails despite the completed verification.

What we found

In `components/com_virtuemart/helpers/shopfunctionsf.php`, the `checkCaptcha()` function passes a null value to the CAPTCHA validation event:

$recaptcha = null;
JPluginHelper::importPlugin('captcha');

$res = vDispatcher::trigger(
    'onCheckAnswer',
    array($recaptcha)
);

In this integration, the Turnstile response is submitted in a POST field named `turnstile`. However, VirtueMart does not pass that response to the plugin's `onCheckAnswer()` method.

The plugin rejects the empty argument before it can verify the response with Cloudflare.

Temporary workaround

We replaced the `$recaptcha = null;` assignment with:

$recaptcha = null;

if (JFactory::getConfig()->get('captcha') === 'turnstile') {
    $recaptcha = JFactory::getApplication()
        ->input->post->getString('turnstile', '');
}

The existing validation code was retained; CAPTCHA verification was not disabled or bypassed.

After this change, registration succeeded.

However, this is a provider-specific workaround that modifies a VirtueMart core file and can be overwritten by an update.

Feedback from the Turnstile plugin author

I reported the issue and these findings to the plugin author to determine whether a compatibility adjustment was needed in the plugin.

The author explained that the underlying problem should be fixed in VirtueMart. Besides not passing the CAPTCHA response, VirtueMart directly triggers CAPTCHA events instead of using Joomla's `Joomla\CMS\Captcha\Captcha` class.

According to the author, VirtueMart should use that class to ensure CAPTCHA plugins work correctly.

Plugin repository:
https://github.com/SharkyKZ/joomla-turnstile-plugin

Requested fix

Could you please review VirtueMart's CAPTCHA rendering and validation and implement the integration through Joomla's `Joomla\CMS\Captcha\Captcha` API?

We would appreciate an official fix as soon as possible, since this issue blocks customer registration with Turnstile unless a core-file workaround is applied.

Please let us know whether a fix is planned and which release will include it. I am available to provide further details and test a proposed patch.

Thank you!
#22
General Questions / Re: Google Merchant Center Pro...
Last post by hotrod - November 13, 2026, 23:25:47 PM
So I will have to manually fix my "Too Small Images" that I have up there now?  Because I do have maybe 800 products there that google picked up out of say 1600..  Now when I add the feed..  what will happen?
#23
General Questions / Re: Google Merchant Center Pro...
Last post by Jumbo! - November 12, 2026, 15:29:49 PM
Yes, the feed automatically upscales the images to 500 x 500 px to comply with the Google guidelines. If the original image resolution is lower, it warns the site owner.

It also creates feeds for Microsoft Bing, Facebook and Instagram, Amazon and eBay, and for the price comparison sites idealo and Geizhals.
#24
Virtuemart Development and bug reports / Re: VirtueMart 4.8.6: Checkout...
Last post by webf - November 12, 2026, 13:38:12 PM
3. Cancelling an order without a billing record saves the status but then throws an error
The incomplete orders from issue 1 were still visible in the VirtueMart order list, but opening either order showed an "Order not found" warning. We therefore changed their status to Cancelled (X) directly from the order list.

Actual result: After submitting the status change, VirtueMart displayed the following PHP error:
Attempt to assign property "order_total" on null

A database check confirmed that the cancellation had already been saved: both order headers, all order items, and the latest order history entries were set to X. The error page therefore made a successful status change look as though it had failed.

The latest history entries showed customer_notified = 1, but we could not confirm that an email was sent. In the code we inspected, the history entry is written before notification processing. The error is consistent with VirtueMart trying to prepare the invoice or email view when the billing record is missing.

Expected result: An incomplete order should be cancellable from the order list without a PHP error. If the status change is saved but a notification cannot be prepared, the backend should report those outcomes separately. The history should distinguish a requested notification from one that was actually sent.
#25
Virtuemart Development and bug reports / VirtueMart 4.8.6: Checkout lea...
Last post by webf - November 12, 2026, 11:44:43 AM
VirtueMart 4.8.6: Checkout leaves orders without billing details when a customer note contains an emoji; separate payment calculation error

We encountered two database errors during checkout on an existing VirtueMart 4.8.6 installation (build 11642). Both errors occurred on two attempts to place the same order.
1. An emoji in the customer note prevents the billing address from being saved
On our installation, customer_note is defined as VARCHAR(5000) NOT NULL DEFAULT '' with the utf8mb3 character set in both #__virtuemart_order_userinfos and #__virtuemart_userinfos. The installation SQL in the package we inspected uses utf8mb4 for both tables.

To reproduce: On an installation with these legacy column definitions, submit a checkout with an otherwise valid billing address and a note containing U+1F60A (F0 9F 98 8A in UTF-8).

Actual result: MySQL reports Incorrect string value for customer_note on both the insert into #__virtuemart_order_userinfos and the update to #__virtuemart_userinfos. The order header and items are saved, but the billing address is missing. The checkout displays a thank-you heading even though RO Payments cannot proceed and reports The received data has no order ID field.

Expected result: The note and billing address should be saved together. If saving fails, checkout should clearly report the failure and should not leave behind an incomplete order.

Local verification: After converting only the two customer_note columns to utf8mb4, a test through the VirtueMart order model saved the order item, billing address, and emoji correctly. The same emoji could be read back unchanged from both tables. We did not test the browser checkout or payment flow in that run.
2. Payment calculation rule uses -1 in an unsigned column
During both checkout attempts, VirtueMart also tried to insert virtuemart_calc_id = -1 into #__virtuemart_order_calc_rules for a payment without an associated calculation rule. Our live column is INT UNSIGNED, so MySQL reports Out of range value for column 'virtuemart_calc_id'. The installation SQL we inspected defines this column as a signed integer.

Could you confirm whether an upgrade migration is intended to bring these legacy columns in line with the installation schema, and what correction you recommend for existing shops? It would also be helpful to know whether checkout can stop cleanly when saving the billing address fails.

Thank you.
#26
Virtuemart Development and bug reports / Re: [BUG] VmMediaHandler::$the...
Last post by Milbo - November 12, 2026, 09:45:02 AM
Thank you sirius. I fear I did not see this post, but stumbled just a bit later than you over that.
#27
Virtuemart Development and bug reports / Re: [BUG] Uploading a product ...
Last post by Milbo - November 12, 2026, 09:43:34 AM
Thank you. This is now fixed with a random suffix.
#28
Virtuemart Development and bug reports / Re: 4.8.2 – Available Sort-by ...
Last post by Milbo - November 12, 2026, 09:42:37 AM
Hi MADKing, long text, nice solution. But actually there is already a tempt solution. To deselect all just use the first option "none". Your solution is now implemented, thank you.
#29
Virtuemart Development and bug reports / Re: Thumbnail creation lowerca...
Last post by Milbo - November 12, 2026, 09:29:12 AM
This happened with files uploaded per FTP, that is fixed.
#30
General Questions / Re: Google Merchant Center Pro...
Last post by hotrod - November 12, 2026, 01:02:39 AM
Thank You! I will be purchasing once I get some time.. would be nice  if this feed would update the images also of the ones that are not 500x500

Thanks for the hard work

Rod