• Resolved maycal

    (@maycal)


    Hello.

    The problem:

    There are two products. Both are “virtual” and “downloadable”.

    If two these product bundled together using the “YITH WooCommerce Product Bundles”, then new order notification do not send to admin.

    If I will buy these products separately (not in bundle), then new order notification works fine.

    How can i fix this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Leanza Francesco

    (@leanzafrancesco)

    Hi,
    and thank you for writing in!

    We’ve just tried to create a bundle product, including 2 virtual/downloadable products, and to purchase it and we see the WooCommerce “new order” email was correctly sent to the admin.

    Maybe something in your installation could conflict with the plugin and cause this issue.
    In this case, to discover what is causing the issue you should isolate the plugin behavior; to do this, please, try to deactivate all plugins, leaving only WooCommerce and YITH WooCommerce Product Bundles active, and see if the problem is solved. If so, try to activate them again, one by one, to see which one causes the issue.
    If the problem isn’t caused by a plugin, try to activate a default WordPress theme (i.e:Twenty Twenty) and see if you have the same issue.
    Also, if you have customized some files in your theme, please try with a fresh installation without any customization.

    Please try this solution and let us know what’s the result.

    Thread Starter maycal

    (@maycal)

    We’ve just tried to create a bundle product, including 2 virtual/downloadable products

    The most important thing – did you checked mark “virtual and downloadable” together or only one of check mark?

    It must be like on this screenshot: https://ibb.co/kS47mjk

    2 products included in bundle must be “virtual AND downloadable” at the same time (2 checks marks). If it will be only one check mark, then new order email sends correctly.

    If it will be two check marks, then new order email will not send to admin.

    • This reply was modified 3 years, 6 months ago by maycal.
    Thread Starter maycal

    (@maycal)

    Thank you for your reply. I figured it out. The reason was learnpress plugin. Specifically, the error was contained in the code of the file “abstract-lp-user.php” located in the path wp-content / plugins / learnpress / inc / user /

    This error resulted in:

    1) Notification of a new order was not sent to the administrator

    2) When you buy a set of several courses through WooCommerce, LearnPress signed the user for only 2 of these courses

    So, if you buy more than 1 course at the same time through WooCommerce, the error “Cannot use object of type stdClass as array” appeared. Now I have a corrected file, and if you need – let me know, I will give you the file. It was checked with the learnpress version 4.0.6

    The error in the code was made by the learnpress developers.

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    we’re happy to see that problem is solved now.
    Don’t hesitate contact us whenever you need.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘new order email don’t send if bundled product’ is closed to new replies.