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

 Last updated Thu, Sep 20 2018 12:50am

Please Wait!

Please wait... it will take a second!