Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter wag1998

    (@wag1998)

    Thank you

    I will try that.

    Am I posting in the right place here to ask questions about coding? Is this a community forum or only Woocommerce support?

    I have another thing I’m trying to achieve.

    I’m trying to have email alerts send only to the authors of product orders and one admin address to receive all alerts. I’ve been wrestling with Chat GPT for about a week now but nothing it gives me works.

    This is what it gave me that looks like it should work but it just stops any emails being sent. Any help would be appreciated, Thanks:

    add_filter('woocommerce_email_recipient_new_order', 'custom_modify_order_recipients', 10, 2);
    add_filter('woocommerce_email_recipient_cancelled_order', 'custom_modify_order_recipients', 10, 2);
    add_filter('woocommerce_email_recipient_failed_order', 'custom_modify_order_recipients', 10, 2);
    function custom_modify_new_order_recipients($recipient, $order) {
    // Get the order author's ID
    $order_author_id = $order->get_user_id(); // Get the current user's ID
    $current_user_id = get_current_user_id(); // Define the admin email address that should always receive the email
    $admin_email = '[email protected]'; // Replace with the admin email address

    // Check if the current email is the admin email
    if ($recipient === $admin_email) {
    return $recipient; // Return the email as is
    } // Only send the email to the order's author
    if ($order_author_id === $current_user_id) {
    return $recipient;
    } else {
    // Return an empty string to prevent sending the email
    return '';
    }
    }
    Thread Starter wag1998

    (@wag1998)

    Thanks Vladimir

    That did the job. Sorry for the late reply

    Thread Starter wag1998

    (@wag1998)

    Sorry, I’m not sure what to do with that. Should I put this line in functions.php

    apply_filters( ‘acui_capability’, ‘create_users’ )

    Thread Starter wag1998

    (@wag1998)

    Hi Gabriel

    Since I’m using User Role Editor to grant permissions to users could you at least tell me what the permission or capability I must grant for the Woocommerce Customer list to be accessed.

    For example if I grant “view_woocommerce_reports” this lets the user view the Woocommerce Analytics.

    What permission/capability allows the user to view the Woocommerce > Customer list

    Thanks

    Thread Starter wag1998

    (@wag1998)

    Thanks for the reply maykato, yes I am already using user role editor and granting the user access to “view_woocommerce_reports” gives them the analytics and reports but not the customer list and their order reports. I cant find a permission to grant the customer list to a role.

    When we had this issue I did what was asked and emailed [email protected] they did whatever it is they do on their end and it started working. However a few months later the checkout error has returned

    FAILED TO GET CHECKOUT ID TO PROCESS PAYMENT

    After contacting SumUp a number of times they say that the issue is fixed and the account is activated but the error is still there.

    What can we do?

    Thread Starter wag1998

    (@wag1998)

    I missed the opt in on activation but I have now opted in via the plugins page. However I’m now following step 3 of your instructions for the free trail

    Visit the Shared Files -> Settings -> Account -> Free Trial (tab) in your WordPress admin.

    When I go to the settings I see the below tabs but no tab for “Account”

    General settings – Layout – File type icons – Custom file types – Email Admin list & columns

    Where can I find the “Account > free trial” tab?

    I figured out what I was doing wrong. I was using the shortcode from the file list [shared_files file_id=2869] which only works in the pro version. I should have used [shared_files]

    However I do see the prompt you mentioned “Are you sure you want to leave this page” for every file I upload, not just the first one. Its easy to get past but its a bit miss leading for others who will use my admin. I hope you fix this.

    I think I will buy the pro version but I didn’t opt in at the install for the trial oops. Is there another way to opt in after install?
    Although its fairly clear what the pro version does

    It seems like a nice lite plugin that serves its purpose ??

    Exactly the same thing for me. Even the most basic file upload wont display on the front end in the free version. Id like to try the pro version which looks like it might do what I need, but there is no option in WP admin as this page describes:

    https://www.sharedfilespro.com/free-trial/

    I found the exact same issue creating new players, and also got an error while trying to open a support ticket. I hope this gets fixed!

Viewing 10 replies - 1 through 10 (of 10 total)