Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

orderInvoiceSend customMessage uses default template bug?

orderInvoiceSend customMessage uses default template bug?

garyrgilbert
Shopify Partner
433 41 191

Hi All,

 

When using the orderInvoiceSend mutation with a customMessage defined the Mutation causes the merchants customized template to be ignored and the default template to be used.

 

It would make more sense if the customMessage was available to liquid to determine how the custom message should be displayed if available instead of having to provide the entire template html in the message.

 

Cheers,

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Reply 1 (1)

garyrgilbert
Shopify Partner
433 41 191

@Liam Sorry to ping you on this but I think this is a bug, and no one seems to be taking an interest, hopefully you will 🙂

 

Example/Reproduction steps.

 

1. Go to the order invoice notification template on a dev shop and delete all code, leave "test" as text, or it wont let you save it

2. Go to a unpaid order or create an unpaid order and click send invoice

3. review the invoice, but dont send it.

 

You should see something like this, obviously your order number will be different.

garyrgilbert_0-1726865166031.png

4. Cancel the preview

5. Click send invoice once again

6. Add a custom message. I added "this is a test"

7. Click review once again.

8. you get this....  What happened to my invoice template?

 

garyrgilbert_1-1726865315561.png

 

As far as I am concerned I should see exactly the same in both instances and not the default template code. This more or less makes entering the custom_message ignore any template modifications.

 

I would call this a BUG, and not really a small one 🙂 Could you please pass this on to the dev team?

 

Thanks!

 

Gary

 

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution