Answers.Body: <p>Welcome to CiviCRM SE.</p>
  <p>The invoice number is stored for contribution at the time of creation. If you update the invoice prefix in contribute component settings it will not change the invoice number for the already created contribution but for the new ones it will use the new prefix.</p>
  <p>You will need to do a bulk update on invoice numbers using mysql script or using api4 for the already created contributions.</p>
  <p>HTH</p>
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-05T22:28:10.010Z
Answers.Text: YES! I can confirm that after adding the second contribution, both the Invoice number in the "View" window and the "{contribution.invoice_number}" in the exported PDF file now listen to the "Invoice Prefix" option.
  Thanks a lot, Pradeep!
Answers.UserDisplayName: Some Devs
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-04T14:26:47.613Z
Answers.LastActivityDate: 2022-10-04T14:26:47.613Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I have been using the CiviContribute for a short while and it's quite good, but there is something that I could never make work.<br>
  Note: I use Civi on Wordpress.<br>
  In the Admin &gt; Civicontribute &gt; CiviContribute Component Settings, you can set the &quot;Invoice Prefix&quot; to whatever text you want, but when you go to the actual contribution in the dashboard and click View, the Invoice Number has the default prefix &quot;INV_1&quot;.<br>
  Another example is: I used in the invoice template the {contribution.invoice_number} token and the same behavior, default prefix...<br>
  Does anyone have any experience with this or know a fix? 
  Thanks a lot!</p>
  
Tags: <civicontribute>
Title: CiviCRM - CiviContribute does not respect the invoice number prefix set in the CiviContribute Component Settings
ThreadText: # CiviCRM - CiviContribute does not respect the invoice number prefix set in the CiviContribute Component Settings
  
  (Asked by: username_0 on 2022-10-04)
  
  I have been using the CiviContribute for a short while and it's quite good, but there is something that I could never make work.  
  Note: I use Civi on Wordpress.  
  In the Admin > Civicontribute > CiviContribute Component Settings, you can set the "Invoice Prefix" to whatever text you want, but when you go to the actual contribution in the dashboard and click View, the Invoice Number has the default prefix "INV\_1".  
  Another example is: I used in the invoice template the {contribution.invoice\_number} token and the same behavior, default prefix...  
  Does anyone have any experience with this or know a fix?
  Thanks a lot!
  
  **Tags:** civicontribute
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-10-04. Score: 2 | Accepted answer
  
  Welcome to CiviCRM SE.
  
  The invoice number is stored for contribution at the time of creation. If you update the invoice prefix in contribute component settings it will not change the invoice number for the already created contribution but for the new ones it will use the new prefix.
  
  You will need to do a bulk update on invoice numbers using mysql script or using api4 for the already created contributions.
  
  HTH
  
  username_1
  
  > **Comments:**
  > **username_0**: YES! I can confirm that after adding the second contribution, both the Invoice number in the "View" window and the "{contribution.invoice_number}" in the exported PDF file now listen to the "Invoice Prefix" option. Thanks a lot, username_1!  
  
  ---
  
  