Quote from: fotonio on May 08, 2024, 18:49:00 PMI 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.Same here. And the problem is not solved with the newest VM version 4.2.10 11010.
1 vmdebug createOrder no OrderId Var0:
stdClass Object
(
[name] => UNPROCESSABLE_ENTITY
[details] => Array
(
[0] => stdClass Object
(
[field] => /purchase_units/@reference_id=='default'/amount/breakdown/tax_total/value
[value] => 69.78
[issue] => TAX_TOTAL_MISMATCH
[description] => Should equal sum of (tax * quantity) across all items for a given purchase_unit
)
)
[message] => The requested action could not be performed, semantically incorrect, or failed business validation.
[debug_id] => a2cd68df1e418
[links] => Array
(
[0] => stdClass Object
(
[href] => https://developer.paypal.com/docs/api/orders/v2/#error-TAX_TOTAL_MISMATCH
[rel] => information_link
[method] => GET
)
)
)
2 vmdebug Created order here
4 vmdebug vmInfo: Checkout blocked by Payment plugin
5 vmdebug Confirmed order returned false
7 vmdebug findCorrectItemidBySQL use as like en-GB `link` like "index.php?option=com_virtuemart&view=cart%"
if ($link['view'] == $currentView) {
$activeParent = "uk-active uk-open";
//break;
}
REPLACE WITH THIS:
if ($link['view'] == $currentView AND $link['task'] == $task) {
$activeParent = "uk-active uk-open";
break;
}
foreach ($item ['items'] as $i => $link) {
if ($link['view'] == $currentView AND $link['task'] == $task) {
$activeParent = "uk-active uk-open";
break;
}
}
Quote from: Jumbo! on Yesterday at 13:47:08 PM....
Quote from: vdweb.cz on Yesterday at 11:58:01 AMGuys, i dont understand what:
"register listeners in your plugin"
or
"extend vmPlugin"
I have clasic joomla system plugin:
class plgSystemVD_matomo extends JPlugin {
and for this plugin i have listener plgVmConfirmedOrder:
class plgSystemVD_matomo extends JPlugin {
function plgVmConfirmedOrder($cart, $order) {
//do something
But joomla dont run this listener.
I speak about plugins from folder plugins/system/*
My plugin is in here: plugins/system/vd_matomo
<?php
defined('_JEXEC') or die;
class PlgSystemVD_matomo extends JPlugin {
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
// For Joomla 4 and Joomla 5
if (version_compare(JVERSION, '4.0.0', 'ge')) {
$this->registerLegacyListener('plgVmConfirmedOrder');
}
}
public function plgVmConfirmedOrder($cart, $order)
{
// Do whatever you want
}
}
Page created in 0.072 seconds with 12 queries.