VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: vittoriobruno on April 14, 2016, 18:42:23 PM

Title: VM3 Sofort plugin - no ajax update on cart page
Post by: vittoriobruno on April 14, 2016, 18:42:23 PM
Hello,
I am using Joomla 3.4.8 and VM 3.0.12.
I enabled and set VM Payment - Sofort Banking plugin in order to offer customers the Sofort banking payment. I enabled also the Paypal plugin and the standard VM payment plugin. I enabled OPC and set ajax for OPC.
When I am in the cart module, as soon as I select standard payment or paypal payment, ajax works correctly: cart total is updated according to cashback or fees set in backend. This does not occur when I select sofort payment. Simply nothing happens. Radio button is selected but cart total does not update. Only way to see modification is clicking on "save" button.
So I would like to ask if there is a reason why ajax is not working just for this plugin.
Using the analysis instrument in firefox, comparing the div classes vm-payment-plugin-single, I noticed that the input (radio button) relative to sofort does not contain data-dynamic-update="1". Is this lack the responsible of this behaviour? If yes, how can I obtain ajax for sofort plugin?

Thanks
Regards
Title: Re: VM3 Sofort plugin - no ajax update on cart page
Post by: vittoriobruno on April 19, 2016, 12:03:00 PM
Hi all,
can anybody help me with this, please?

Regards
Title: Re: VM3 Sofort plugin - no ajax update on cart page
Post by: Ghost on April 19, 2016, 12:11:50 PM
Sofot plugin does use payment method display override. See /plugins/vmpayment/sofort/sofort/tmpl/display_payment.php.
Title: Re: VM3 Sofort plugin - no ajax update on cart page
Post by: GJC Web Design on April 19, 2016, 12:12:33 PM
beat me to it..  ;)

plugins\vmpayment\sofort\sofort\tmpl\display_payment.php
Title: Re: VM3 Sofort plugin - no ajax update on cart page
Post by: vittoriobruno on April 19, 2016, 15:38:20 PM
Hi,
I have just added data-dynamic-update="1" after "name" attribute of the radio type <input> tag in that file: it works.

Thanks