-1

Here is what I am trying to do - a website with online courses using WooCommerce and Elementor. I want to have a page called "My Courses" where customers can see only the courses they've purchased. I'm not using any LMS.

I will use the plugin Dynamic Conditions for Elementor to show or hide a widget. I know that WooCommerce has a function to check if a user has bought a specific product.

I don't know how to make a connection between the two, though. That is my problem.

Dynamic Conditions uses Elementor's dynamic tags system to check against. How can I use the WC's function to check if the user bought the product and only if he/she did, then to show them the widget with the course page?

Thanks a lot for any answers with ideas or directions on how to solve this problem!

1
  • 1
    Please post code showing what you achieved so far and eventual error messages. So that one can point what problem is happening and be able to help.
    – dpetrini
    Sep 30, 2020 at 19:37

1 Answer 1

0

Using Dynamic.ooo you can benefit from "Visibility" extention (comes with Dynamic.ooo/ don't need seperate plugin installation) which allows you write your customized conditions (in PHP). I myself have not used the "Custom Condition" becuase I don't know much about PHP, but if you know the function and just need to connect them i think that'll do. enter image description here

enter image description here

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.