• Resolved guillaumedub

    (@guillaumedub)


    Hi There,

    I am very interested in your plugin but I encountered 3 problems when I tested it on a blank site:

    • WordPress 6.5.5 in debug mode
    • PHP 8.2
    • Theme : Twenty Twenty-Four – Version: 1.1
    • WooCommerce – Version 9.1.0
    • Subaccounts for WooCommerce – Version 1.5.5 (Subaccount mode : Sub-User)

    Problems :

    • When I place an order as a manager or sub-account I always have the following information on the thank you page:
      • Account Type:?Default
      • Order placed by:?No information available.
        This order was probably marked by the administrator as Completed or Processing.
    • In the “Order placed by” column of the list of orders placed by the manager for his sub-accounts, I always get the following error message and the manager’s name does not appear :
    Warning: Attempt to read property “user_login” on bool in?/wp-content/plugins/subaccounts-for-woocommerce/public/my-account.php?on line?3383
    • On the detail page of an order placed by a manager for a sub-account, I get the error message:
    Order placed by: Manager
    Warning: Attempt to read property “user_login” on bool in /wp-content/plugins/subaccounts-for-woocommerce/public/my-account.php on line 4235
    on behalf of subaccount sub_user_name

    Thank you for your follow-up.

    Guillaume

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mediaticus

    (@mediaticus)

    Hi @guillaumedub

    Thank you for reaching out.

    Are you creating new users outside of the backend “Add New User” page or outside of the WooCommerce registration form? (e.g. using a custom script to insert users directly in the database.)

    I am asking this because all three reported issues seem to be related to the lack of the ‘Username’ (user_login) value for those specific users.

    Could you please make sure the users you are testing the plugin with have a ‘Username’ set? You can check it on the backend user edit page.

    Please let us know if this helps

    Thread Starter guillaumedub

    (@guillaumedub)

    Hi @mediaticus

    Thanks for your response.

    I did the tests in the front office using the WooCommerce form to create a manager and the form in your plugin to create sub-accounts. I didn’t make a script to create users.

    I checked in the back office and the users do have a ‘Username’ with the ‘Customer’ role.

    I looked in the WooCommerce order metadata table. When I place an order as a manager for a sub-account, apart from the original WooCommerce metadata I only have the meta_key ‘_sfwc_order_placed_by’ which has the value ‘manager_for_default’ added.

    Plugin Author mediaticus

    (@mediaticus)

    Hi @guillaumedub

    Thank you for the update.

    Unfortunately we are not able to reproduce the reported issue; could you please contact us via: Dashboard → WooCommerce → Subaccounts → Contact Us and provide both admin and FTP access to your staging site?

    Plugin Author mediaticus

    (@mediaticus)

    The reported issue will be fixed in the next release of the plugin. In the meantime, for those experiencing the same issue, we recommend editing the checkout page and replacing the checkout block with the checkout shortcode.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error message and empty manager in the “Order placed by” column of order list’ is closed to new replies.