Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An experimental system for placing test orders on live sites.
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
code
README.md
_config.php

README.md

Test Orders (for live sites)

Allow developers and shop owners to place a test orders on live site, for the purposes of seeing if everything is working.

To place a test order:

  • Visit admin/orders/starttestorder
  • Proceed with order as normal

Orders placed in test mode will be flagged as test ($order->Test). Payments will always use test mode, so actual money does not exchange hands.

To reconfigure payement settings on test orders, you currently need to use a hacky approach of decorating order like so:

<?php
class OrderDecorator extends DataObjectDecorator{

    function onPlaceOrder(){

        if($this->owner->Test){
            //change available payment types, and settings etc here
        }

    }

}
Something went wrong with that request. Please try again.