lmsace / lmsace-connect-woocommerce

WooCommerce Extension - WordPress plugin to sell Moodle LMS courses through the WooCommerce
6 stars 2 forks source link

How to automatically enroll users when wocommerce status is other then "complete"? #3

Open teresa-santos opened 1 year ago

teresa-santos commented 1 year ago

I run a website with WooCommerce and WooCommerce Deposits Plugin, allowing my customers to pay the courses with an initial deposit and future monthly payments. So, I need to auto-enroll them in Moodle as soon as they pay the first deposit. How can I change enrollment required status from "complete" to both "partially paid" or "processing"? Thanks

prasanna-lmsace commented 1 year ago

I run a website with WooCommerce and WooCommerce Deposits Plugin, allowing my customers to pay the courses with an initial deposit and future monthly payments. So, I need to auto-enroll them in Moodle as soon as they pay the first deposit. How can I change enrollment required status from "complete" to both "partially paid" or "processing"? Thanks

Thank you for reaching out and explaining your requirement.

At the moment, the LMSACE Connect doesn't offer support for order statuses other than "completed." However, I want to let you know that we are actively working on the next release. In this upcoming version, we will be introducing new options that allow administrators to choose the specific completion status.

Your feedback is truly valuable to us as we continue to improve our system

Thanks, Prasanna

teresa-santos commented 1 year ago

Hello again,

Is there a way to accelerate this process or to contract your services to develop that feature urgently? (I’m not a programmer, and I don’t have the skills to do it).

It is really important for us.

Thanks,

Teresa

De: prasanna-lmsace @.> Enviada: 7 de agosto de 2023 05:58 Para: lmsace/lmsace-connect-woocommerce @.> Cc: teresa-santos @.>; Author @.> Assunto: Re: [lmsace/lmsace-connect-woocommerce] How to automatically enroll users when wocommerce status is other then "complete"? (Issue #3)

I run a website with WooCommerce and WooCommerce Deposits Plugin, allowing my customers to pay the courses with an initial deposit and future monthly payments. So, I need to auto-enroll them in Moodle as soon as they pay the first deposit. How can I change enrollment required status from "complete" to both "partially paid" or "processing"? Thanks

Thank you for reaching out and explaining your requirement.

At the moment, the LMSACE Connect doesn't offer support for order statuses other than "completed." However, I want to let you know that we are actively working on the next release. In this upcoming version, we will be introducing new options that allow administrators to choose the specific completion status.

Your feedback is truly valuable to us as we continue to improve our system

Thanks, Prasanna

— Reply to this email directly, view it on GitHub https://github.com/lmsace/lmsace-connect-woocommerce/issues/3#issuecomment-1667187117 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BBWIDMJCKHUK5W3272C77D3XUBYXBANCNFSM6AAAAAA3CVYPK4 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/BBWIDMMWGIILUSNZN3JMYETXUBYXBA5CNFSM6AAAAAA3CVYPK6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTDL5A22.gif Message ID: @. @.> >

prasanna-lmsace commented 1 year ago

Hello again, Is there a way to accelerate this process or to contract your services to develop that feature urgently? (I’m not a programmer, and I don’t have the skills to do it). It is really important for us. Thanks, Teresa De: prasanna-lmsace @.> Enviada: 7 de agosto de 2023 05:58 Para: lmsace/lmsace-connect-woocommerce @.> Cc: teresa-santos @.>; Author @.> Assunto: Re: [lmsace/lmsace-connect-woocommerce] How to automatically enroll users when wocommerce status is other then "complete"? (Issue #3) I run a website with WooCommerce and WooCommerce Deposits Plugin, allowing my customers to pay the courses with an initial deposit and future monthly payments. So, I need to auto-enroll them in Moodle as soon as they pay the first deposit. How can I change enrollment required status from "complete" to both "partially paid" or "processing"? Thanks Thank you for reaching out and explaining your requirement. At the moment, the LMSACE Connect doesn't offer support for order statuses other than "completed." However, I want to let you know that we are actively working on the next release. In this upcoming version, we will be introducing new options that allow administrators to choose the specific completion status. Your feedback is truly valuable to us as we continue to improve our system Thanks, Prasanna — Reply to this email directly, view it on GitHub <#3 (comment)> , or unsubscribe https://github.com/notifications/unsubscribe-auth/BBWIDMJCKHUK5W3272C77D3XUBYXBANCNFSM6AAAAAA3CVYPK4 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/BBWIDMMWGIILUSNZN3JMYETXUBYXBA5CNFSM6AAAAAA3CVYPK6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTDL5A22.gif Message ID: @. @.> >

Hi Teresa,

If you need any custom modifications or want to implement new features, please reach out to our LMSACE.com support team using the contact us form. This will help us discuss the pricing for these features.

You can find the contact form here: Contact Us.

Best regards, Prasanna

danweb80 commented 1 year ago

I run a website with WooCommerce and WooCommerce Deposits Plugin, allowing my customers to pay the courses with an initial deposit and future monthly payments. So, I need to auto-enroll them in Moodle as soon as they pay the first deposit. How can I change enrollment required status from "complete" to both "partially paid" or "processing"? Thanks

Hello Teresa,

I'll need the same functionality... but when the team os LMSACE doesn't implemente it we could use the following code on the functions.php file of our Wordpress theme. But you need to be careful because this code will force the status of all Woocommerce orders from 'processing' to 'completed'. I don't know about this 'partially paid' status. I think it was created by your payment plugin.

add_action('woocommerce_order_status_processing', 'lmsace_change_status', 10, 1); 
function lmsace_change_status($order_id)
{
    $order = wc_get_order($order_id);
    $order->update_status( 'completed' );
}

Well, it's only a temporary solution, and when their team builds the definitve solution you will need to remove this code...

If you need some aditional help, contact me on prof.daniel.weber@gmail.com.

P.S. I supose you are brazilian like me. If it's the case you could write me on portuguese...