2017 © Pedro Peláez
 

library krokedil-logger

Logging for WooCommerce Gateways

image

krokedil/krokedil-logger

Logging for WooCommerce Gateways

  • Friday, May 4, 2018
  • by MichaelBengtsson
  • Repository
  • 4 Watchers
  • 0 Stars
  • 47 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 38 % Grown

The README.md

krokedil-logger

Installation

Install with Composer., (*1)

Add these lines to your composer.json:, (*2)

{
    "require": {
        "krokedil/krokedil-logger": "^1.0"
    }
}

Usage

Log event

Use the function krokedil_log_events., (*3)

Example: krokedil_log_events( $order_id, $title, $data );

$order_id = The WooCommerce order id. Can be sent as null if you want to log events before an order exists., (*4)

$title = The title that you wish to have for the event., (*5)

$data = An array of the data that you want to log., (*6)

Set the version used for order

Use the function krokedil_set_order_gateway_version., (*7)

Example: krokedil_set_order_gateway_version( $order_id, $version );

$order_id = The WooCommerce order id., (*8)

$version = The version that you want to log for the order., (*9)

Use this function at a point where an order exists, for example thank you page or process_order., (*10)

Set display on/off

To switch between showing and not showing the logs on the order add a define for KROKEDIL_LOGGER_ON to turn it on., (*11)

Example: define( 'KROKEDIL_LOGGER_ON', true );

Set gateway filter

You need to set what gateway the meta box should be allowed for. Do this using the define KROKEDIL_LOGGER_GATEWAY., (*12)

Example: define( 'KROKEDIL_LOGGER_GATEWAY', '$string' );

$string = A string or substring of the gateway id., (*13)

Recognition

This plugin uses the renderjson JavaScript created by GitHub user Caldwell. It can be found here: RenderJSON., (*14)

The Versions

04/05 2018

dev-develop-v2

dev-develop-v2 https://www.krokedil.se

Logging for WooCommerce Gateways

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

log logging woocommerce

29/03 2018

dev-master

9999999-dev https://www.krokedil.se

Logging for WooCommerce Gateways

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

log logging woocommerce

29/03 2018

1.0.6

1.0.6.0 https://www.krokedil.se

Logging for WooCommerce Gateways

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

log logging woocommerce

14/03 2018

1.0.5

1.0.5.0 https://www.krokedil.se

Logging for WooCommerce Gateways

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

log logging woocommerce

30/01 2018

1.0.4

1.0.4.0 https://www.krokedil.se

Logging for WooCommerce Gateways

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

log logging woocommerce

30/01 2018

1.0.3

1.0.3.0 https://www.krokedil.se

Logging for WooCommerce Gateways

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

log logging woocommerce

30/01 2018

1.0.1

1.0.1.0 https://www.krokedil.se

Logging for WooCommerce Gateways

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

log logging woocommerce