2basetech
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Password reset link is not workingHi,
While switching the theme its working fine.
—————————–
/**
* Remove key and login from query string, set cookie, and redirect to account page to show the form.
*/
public static function redirect_reset_password_link() {
if ( is_account_page() && ! empty( $_GET[‘key’] ) && ! empty( $_GET[‘login’] ) ) {
$value = sprintf( ‘%s:%s’, wp_unslash( $_GET[‘login’] ), wp_unslash( $_GET[‘key’] ) );
WC_Shortcode_My_Account::set_reset_password_cookie( $value );wp_safe_redirect( add_query_arg( ‘show-reset-form’, ‘true’, ‘password-reset’ ) );
exit;
}
}
————————————————————-/**
* Handle reset password form.
*/
public static function process_reset_password() {
$posted_fields = array( ‘wc_reset_password’, ‘password_1’, ‘password_2’, ‘reset_key’, ‘reset_login’, ‘_wpnonce’ );foreach ( $posted_fields as $field ) {
if ( ! isset( $_POST[ $field ] ) ) {
return;
}
$posted_fields[ $field ] = $_POST[ $field ];
}if ( ! wp_verify_nonce( $posted_fields[‘_wpnonce’], ‘reset_password’ ) ) {
return;
}$user = WC_Shortcode_My_Account::check_password_reset_key( $posted_fields[‘reset_key’], $posted_fields[‘reset_login’] );
if ( $user instanceof WP_User ) {
if ( empty( $posted_fields[‘password_1’] ) ) {
wc_add_notice( __( ‘Please enter your password.’, ‘woocommerce’ ), ‘error’ );
}if ( $posted_fields[‘password_1’] !== $posted_fields[‘password_2’] ) {
wc_add_notice( __( ‘Passwords do not match.’, ‘woocommerce’ ), ‘error’ );
}$errors = new WP_Error();
do_action( ‘validate_password_reset’, $errors, $user );
wc_add_wp_error_notices( $errors );
if ( 0 === wc_notice_count( ‘error’ ) ) {
WC_Shortcode_My_Account::reset_password( $user, $posted_fields[‘password_1’] );do_action( ‘woocommerce_customer_reset_password’, $user );
wp_redirect( add_query_arg( ‘password-reset’, ‘true’, wc_get_page_permalink( ‘myaccount’ ) ) );
exit;
}
}
}These two functions are found in my theme woocommerce/includes/class-wc-form-handler.php
Is something wrong in this?
Thanks in Advance
Hi,
Could you please suggest a woocommerce subscription plugin that support ‘Paypal for woocommerce’ plugin
Thanks
Hi,
Yes I am using the Woocommerce subscription plugin,
https://www.ads-software.com/plugins/xa-woocommerce-subscriptions/
This is the plugin i am tha t i am using
Hi,
I have configured the product correctly, I have completed many recurring transactions with my account for other PHP projects and that transactions are listed in the Recurring Payment dashboard.I can share my site credentials. Could you please reply me with this email id [email protected]Thanks,
BabijaHi @markhf,
The errors that you have mentioned in the screenshots are just HTML validation, there are other custom validators in the backend (Jquery validators), that are not showing in the product page.
I will create the ticket in the above mentioned link
Thanks
Hi @markhf,
I have added a plugin for extra product options
https://www.themehigh.com/product/woocommerce-extra-product-options
Validation error messages are not showing in the product page while clicking the subscribe button. I have contacted the support team, they told me that ,
“On checking, we could see that in the theme there is a feature of adding the product to the cart without reloading the page. They are not picking all the data in the form field of the product page. This is the reason why the validation is not working for the normal product. So we recommend you to contact your theme developer or theme support.
Regarding the subscription plugin, they are clearing the validation message. It is added while clicking the subscription form. This validation message clear occurs while un-ticking the “Allow Mixed checkout” option of the subscription. In-order to debug further on this issue, we recommend you to contact the plugin support.”
This is my product page
https://phpstack-72883-412749.cloudwaysapps.com/product/plan-44/
Could you please help me on this
Thanks in Advance
Hi,
after enabling the debug mode I got an error like this
Fatal error: Uncaught Error: Call to a member function get_status() on boolean in /home/53078-72883.cloudwaysapps.com/ftpkrggdvb/public_html/wp-content/plugins/xa-woocommerce-subscriptions/admin/class-hf-woocommerce-subscription-admin.php:538 Stack trace: #0 /home/53078-72883.cloudwaysapps.com/ftpkrggdvb/public_html/wp-includes/class-wp-hook.php(288): HForce_Woocommerce_Subscription_Admin->render_hf_shop_subscription_columns(‘order_title’) #1 /home/53078-72883.cloudwaysapps.com/ftpkrggdvb/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /home/53078-72883.cloudwaysapps.com/ftpkrggdvb/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/53078-72883.cloudwaysapps.com/ftpkrggdvb/public_html/wp-admin/includes/class-wp-posts-list-table.php(1162): do_action(‘manage_hf_shop_…’, ‘order_title’, 12826) #4 /home/53078-72883.cloudwaysapps.com/ftpkrggdvb/public_html/wp-admin/includes/class-wp-list-table.php(1254): WP_Posts_List_Table->column_default(Object(WP_Post), ‘order_ti in /home/53078-72883.cloudwaysapps.com/ftpkrggdvb/public_html/wp-content/plugins/xa-woocommerce-subscriptions/admin/class-hf-woocommerce-subscription-admin.php on line 538