When using Paypal Express Checkout, even if you uncheck Enable registration on the "Checkout" page on Woocommerce > Settings > Accounts, on the review order page, after login to paypal, the option Create an account still appears.
I think I found the solution: in paypal-review-order.php, after line 26 with code:
$show_act = apply_filters('paypal-for-woocommerce-show-login', $is_paypal_express && !is_user_logged_in() && $checked==="yes" && empty($checkout_form_data['billing_address_1']));
add line:
$show_act = $show_act && (get_option('woocommerce_enable_signup_and_login_from_checkout') === "yes");
This way, it takes into account the state of the checkbox Enable registration on the "Checkout" page .
https://wordpress.org/plugins/paypal-for-woocommerce/
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 207 تاريخ : جمعه 24 ارديبهشت 1395 ساعت: 7:32