Skip to content

ledyer/ledyer-order-management-for-woocommerce

Repository files navigation

ledyer-order-management-for-woocommerce

Ledyer order management for Woocommerce

Spin up docker images

  1. update deps with `composer update'
  2. cd to ledyer-order-management-for-woocommerce and add a .env
  3. add PHP_VERSION=8 or PHP_VERSION=7 and save the file
  4. composer install (brew install composer)
  5. docker-compose up --build -d
  6. Browse http://localhost:8181 / http://localhost:8181/wp-admin

Run order management with Ledyer checkout

If you want to run the ledyer-order-management-for-woocommerce together with ledyer-checkout-for-woocommerce you need to either install it from the market place or include a local copy. To run it with a local copy, you need to have Ledyer checkout checked out.

Then edit docker-compose and add ledyer-checkout-for-woocommerce

wordpress-dev:
  ...configuration
  volumes:
    - "./:/var/www/html/wp-content/plugins/ledyer-order-management-for-woocommerce"
    - "../ledyer-checkout-for-woocommerce/:/var/www/html/wp-content/plugins/ledyer-checkout-for-woocommerce"
    - wpdata:/var/www/html
    
wordpress-cli:
  ...configuration
  volumes:
    - "./:/var/www/html/wp-content/plugins/ledyer-order-management-for-woocommerce"
    - "../ledyer-checkout-for-woocommerce/:/var/www/html/wp-content/plugins/ledyer-checkout-for-woocommerce"
    - wpdata:/var/www/html

Debugging

In VS code, install xdebug and optionally a PHP intellisense extension. Then just click Run and debug