Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author SlicedInvoices

    (@slicedinvoices)

    Yes, I understand. I will examine the issue and try to find a solution. Will reply again soon.

    Thread Starter youpain

    (@youpain)

    ok thanks you,

    see you soon ??

    Thread Starter youpain

    (@youpain)

    Hello,

    for quick solution,

    can you remove the “date_format” from the sliced-admin-metaboxes.php

    // ‘date_format’ => ‘M d, Y’,

    Thanks

    Thread Starter youpain

    (@youpain)

    Or you can use it for quick durable solution,

    $mylocale = get_bloginfo('language');
    if($mylocale == 'fr-FR') {
    
    				$info->add_field( array(
    			'name'        => __( 'Created Date', 'sliced-invoices' ),
    			'desc'        => '',
    			'id'          => $prefix . 'quote_created',
    			'type'        => 'text_date_timestamp',
    			'date_format' => 'd/m/Y',
    			'default'     => array( 'Sliced_Shared', 'get_todays_date' ),
    			'attributes'  => array(
    				'required'  => 'required',
    			),
    		) );
    } else {
    
    			$info->add_field( array(
    			'name'        => __( 'Created Date', 'sliced-invoices' ),
    			'desc'        => '',
    			'id'          => $prefix . 'quote_created',
    			'type'        => 'text_date_timestamp',
    			'date_format' => 'M d, Y',
    			'default'     => array( 'Sliced_Shared', 'get_todays_date' ),
    			'attributes'  => array(
    				'required'  => 'required',
    			),
    		) );
    }
    Thread Starter youpain

    (@youpain)

    or can use

    $mylocale = get_bloginfo(‘language’);
    if($mylocale == ‘fr-FR’) {

    $date_format = ‘d/m/Y’;

    } else {

    $date_format = ‘M d, Y’;

    }

    ‘date_format’ => $date_format,

    for clean code

    Plugin Author SlicedInvoices

    (@slicedinvoices)

    Sorry for the delay. We released a fix for this issue in the latest version of Sliced Invoices (v2.873). Would you please try updating and let me know if it solves it for you?

    We switched to using an ISO_8601 date internally, in order to work consistently with all locales. (Of course, Invoices and Quotes will still show dates formatted according to your WordPress locale on the front-end and in PDFs).

    Plugin Author SlicedInvoices

    (@slicedinvoices)

    I haven’t heard back from you so I’m assuming this is resolved. If you’re still having trouble just let us know. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Invoice & Quotes list not showing’ is closed to new replies.