You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If User Do Login -> Run Ajax Login and show error/success message on login tab ( top of the login ) and reload the page if login success
If user click on Register user Show error/success message on registration tab ( top of the popup registration ) and if registration complete then force login via php and reload the page
User Add To Cart ( if the course is free or premium )
and free/pro course cart should be updatable
User must enter billing information ( Remove Email from billing information )
after clicking on place order
Place Order with Pending ( With Student ID meta value of order ) with total ordered value ( amount )
FOR FREE COURSE
Add Update User Role to Student
Change Order Status to sikshya-completed ( That is enrolled )
Redirect to transaction success page
FOR PREMIUM COURSE
Get Order Details from Order ID and proceed to payment
After Payment Success from Payment Gateway:
Update Order meta as follows
Payment Gateway: paypal or etc ( if not )
Total Paid Amount :
Currency:
Transaction ID
Payment Gateway Response Details
Payment Status: success/failed
Change Order Status to sikshya-completed ( That is student is enrolled on those paid courses )
Redirect Back to transaction failed or success page
after clicking on place order
FOR FREE COURSE
Add Update User Role to Student
Change Order Status to sikshya-completed ( That is enrolled )
Redirect to transaction success page
FOR PREMIUM COURSE
Get Order Details from Order ID and proceed to payment
After Payment Success from Payment Gateway:
Change Order Status to sikshya-completed ( That is student is enrolled on those paid courses )
Redirect Back to transaction failed or success page
Issue: https://wordpress.org/support/topic/not-complete-working/