Looking for help?
How to change grid size in POS ?
By default , the setting grid in admin/pos/setting effect for desktop screen. To change other screen , you can use this shortcode and customize as you want to your theme/functions.php or snippets code plugin
if(!function_exists('custom_op_get_login_cashdrawer_data_grid'))
{
function custom_op_get_login_cashdrawer_data_grid($session_response_data){
// category grid
$session_response_data['setting']['pos_cat_grid_column'] = 5;
$session_response_data['setting']['pos_cat_grid_row'] = 5;
// mobile screen
$session_response_data['setting']['pos_cat_grid_column_sm'] = 3;
$session_response_data['setting']['pos_cat_grid_row_sm'] = 3;
$session_response_data['setting']['pos_cat_grid_column_xs'] = 3;
$session_response_data['setting']['pos_cat_grid_row_xs'] = 3;
// product grid screen
$session_response_data['setting']['pos_product_grid_column'] = 3;
$session_response_data['setting']['pos_product_grid_row'] = 3;
// mobile screen
$session_response_data['setting']['pos_product_grid_column_sm'] = 3;
$session_response_data['setting']['pos_product_grid_row_sm'] = 3;
$session_response_data['setting']['pos_product_grid_column_xs'] = 3;
$session_response_data['setting']['pos_product_grid_row_xs'] = 3;
// table grid
$session_response_data['setting']['pos_desk_grid_row'] = 1;
$session_response_data['setting']['pos_desk_grid_column'] = 2;
// mobile screen
$session_response_data['setting']['pos_desk_grid_row_sm'] = 1;
$session_response_data['setting']['pos_desk_grid_column_sm'] = 2;
$session_response_data['setting']['pos_desk_grid_row_xs'] = 1;
$session_response_data['setting']['pos_desk_grid_column_xs'] = 2;
return $session_response_data;
}
}
add_filter('op_get_login_cashdrawer_data','custom_op_get_login_cashdrawer_data_grid',11,1);