dafioga on "[Plugin: WooCommerce Pay for Payment] Problem in the last step (Payment Information)"

ساخت وبلاگ

dani_apa
Member
Posted 8 months ago #

Hello,

I have the last version of Woocommerce (2.4.7) and of your plugin "WooCommerce Pay for Payment" and in the last step of your plugin when you change the radio button option (payment_method), the plugin execute this lines of code:

$(document.body).on('change', 'input[name="payment_method"]', function() {
$('body').trigger('update_checkout');
$.ajax( $fragment_refresh );
});

And javascript says that the variable "$fragment_refresh" is undefined, but this variable is in the file "cart-fragment.js" and this is a file of woocommerce's plugin, and should be declared. I can't understand what is happening.

Thanks.

https://wordpress.org/plugins/woocommerce-pay-for-payment/

When you disable Pay for Payment everything works correctly?

dani_apa
Member
Posted 7 months ago #

Hi,

Yes when I disable your plugin, all works great.
The problem is that $frament_refresh is undefined, see here for details: http://screencast.com/t/SjFFzDA3

Can you try a different theme?
Also what problems does this error create except in the dashboard?

I think that line
$.ajax( $fragment_refresh );
In woocommerce-payforpayment.php is redudant and can be deleted. But it must be first tested.

dani_apa
Member
Posted 7 months ago #

I have my own theme, with the page form-checkout.php personalized by me in multisteps with the plugin YITH WooCommerce Multi-step Checkout (https://wordpress.org/plugins/yith-woocommerce-multi-step-checkout/).
In other themes without this plugin don't disappear all the woocommerce-checkout-payment div with their options, but the error in the dashboard still appears.

remove line
$.ajax( $fragment_refresh );
from woocommerce-payforpayment.php

hakancecen
Member
Posted 6 months ago #

I have the same problem. remove line $.ajax( $fragment_refresh ); but not working.

@hakancecen: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's.

hakancecen
Member
Posted 6 months ago #

@esmi: thank you.

dafioga
Member
Posted 10 minutes ago #

HI guys, this plugin is very usefull, but i have the same problem. I'm using woocommerce Versión 2.5.5, WooCommerce Pay for Payment 1.38, and WD OSWAD MARKETVersión: 1.2.1 theme.
I cannot switch between payment methods when i use this plugin. Please help!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 231 تاريخ : پنجشنبه 13 خرداد 1395 ساعت: 9:24