Title: Description field &amp; Discount bug
Last modified: January 4, 2019

---

# Description field & Discount bug

 *  [pukoo](https://wordpress.org/support/users/pukoo/)
 * (@pukoo)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/description-30/)
 * 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, 5 months ago by [pukoo](https://wordpress.org/support/users/pukoo/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [SlicedInvoices](https://wordpress.org/support/users/slicedinvoices/)
 * (@slicedinvoices)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/description-30/#post-11061140)
 * 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.

 * ![](https://ps.w.org/sliced-invoices/assets/icon.svg?rev=1314180)
 * [Sliced Invoices - WordPress Invoice Plugin](https://wordpress.org/plugins/sliced-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sliced-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sliced-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/sliced-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sliced-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sliced-invoices/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [SlicedInvoices](https://wordpress.org/support/users/slicedinvoices/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/description-30/#post-11061140)
 * Status: not resolved