• Resolved Mafz

    (@mahfuzhannan)


    Hi,

    I was wodering how I can change the width of the receipt to print. I have had a look at the email_print.php file and found something along the lines of this:

    
    /***************************************
                     rows
    ***************************************/
    foreach($section_values['parameters'] as $value_key => $values){
    
    	if(!empty($values['enabled']) && !empty($order_formatted['sections'][$section_key][$value_key])){
    
    	/* left label, right value using filter to space evenly*/
    	$row = array();
    	$row['lft'] = $order_formatted['sections'][$section_key][$value_key]['label'];
    	$row['rgt'] = $order_formatted['sections'][$section_key][$value_key]['value_formatted'];
    
    	/** line **/
    	$tpl[$section_key][$value_key] = apply_filters('wppizza_filter_plaintext_line', $row, ' ');
    
    	}
    
    }
    

    do you know how i can reduce the size for 58mm POS? Assuming it’s a variable hidden away somewhere?

    • This topic was modified 8 years, 10 months ago by Mafz.
Viewing 1 replies (of 1 total)
  • Plugin Author ollybach

    (@ollybach)

    any plaintext (email/print) is set to 74 characters width per line

    if you need variable width, text-sizes etc etc i would suggest you change the template to HTML and set your declarations there depending on how your printer does things

Viewing 1 replies (of 1 total)

The topic ‘Change Print Width’ is closed to new replies.