Skip to content

Latest commit

 

History

History
140 lines (88 loc) · 4.23 KB

File metadata and controls

140 lines (88 loc) · 4.23 KB

Contributing to DigiCommerce

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.

How to Contribute

Reporting Bugs

If you've found a bug in DigiCommerce, we'd like to hear about it:

  1. Check Existing Issues - Search the existing issues to see if someone else has already reported the problem.

  2. 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
  3. Isolate the Problem - If possible, create a reduced test case that demonstrates the bug with minimal code.

Suggesting Features

Have an idea for improving DigiCommerce?

  1. Check Existing Issues - Search existing issues labeled as "enhancement" to see if your idea has already been suggested.

  2. 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

Pull Requests

We welcome code contributions through pull requests:

  1. Fork the Repository - Create your own fork of the DigiCommerce repository.

  2. Create a Branch - Create a feature branch for your changes:

git checkout -b feature/your-feature-name

or for bugfixes:

git checkout -b fix/your-bugfix-name
  1. Make Your Changes - Implement your changes following our coding standards.

  2. Write Tests - Add or update tests for your changes when applicable.

  3. Submit a Pull Request - Open a PR against the main branch with:

  • A clear description of the changes
  • Reference to any related issues
  • Explanation of the implementation approach
  • Any notes on testing that you performed
  1. Code Review - The team will review your PR, suggest changes if needed, and approve when ready.

Development Environment

Setting Up Locally

  1. Clone the Repository:
git clone https://github.com/YourUsername/digicommerce.git
cd digicommerce
  1. Install Dependencies:
composer install
npm install
  1. Local WordPress Environment:
  • We recommend using Local or XAMPP for local WordPress development
  • Alternatively, use wp-env for a containerized setup
  1. Build Assets:
npm run build

Running Tests

Run PHP tests with:

composer test

Run JavaScript tests with:

npm test

Coding Standards

DigiCommerce follows the WordPress Coding Standards:

PHP

  • Follow WordPress PHP Coding Standards
  • Use PHP_CodeSniffer comments for functions, classes, and methods
  • Validate and sanitize input data, escape output data

JavaScript

CSS

Questions?

If you have any questions about contributing, please:

Thank you for contributing to DigiCommerce!