Posted: June 13, 2016 at 1:30 am
|
Hi there, Using EE 4.9.0.p My client is wanting to change the invoice to a quote. However, I have found that the word ‘invoice’ is hard-coded in many templates, and not dynamically taking the name that I have provided it in the payment gateway settings for ‘invoice’. I have two requests; 1) Please could you list all the places that need the php altered in order to completely change the word ‘Invoice’ for the word ‘Quote’. I have attempted some changes to /event-espresso-core-reg/modules/gateways/Invoice/lib/templates however, it doesn’t seem to be picking up the changes. Regards |
Hi there, How are you today?
Rather than editing core files you can change the Invoice message template from within: Event Espresso -> Messages -> Default Message templates -> Invoice – http://take.ms/jYUzl There you can edit the template used for the Invoice message. The templates you mentioned above are no longer used and are there for backwards compatibility for users using the ‘older’ method of editing the Invoice template. They will eventually be removed from EE and users will need to use the Invoice template within the messages system.
Because of the way the messages templates are generated we can not change the text on the fly without resetting the template to do so and this would not be user friendly. If you edit the template and then change the Invoice name you would need to reset the template back to default to pull that change, at that point its easier for the user to make the change within the template themselves. We allow the template to be edited from the admin to make changes however in this case a ‘Quote’ would basically be classed as another message type so another way to achieve this would be to create your own message type and use your own templates for that message type. You could then disable the Invoice message type and use your custom one in its place. We have documentation on adding your own message types here: https://github.com/eventespresso/event-espresso-core/tree/master/docs/E–Messages-System |
|
|
Hi There Tony, Thank you for the detailed response. I have managed to fix most of it. There are other areas that also require changing; like the ‘switch to invoice’ And the ‘view invoice’ on the payment overview; on the thank you page. How can I go about changing these? Regards |
Hi Dunne, A gettext filter in a child theme’s functions.php file or a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) can change that messaging: https://gist.github.com/anonymous/3bc199938e1af60cf93871fa30d35db5 — |
|
The support post ‘Change Invoice to a Quote’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.