• Hi there. thanks for a great plug-in

    I have two questions:

    1. I want to set default description text for Description field (An optional field to add a description to the Invoice). How can I do that? I tried with this code, but it doesn’t work

    add_filter( 'default_content', 'my_editor_content' );
    function my_editor_content( $content ) {
        $content = "some text.";
        return $content;
    }

    2. Discount: when inserting a value for example 10,95 it will be 1095,00. If you change , to . discount will be 0

    Thank you in advance

    • This topic was modified 7 years, 3 months ago by pukoo.
Viewing 1 replies (of 1 total)
  • Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hello,

    1) The code you provided looks fine to me, I don’t see any obvious reason why it wouldn’t work. However we’re not able to provide support regarding custom coding, unfortunately.

    2) If your currency uses a comma as the decimal separator, instead of a period, then you need to put this in the settings. Go to Sliced Invoices Settings / Payments tab, and change the “Decimal Separator” field to “,” (without the quotes). Also change the “Thousand Separator” to match your currency.

    Regards

Viewing 1 replies (of 1 total)

The topic ‘Description field & Discount bug’ is closed to new replies.