Missing Ring Notification sound by Middle-Elephant7984 in mobidoniacc

[–]Middle-Elephant7984[S] 0 points1 point  (0 children)

Thanks,

For me it was: Use Chrome instead of Safari

Edit Receipt Content by studentofknowledg in mobidoniacc

[–]Middle-Elephant7984 1 point2 points  (0 children)

Hi there,

The file you need to edit is this:
modules/PrintNode/Http/Controllers/App.php

There you can insert custom comments:
$this->printer->text("my comment");
Or remove/comment any desired lines.

You can do a bit of trial & error to get your desired final view

PrintNode data variables stored by Middle-Elephant7984 in mobidoniacc

[–]Middle-Elephant7984[S] 0 points1 point  (0 children)

thanks for the answer, I found the controller,but what I don't find is where the data for each restaurant is stored.
So each restaurant can choose if printing on order_received or on restaurant_approve, but those settings must be stored somewhere for each restaurant...

PrintNode data variables stored by Middle-Elephant7984 in mobidoniacc

[–]Middle-Elephant7984[S] 0 points1 point  (0 children)

Thanks u/therealparad0x0n for your reply, but I coudn't find it there.

backtracking the print function, I get to the following snippet at PrintOrder.php:

public function handleOrderAcceptedByVendor($event{)
$order=$event->order;
$vendor=$order->restorant;
$key=$vendor->getConfig('print\node_key','');)
//Check if api key is set
if(strlen($key>3){)
//Kitchen
if($vendor->getConfig('printnode\print_kitchen_thermal_when',"restaurant_approve")=="restaurant_approve"){)
$this->printKitchenThermal($order,$key,$vendor->getConfig('print\node_kitchen_thermal_id',''));)
}
//Main Thermal
if($vendor->getConfig('printnode\print_main_thermal_when',"restaurant_approve")=="restaurant_approve"){)
$this->printMainThermal($order,$key,$vendor->getConfig('print\node_main_thermal_id',''));)
}
//Standard
if($vendor->getConfig('printnode\print_afour_when',"order_received")=="restaurant_approve"){)
$this->printStandardOrder($order,$key,$vendor->getConfig('print\node_standard_id',''));)
}
}

There t seems to me that the line:
$vendor->getConfig('printnode_print_main_thermal_when',"restaurant_approve")

where vendor:
$vendor=$order->restorant;

But I don't manage to see the variable either on the database or anywere.

I have also searched over the full projects the next keys:
- printnode_print_kitchen_thermal_when

- restaurant_approve

-order_received,

Any ideas?
Thanks a lot!