How to add new product type display on POS.
Default , openpos just display those product type : 'simple','variation' as physical product . Sometimes , you add new plugin to create new product type and want them…
Default , openpos just display those product type : 'simple','variation' as physical product . Sometimes , you add new plugin to create new product type and want them…
add_filter('op_max_distance_kilometer',function(){ return 0.4; // in KM });
add this code to yourtheme/functions.php or any snippest code + update the method code , price as you want function custom_pos_waiter_remove_dish_data($session_response_data){ $active_emails = array(); // add this allow…
function custom_pos_round_grand_total_data($session_response_data){ $session_response_data['setting']['pos_round_grand_total'] = 'yes'; return $session_response_data; } add_filter('op_get_login_cashdrawer_data','custom_pos_round_grand_total_data',11,1);
function custom_op_product_data_hide_variation_search($product_data,$product){ $_product = wc_get_product($product_data['id']); if($_product) { if($_product->get_type() == 'variation') { $product_data['display_search'] = 'no'; } } return $product_data; } add_filter('op_product_data','custom_op_product_data_hide_variation_search',10,2);
function custom_pos_discount_permission($session_response_data){ $session_response_data['setting']['pos_disable_item_discount'] = 'yes'; $session_response_data['setting']['pos_disable_cart_discount'] = 'yes'; return $session_response_data; } add_filter('op_get_login_cashdrawer_data','custom_pos_discount_permission',10,1);
function custom_allow_refund_op_login_format_payment_data($payment_data) { if($payment_data['allow_refund'] && $payment_data['allow_refund'] == 'no') { $payment_data['allow_refund'] = 'offline'; } return $payment_data; } add_filter('op_login_format_payment_data','custom_allow_refund_op_login_format_payment_data');
function hide_all_notification_op_notice_orders_result(){ return array(); } add_filter('op_notice_orders_result','hide_all_notification_op_notice_orders_result');
Recent Comments