Giter Club home page Giter Club logo

openedx-wordpress-ecommerce's Introduction

⭐ Open edX Commerce (WordPress Plugin)

The "Open edX Commerce" package is a free and open-source WordPress plugin that allows you to integrate WooCommerce with your Open edX platform.

What does this mean? You can create Open edX courses as products in WooCommerce, and when you perform purchase or refund operations for these products, your Open edX platform will reflect these changes.

Here are some things you can do with this plugin:

  • Create Open edX courses as products: When you create products using WooCommerce, you can designate them as Open edX courses. If you do, you can assign the course mode and course_id you registered in your Open edX platform.

  • Add settings for the connection with Open edX: You'll have a new option in your WordPress settings to store authentication-related information for your Open edX platform.

  • Enrollment Manager: You'll have a table that records all enrollment requests made through purchasing products that are Open edX courses.

  • View the enrollment requests from the orders: When a person purchases WordPress, a WooCommerce order is generated. If an order includes a product that is an Open edX course, you can easily access the related enrollment request created with this plugin.

  • Create enrollments in Open edX: When an order containing an Open edX course is processed, it automatically creates an enrollment request.

    • You can also include the option to apply the "force" flag, disregarding the course's enrollment end dates.
    • Starting from version Quince of Open edX, you can use the option to create enrollment allowed for non-registered users on the platform.
  • Create soft unenrollments from refunds: The enrollment record is maintained, but the "is_active" attribute of the enrollment is false. Deleting an "enrollment allowed" is also supported, but only from version Quince.

  • Obtain enrollment information: This requests the Open edX APIs to retrieve the enrollment status of a user in a course.

Note

This plugin calls the APIs from Open edX Platform.

More information about the API connection can be found in Decisions: API connection.

To learn more, you can visit the Open edX Terms of Service.

Installation

Requirements

Manual installation

  1. Download the ZIP version on the release page in the GitHub repository.

Download ZIP from release

  1. Log in to your WordPress admin dashboard, navigate to the Plugins menu in the sidebar and click Add New.

  2. Upload the ZIP version of this project.

  3. Activate the plugin.

Getting Started

Let's start installing and configuring the Open edx Commerce plugin to connect your WordPress site with the enrollment APIs from your Open edX platform.

Link to the Quickstart in the documentation.

Open edX Compatibility

  • Tested from Olive

NOTE: Enrollment of users who are not platform users (Create course enrollment allowed) is only supported for versions equal to or after Quince.

Getting Help

To report a bug or request a feature, visit issues.

Documentation

See documentation on Read the Docs.

How to Contribute

Contributions are very welcome. Please read How To Contribute for details.

This project accepts all contributions, bug fixes, security fixes, maintenance work, or new features. However, please discuss your new feature idea with the maintainers before beginning development to maximize the chances of accepting your change. You can start a conversation by creating a new issue on this repo summarizing your idea.

License

The code in this repository is licensed under version 2 of the GNU General Public License. Please see the LICENSE file for details.

openedx-wordpress-ecommerce's People

Contributors

feanil avatar felipemontoya avatar julianramirez2 avatar jvegalo avatar kdmccormick avatar mafermazu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

openedx-wordpress-ecommerce's Issues

Have the Open edX settings in the plugin

Story: As an Operator, I want to add in my WordPress settings information about my Open edX platform to be able to enroll from WordPress.
Acceptance Criteria: Be able to add my Open edX information (Domain, client_id, and client_secret).

["FIX"] Improve the installation of the requirements (Guzzle)

We don't want to have our requirements in files in our code; for that reason, we want to use a workflow to install our requirements and have it in the zip file but not in the source code as a file.

Acceptance criteria: Don't have our requirements as files.

Question about using with openedx and Wordpress in docker containers

I am trying to use this on docker version of Wordpress 6.3.1, following these steps on the repo:
https://github.com/mjstealey/wordpress-nginx-docker
except I changed to use image: wordpress:6.3.1-php8.1-fpm
after starting tutor local launch, the tutor(openedx) and Wordpress runs successfully and both accessible
wordpress is on http://localhost:8443, tutor is http://local.edly.io

I also built network between two containers
docker network connect --ip 172.20.128.2 multi-host-network c729d4c7074d #tutor_local-caddy-1
docker network connect --ip 172.20.128.3 multi-host-network f456aad7345b #wp-wordpress

I created OAuth application for wordpress, but when I try to set it in wordpress plugin, it shows up an error

Error: cURL error 7: Failed to connect to localhost port 443 after 0 ms: Couldn't connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://localhost/oauth2/access_token

do you have idea about how to correctly set this up in this case?

截圖 2023-12-26 下午6 17 21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.