Woocommerce Issues
This topic contains 30 replies, has 3 voices, and was last updated by Patrik 4 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: WooCommerce
-
AuthorPosts
-
December 18, 2019 at 4:33 pm #6295
Hello, I’m currently using UsersWp (free version), UsersWP Moderate and Geo Directory (full membership for our Woo site)
I have it set up to show pricing only to logged in users. This is a wholesale website and dealers have to register and approved before accessing the info.
For some reason prices have been showing to all visitors. We need to make sure this never happens.
Is there a way you can assists us?
December 18, 2019 at 8:23 pm #6299Hello,
UsersWP doesn’t have any features for hiding custom field data from users, whether of a specific role or in relation to logged in/out, though we are planning on adding something like that, we have not started work on it yet.
What plugin are you using to hide/show that info? You should contact the author of that plugin for support.
December 19, 2019 at 6:03 pm #6313You are right, Alex. I’m using Booster.io to hide the pices buit seems like everytime the UsersWP & GeoDirectory have an update, there is a glitch and prices show.
I contacted Booster.io but I wanted to share in case you had issues in the past.
Also, I set up the register form to redirect to a thank you page; however, Once the form is submitted it stays in the same page but shows a 404 error page.
Do you know how can I resolve this issue?
December 19, 2019 at 8:32 pm #6314Hmm..make sure that thank you page exists. Are you using automatic approval? If not the redirect won’t take effect.
If the issue persist you can share WP Admin credentials and we can take a look.
December 19, 2019 at 10:56 pm #6316This reply has been marked as private.December 23, 2019 at 9:46 am #6324Hi,
You can redirect for auto approve action only but you can try to put following code in your functions.php file of currently active theme or via Code Snippets plugin and let us know if it works for your site or not:
add_action('uwp_after_process_register', 'uwp_after_process_register_cb', 10, 2); function uwp_after_process_register_cb($data, $user_id){ if(!empty($user_id) && $user_id > 0){ $reg_redirect_page_id = uwp_get_option('register_redirect_to', ''); $redirect_to = uwp_get_redirect_url($reg_redirect_page_id, $data); $redirect = apply_filters('uwp_register_redirect', $redirect_to); if(!wp_doing_ajax()){ wp_redirect($redirect);exit(); } } }
Regards,
PatrikDecember 26, 2019 at 11:18 pm #6342Hi Patrik & Alex,
The code worked perfectly! Thank you for all your help!
I was wondering if you have a code that would allow UsersWP autoresponders to use the same header and format assigned under the Woocommerce email settings for consistency purposes?
Or maybe you can provide a support doc with the html code to format the emails? I tried using one that I have on a form but the emails are still coming plane and without any format.
December 27, 2019 at 5:54 am #6345Hi,
You can directly put HTML code in the templates at UsersWP->Emails. If you want to do it via code then you can use filters provided in our UsersWP but that is part of customization.
Regards,
PatrikDecember 30, 2019 at 6:02 pm #6414Thank you, Patrik.
Where can I find this filters? Is there a support doc?
Also, I noticed when I register using a email from a free email provider such as gmail, yahoo or hotmail, etc, the autoresponders are not delivered.
Is there a way to fix this?Please advise.
December 30, 2019 at 6:09 pm #6415also Patrik,
I apologize. Is there a way I can add more email recipients for the admin email notifications?
December 31, 2019 at 6:00 am #6420Hi,
It is possible using the hooks and filters and there is no doc containing all the hooks and filters yet so you have to look into the code to do that. For sending multiple emails to admin you may use “uwp_send_admin_email_to” filter.
Regards,
PatrikJanuary 2, 2020 at 3:46 pm #6463Thank you, Patrik
January 13, 2020 at 10:33 pm #6619Hi Patrik, I found the “uwp_send_admin_email_to” filter on a previous support ticket, but doesn’t seem to work. See filter below.
Is that the right one?add_filter(‘uwp_send_admin_email_to’, ‘uwp_send_admin_email_to_cb’, 10, 2);
function uwp_send_admin_email_to_cb($site_email, $message_type){$email_to = array();
if(‘mod_admin’ == $message_type){
$email_to[] = get_option(‘admin_email’);
$email_to[] = ‘[email protected]’; // Change to your email address
// $email_to[] = ‘[email protected]’; you can add more email addresses like this
$site_email = $email_to;
}return $site_email;
}January 16, 2020 at 3:31 pm #6654Hi,
Let us know the FTP details and the file where you put the code and I will do some troubleshooting as this should work I think.
Regards,
PatrikFebruary 4, 2020 at 4:37 pm #6946This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket