sediqpir
Forum Replies Created
-
I addressed this by making adjustments in the wc-vendors/classes/admin/class-admin-users.php file. Specifically, I commented out the following code block:
// if ('index.php' === $pagenow) { // wp_safe_redirect(admin_url('profile.php')); // }
Hello, Can you please tell me which named plugin file is responsible for preventing direction to the wp-admin page? Ill try myself to solve that.
Hello @lloydrick @israelmartins, I need update please!
Hello @lloyd Rick Guyon,
Thank you so much for your reply! I have discovered that this issue is occurring due to the YITH WooCommerce Customize My Account Page plugin. When I deactivate the plugin, everything functions correctly. I am then able to submit requests from my account page as usual.
However, I require both plugins to be active simultaneously.
I have both a staging and a live site. Please let me know if you require login credentials.
Hello @lloyed Rick Guyon,
I’ve been experimenting with some custom code to address an issue, but unfortunately, it hasn’t yielded the desired results.
function allow_vendor_dashboard_access() { if ( is_user_logged_in() && current_user_can( 'vendor' ) ) { $current_url = esc_url( $_SERVER['REQUEST_URI'] ); if ( $current_url === '/wp-admin/' ) { wp_redirect( admin_url() ); exit; } } } add_action( 'init', 'allow_vendor_dashboard_access' );
Despite implementing this code, it doesn’t seem to be functioning as expected. Could you kindly provide a snippet that might resolve this issue? Your assistance would be greatly appreciated.
Thank you!
Hello @israel Martins, everything went smoothly – thank you so much! However, I’ve encountered a slight issue. When users try to request vendor status from the “My Account” section by checking the boxes labeled “Apply to become a seller?” and “I have read and accepted the terms and conditions,” the page refreshes but doesn’t transition the user to the pending role as expected. I’ve double-checked the settings against the documentation and forums, and everything seems to be configured correctly. Interestingly, the process works seamlessly when users register and check the box to become a vendor during registration.
You can create account on my site and test it by yourself.Dear @lloyd Rick Guyon,
I hope this message finds you well. I want to express my gratitude for taking the time to respond to me.
Unfortunately, I’m facing a significant setback with my website. Every single visitor seems to have vanished, causing a detrimental impact on its SEO. Impressions have plummeted to an all-time low, and clicks are practically non-existent. It’s been a devastating blow.
To compound matters, I’ve lost access to any backups of my site. Despite my attempts to restore from backup, my hosting provider has informed me that they can only provide 10 GB of backup, while my site exceeds 28 GB. As someone who isn’t particularly tech-savvy, this has left me feeling helpless.
I’m reaching out to you in the hopes that you might be able to assist me in rectifying this situation. Your expertise could make all the difference in getting my site back on track.
Additionally, I’m in desperate need of the Marketplace 2.5.1 update. If you could provide me with a link to download it, I would be immensely grateful. However, I must mention that I’m unable to make any purchases at the moment. My website, ketabona.com, operates on a non-profit basis, and I simply don’t have the financial means to invest in paid solutions. Moreover, living in Afghanistan, I’m faced with stringent sanctions that make global purchases nearly impossible. Even if I did have the funds, a 20% tax commission and a minimum payment threshold of $100 USD would pose insurmountable obstacles.
- This reply was modified 7 months, 2 weeks ago by sediqpir.