Thank you for the reply.
I have :
function star_cloudprnt_create_receipt_order_meta_data($meta_data, &$printer, $max_chars)
{
if(get_option('star-cloudprnt-print-order-meta-cb') != on)
return;
// List of meta data item keys to print and formatted output
$fields = array(
"byconsolewooodt_delivery_date" => "Date de retrait: [value]",
"byconsolewooodt_delivery_time" => "Heure de retrait: [value]",
"byconsolewooodt_delivery_type" => "Delivery Type: [value]"
);
$is_printed = false;
foreach ($meta_data as $item_id => $meta_data_item)
{
if(! $is_printed)
{
$is_printed = true;
$printer->set_text_emphasized();
$printer->add_text_line("Informations relatives à la commande");
$printer->cancel_text_emphasized();
}
$item_data = $meta_data_item->get_data();
$printer->add_text_line($item_data["key"].": ".$item_data["value"]);
}
if($is_printed) $printer->add_text_line("");
}
But it don’t work i still have :
Informations relatives à al commande
byconsolewooodt_delivery_type: take away
byconsolewooodt_delivery_date: 01/13/2021
byconsolewooodt_delivery_time: 12:00 PM
byconsolewooodt_delivery_date: 1
How can i do to have this in french ? (text, local hour and time)
-
This reply was modified 3 years, 10 months ago by studioleonard.
-
This reply was modified 3 years, 10 months ago by Yui. Reason: please use CODE button for proper formatting