Frequently Asked Questions

How to addition field for Order in POS
I got some use case, they want add more field to order via POS. 
Since version 3.3.2, we support add more order field API. So, it look like this image 


To do it . we need add those code into wp-content/themes/YOUR_ACTIVE_THEME/function.php

//order custom data
    function custom_order_field($session_response_data){
        $addition_checkout_fields = array();
        $addition_checkout_fields[] = array(
            'code' => 'po',
            'type' => 'text',
            'label' => 'Test PO',
            'description' => '',
            'require' => 'yes', // yes or no
            'default' => '',
        $session_response_data['setting']['pos_addition_checkout_fields'] = $addition_checkout_fields;
        return $session_response_data;
    // this function use to save or interactive with other system
    function custom_order_field_data($order,$order_data){
        $order_id = $order->get_id();
        $addition_information = isset($order_data['addition_information']) ? $order_data['addition_information'] : array();
        // continue logic from here to save or interactive with other system
To display this field in receipt template,  you can use this shortcode in receipt template composer

<%- addition_information.po %>

with 'po' is field code

 Last updated Wed, Sep 19 2018 6:50pm

Please Wait!

Please wait... it will take a second!