Show configurable product values in order detail view for admins #3036
-
Hi, I followed this guide to implement configurable options for products, which works fine. The only part I'm missing: how can I make sure that the configured option (aka custom field value) is shown in the admin order view and also in the order confirmation email to the customer? Sticking with the example from the guide: how can I display in the admin order view, that a product has been configured with engraving option and the text for engraving? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! In the Admin UI order detail view, you should find that the OrderLine custom fields are available to add to the order line table using the menu at the top right: In the order confirmation email you'll need to customize the template in /static/email/templates/order-confirmation to display the contents of the custom field(s). See customizing templates Note that if the custom fields include any relation types, they will not be automatically joined so in that case you'll need to extend the default order confirmation handler and use the |
Beta Was this translation helpful? Give feedback.
Hi!
In the Admin UI order detail view, you should find that the OrderLine custom fields are available to add to the order line table using the menu at the top right:
In the order confirmation email you'll need to customize the template in /static/email/templates/order-confirmation to display the contents of the custom field(s). See customizing templates
Note that if the custom fields include any relation types, they will not be automatically joined so in that case you'll need to extend the default order confirmation handler and use the
.loadData()
method, inject theEntityHydrator
and ensure the relation custom field is loaded.