Disable the delete card button in wocommerce subscription my account section
- or -
Post a project like this3476
$$
- Posted:
- Proposals: 1
- Remote
- #575906
- Awarded
Description
Experience Level: Intermediate
Estimated project duration: end of the day on sooner if possible 23/09/2014
Hello,
I am having an issues with Woocommerce subscription plugin and I hope you can help? I need to remove the delete cards button from the “my account” section for customers. The delete card option removes the payment card from the stripe payment gateway system which means we cannot take any future payments nor are we notified either.
Another options would to leave the delete option in place and when the button is pressed that it only works if there is more than 1 card available. Otherwise the button does nothing. Also I need to stop customers who are logged in getting access to the word press admin console (website/wp-admin.php) because for some reason when they login and out I get logged out or restricted access to the admin section and i do not know why.
It has been suggested that I use the following code to fix the delete button issue in my theme's function.php file (functions-enfold.php). However it does nothing:
remove_action( 'wp', array( $WC_Gateway_Stripe_Saved_Cards, 'delete_card' ) );
remove_action( 'woocommerce_after_my_account', array( $WC_Gateway_Stripe_Saved_Cards, 'output' ) );
I hope you can help?
Kind Regards,
Oriche'
I am having an issues with Woocommerce subscription plugin and I hope you can help? I need to remove the delete cards button from the “my account” section for customers. The delete card option removes the payment card from the stripe payment gateway system which means we cannot take any future payments nor are we notified either.
Another options would to leave the delete option in place and when the button is pressed that it only works if there is more than 1 card available. Otherwise the button does nothing. Also I need to stop customers who are logged in getting access to the word press admin console (website/wp-admin.php) because for some reason when they login and out I get logged out or restricted access to the admin section and i do not know why.
It has been suggested that I use the following code to fix the delete button issue in my theme's function.php file (functions-enfold.php). However it does nothing:
remove_action( 'wp', array( $WC_Gateway_Stripe_Saved_Cards, 'delete_card' ) );
remove_action( 'woocommerce_after_my_account', array( $WC_Gateway_Stripe_Saved_Cards, 'output' ) );
I hope you can help?
Kind Regards,
Oriche'
Oriche W.
0% (0)Projects Completed
1
Freelancers worked with
1
Projects awarded
100%
Last project
26 Sep 2014
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies