1 min read

Add custom field in add custom product form

Snippet code to show field on pos panel if(!function_exists('openpos_product_addition_fields')) { function openpos_product_addition_fields($session_response_data){ //custom product fields $session_response_data['setting']['openpos_product_addition_fields'] = array(); $session_response_data['setting']['openpos_product_addition_fields'][] = array( 'code' => 'text_field', 'type' => 'text', 'required'…

1 min read

Manage cart button on POS

add_filter('op_get_login_cashdrawer_data',function($session_response_data){ $buttons = array(); $buttons[] = 'cart-note'; $buttons[] = 'shipping'; $buttons[] = 'pickup'; $buttons[] = 'cart-discount'; $buttons[] = 'custom-item'; $buttons[] = 'custom-tax'; $buttons[] = 'seller'; $buttons[] = 'coupon';…

1 min read

Why Change calculation is wrong ?

When POS use payment mode ="single payment" or "single payment with multi times" . the change will rounding follow MIN cash in your setting. Although we already take…

1 min read

Use offline order number

function custom_pos_use_offline_order_number($session_response_data){ $session_response_data['setting']['pos_use_offline_order_number'] = 'yes'; return $session_response_data; } add_filter('op_get_login_cashdrawer_data','custom_pos_use_offline_order_number',11,1);

1 min read

Add variable attribute info to variation products

add_filter('op_product_data',function($product_data){ if(!empty($product_data)) { $_product = wc_get_product($product_data['id']); if($_product->get_type() == 'variation') { $product_data['display_search'] = 'no'; $variation_attributes = $_product->get_attributes(); $attribute_str = implode(',',$variation_attributes); $parent_id = $_product->get_parent_id(); $parent_product = wc_get_product($parent_id); $name = $_product->get_name();…