Woocommerce Issues

This topic contains 30 replies, has 3 voices, and was last updated by  Patrik 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #6295

    Colleen Quenzel
    Free User
    Post count: 21

    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?

    #6299

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    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.

    #6313

    Colleen Quenzel
    Free User
    Post count: 21

    You 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?

    #6314

    Alex Rollin
    Moderator
    Post count: 27815

    Hmm..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.

    #6316

    Colleen Quenzel
    Free User
    Post count: 21
    This reply has been marked as private.
    #6324

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    #6342

    Colleen Quenzel
    Free User
    Post count: 21

    Hi 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.

    #6345

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    #6414

    Colleen Quenzel
    Free User
    Post count: 21

    Thank 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.

    #6415

    Colleen Quenzel
    Free User
    Post count: 21

    also Patrik,

    I apologize. Is there a way I can add more email recipients for the admin email notifications?

    #6420

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    #6463

    Colleen Quenzel
    Free User
    Post count: 21

    Thank you, Patrik

    #6619

    Colleen Quenzel
    Free User
    Post count: 21

    Hi 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;
    }

    #6654

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    #6946

    Colleen Quenzel
    Free User
    Post count: 21
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 31 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket