Home » Documentations and support » GitCommerce: Connect WooCommerce to your GitLab repositories

GitCommerce: Connect WooCommerce to your GitLab repositories

Sell your Gitlabs projects
directly as Woocommerce products

View product sheet

Watch the tutorial video on youtube

Sell your code directly from your GitLab projects on WooCommerce.
This plugin, used on our own Apps shop , greatly simplifies the sale of software on WooCommerce by connecting your WooCommerce online store to Gitlab.

Product pages can display new tabs directly fed from your Gitlab project (Description, Files, Change Log), and your customers can download products or open Gitlabs support tickets directly from their WooCommerce account!

Easy, simple, useful.

Easy integration of GitLab and WooCommerce

To integrate WooCommerce and GitLab, first go to on your Gitlab and create a new token for your WooCommerce, by defining the necessary rights to access the projects you want to be able to sell (even for free) on your WooCommerce store.

Then, simply install the GitCommerce extension on your WooCommerce, enter the Gitlab API key on the settings page, and your Gitlab repositories will now be integrated into your WooCommerce website.

Enter your personal token to integrate your WooCommerce to your GitLab

Associate a Gitlab project with a product

Create or modify a product: if your product is “virtual” and “downloadable,” you will see a new “Git” menu appear.

Select the project you want to associate with your product, and you're done!

Choose the GitLab project you want to sell

Data that is always up to date!

Live product information, directly from your GitLab

The product tabs have been improved:

  • Information: This new tab displays your README.md file.
  • Files: ce nouvel onglet affiche toutes les versions disponibles de votre projet, grâce aux balises Gitlab.
  • Change log: displays the change log!

The tab ” Files " can also display generic information about the project, such as the creation date or the last update.

Your README file
Your Changelog
Your available Releases

WooCommerce Order Updates & GitLab Live Updates

In addition, When a project contains versions and artifacts, these will be directly downloadable by your customers who have purchased the product.

On the customer side

And this is perfectly integrated into the WooCommerce download ecosystem:

  • Users with an account will find the available versions in their download section.
  • Users without an account will have access to download the versions of the projects they have purchased.

On the admin side in WooCommerce

  • After the initial download of the archive, the order will automatically change to “Completed” status.
  • When you publish a new version, an email can be automatically sent to buyers of the product.
  • When a version is downloaded, the command is updated with a new note.

Live support

From your WooCommerce customer account to your Gitlabs projects

Finally, your customers have the option to create a support ticket (Help Desk) from the product page or their customer account in WooCommerce, which will appear directly in your GitLab project.

Configure Gitlab

How to manage Gitlab CI/CD and WooCommerce

We assume that the files for sale are stored in a “public” directory (you can name it whatever you want).

The script will also check if the project contains a build.sh file in its root directory in order to compile the resources.

On each publication tag, this script will generate a artifact nammed name-of-your-project-5.8.zip (where 5.8 corresponds to the tag created).

Release:
    stage: release
    script:
        - BUILD_FILE="build.sh"
        - if test -f "$BUILD_FILE"; then echo "Build file found."; sh $BUILD_FILE; fi;
    artifacts:
        name: "${CI_PROJECT_NAME}-${CI_COMMIT_TAG}"
        paths:
            - public/
        exclude:
            - node_modules
            - ./*.json
            - ./.*
    rules:
        - if: $CI_COMMIT_TAG

Support tickets: from WooCommerce to Gitlab

Support tickets are associated with issues in Gitlab. Issues can be created in two ways: Standard issue or Service Desk.

Service Desk is the most convenient way to create support tickets, as GitLab will notify your customers of every activity on the support ticket. If Service Desk is enabled, GitCommerce will use this method to create tickets.

As a fallback solution, standard tickets will be created by Gitlab users who have the login token. In this case, we recommend creating a dedicated user called “Bot” or “Shop.” If you use your own account, you will see the tickets you have created, which can be confusing.

Security:
keep WooCommerce connected to GitLab, but invisible.

Your installation always remains confidential. Your customers will never see your GitLab URL, even if you share images in Readme, Changelog, or support tickets. URLs are replaced as if the files had been uploaded to your store.

Would you like more information about the features of the plugin ?

View product sheet

Sell the Gitlab project code on WooCommerce. This plugin – used on the site you visit – significantly simplifies selling software on WooCommerce by connecting your WordPress to Gitlab.

FAQ: Your questions, our answers