• Support
  • Printer Docket changes not applying

We liked the layout of the Categories, Items, options etc that is printed on the ‘Kitchen’ receipt but we primarily prefer the ‘Customer’ layout. So, I attempted to copy the block of code from Kitchen to Customer whilst also keeping the totals, pricing etc… however, the Customer receipt is printing still how it was…the changes are not showing when printing, neither is their any logs, which suggests their is no error in the .php file? Can someone suggest why the receipt is not printing how we expect it too? See below how the Customer receipt docket blade file now looks

the lines in bold are what was added to the Customer docket file.

<|@php $categoryName = ''; @endphp
@php $totalItems = 0; @endphp
@foreach ($order_menus as $menu) @php $totalItems += $menu['menu_quantity']; @endphp
@if ($categoryName != $menu['menu_category_name'])

-----
## {{ (trim($menu['menu_category_name']) != '' ? strtoupper($menu['menu_category_name']) : 'OTHER').':' }}

@php $categoryName = $menu['menu_category_name']; @endphp @endif
#### {{ str_pad(substr($menu['menu_quantity'].'x '.$menu['menu_name'], 0, $charsPerRow - 11), $charsPerRow - 11, ' ', STR_PAD_RIGHT) }}    {{ str_pad($menu['menu_price'], 7, ' ', STR_PAD_LEFT) }}
@if ($menu['menu_options'])@foreach ($menu['menu_options'] as $option)
#### +    {{ str_pad(substr($option['menu_option_quantity'].'x '.$option['menu_option_name'], 0, $charsPerRow - 11), $charsPerRow - 11, ' ', STR_PAD_RIGHT) }}    {{ str_pad($option['menu_option_price'], 7, ' ', STR_PAD_LEFT) }}
@endforeach
@endif @if ($menu['menu_comment']){!! $menu['menu_comment'] !!}
@endif
@endforeach

{{ $totalItems }} {!! $stringItems !!}
@foreach ($order_totals as $total)
@if (in_array($total['order_total_code'], ['subtotal', 'total']))#### @endif{!! str_pad(substr(strtoupper($total['order_total_title']), 0, $charsPerRow - 11), $charsPerRow - 11, ' ', STR_PAD_RIGHT) !!}    {!! str_pad($total['order_total_value'], 7, ' ', STR_PAD_LEFT) !!}
@endforeach

@foreach ($order_totals as $total)
@if (in_array($total['order_total_title'], ['tip']))### {!! $total['order_total_title'].': '.$total['order_total_value'] !!}@endif
@endforeach
@if ($showPaymentInfo OR $showIssueMessage)
-----
@endif
    @php
    /* Config params */
    $showLocalInfo = true;
    $showOrderInfo = true;
    $showCustomerInfo = true;
    $showAddress = true;
    $showComment = true;
    $showQRCode = true;
    $showPaymentInfo= true;
    $showIssueMessage = true;
    
    /* Strings - General  */
    $stringTelephone = "Telephone no:";
    $stringReceiptTitle = "CUSTOMER COPY";
    $stringOrderNumber = "ORDER #:";
    $stringOrderFor = "Order for:";
    $stringName = "Name:";
    $stringCustomerPhone = "Phone number:";
    $stringCustomerPhone2 = "Phone number:";
    $stringCustomerNo2 = "01234 567899";
    $stringDeliveryAddress = "Delivery address:";
    $stringQRPhrase = "Bring me there:";
    $stringNotPaid = "NOT PAID";
    $stringPaid = "PAID";
    $stringIssuePhrase = "Any issues with your order please contact";
    $stringComment = "Comment:";
    
    /* Strings - Customer Receipt */
    $stringItems = "items";
    
    @endphp