• Hi there

    Love the plugin.
    I am trying to hide the Order Date and Number and from what I pieced together from answers here this should work, but it doesn’t for me:

    add_action( ‘wpo_wcpdf_custom_styles’, ‘wpo_wcpdf_custom_styles’, 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
    ?>
    .invoice .order-date,
    .invoice .order-number {
    display: none;
    }
    <?php
    }

    I don’t mind the duplicates terribly, but when I place orders the Invoice Date is correct but the Order Date is a day ahead.
    That happens in Pacific Time in the evening.

    Any help would be appreciated.

    Thanks
    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dear Mr Krieger,

    Thank you for writing to us.

    Regarding your first question, I believe this might be of more use to you.

    As for your second question, this is a feature that the Premium version offers. We have a 30-day money back guarantee without any questions asked. Feel free to try our premium plugin and see if it is to your liking.

    Kind Regards,
    Maxim van Maanen

    Hi,

    I have the same problem.
    Can your please tell me the name of the element that I have to add in the function so it will hide the order number in the header of the invoice?

    In the example there are only other elements:

    function bewpi_alter_hidden_order_itemmeta( $hidden_order_itemmeta ) {
    $hidden_order_itemmeta[] = ‘_wc_cog_item_cost’;
    $hidden_order_itemmeta[] = ‘_wc_cog_item_total_cost’;
    $hidden_order_itemmeta[] = ‘_subscription_interval’;
    $hidden_order_itemmeta[] = ‘_subscription_length’;
    // end so on..
    return $hidden_order_itemmeta;
    }
    add_filter( ‘bewpi_hidden_order_itemmeta’, ‘bewpi_alter_hidden_order_itemmeta’, 10, 1 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide order number and date order not working for me and wrong order date’ is closed to new replies.