craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
215 stars 169 forks source link

Support displaying json in transactions note field #3442

Open samhibberd opened 3 months ago

samhibberd commented 3 months ago

Description

We use the transactions model note property to store a json string, been super helpful providing extra detail to our app where we need to extend the refund logic.

Issue is the cp tooltip can't parse that json note, this pr adds a little tweak to handle this and means our cp users can see the info they need:

Screenshot 2024-03-26 at 10 38 20 Screenshot 2024-03-26 at 09 28 13
samhibberd commented 2 months ago

Is this something that might get considered for merge?