Thank you for considering contributing to DigiCommerce! We appreciate your interest in helping make our digital product & service ecommerce platform even better.
This document outlines the process for contributing to DigiCommerce and helps ensure a smooth collaboration experience.
If you've found a bug in DigiCommerce, we'd like to hear about it:
-
Check Existing Issues - Search the existing issues to see if someone else has already reported the problem.
-
Create a New Issue - If your bug hasn't been reported yet, create a new issue with the following information:
- A clear, descriptive title
- Steps to reproduce the bug
- Expected behavior
- Actual behavior
- WordPress version, PHP version, and other relevant environment details
- Screenshots if applicable
-
Isolate the Problem - If possible, create a reduced test case that demonstrates the bug with minimal code.
Have an idea for improving DigiCommerce?
-
Check Existing Issues - Search existing issues labeled as "enhancement" to see if your idea has already been suggested.
-
Create a Feature Request - If your idea is new, create a feature request with:
- A clear, descriptive title
- Detailed description of the proposed functionality
- Any relevant mockups or examples
- Explanation of why this feature would be valuable to DigiCommerce users
We welcome code contributions through pull requests:
-
Fork the Repository - Create your own fork of the DigiCommerce repository.
-
Create a Branch - Create a feature branch for your changes:
git checkout -b feature/your-feature-nameor for bugfixes:
git checkout -b fix/your-bugfix-name-
Make Your Changes - Implement your changes following our coding standards.
-
Write Tests - Add or update tests for your changes when applicable.
-
Submit a Pull Request - Open a PR against the
mainbranch with:
- A clear description of the changes
- Reference to any related issues
- Explanation of the implementation approach
- Any notes on testing that you performed
- Code Review - The team will review your PR, suggest changes if needed, and approve when ready.
- Clone the Repository:
git clone https://github.com/YourUsername/digicommerce.git
cd digicommerce- Install Dependencies:
composer install
npm install- Local WordPress Environment:
- We recommend using Local or XAMPP for local WordPress development
- Alternatively, use wp-env for a containerized setup
- Build Assets:
npm run buildRun PHP tests with:
composer testRun JavaScript tests with:
npm testDigiCommerce follows the WordPress Coding Standards:
- Follow WordPress PHP Coding Standards
- Use PHP_CodeSniffer comments for functions, classes, and methods
- Validate and sanitize input data, escape output data
- Follow WordPress JavaScript Coding Standards
- Use JSDoc comments for functions and methods
- Properly handle internationalization
- Follow WordPress CSS Coding Standards
- Use consistent naming conventions
- Ensure responsive design principles
If you have any questions about contributing, please:
- Join our Facebook Community Group
Thank you for contributing to DigiCommerce!