Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter studioleonard

    (@studioleonard)

    Ok it’s done i have uploaded your files.

    Thread Starter studioleonard

    (@studioleonard)

    I already use the beta version of the plugin. So the 1.2.0 beta version.

    About the time/date:
    it print : M/d/Y
    and i would like to have : d/M/Y

    Also for the time :
    it print for exemple : 6:00 PM
    And i would like to have : 18h00

    Thank you lawrence for the help!

    Thread Starter studioleonard

    (@studioleonard)

    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 5 years, 4 months ago by studioleonard.
    • This reply was modified 5 years, 4 months ago by Yui. Reason: please use CODE button for proper formatting
Viewing 3 replies - 1 through 3 (of 3 total)