Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add index access to dynamic properties in the Liquid notification templates #8

Open
tatarincev opened this issue Dec 30, 2019 · 0 comments

Comments

@tatarincev
Copy link
Collaborator

@tatarincev commented on Tue Mar 27 2018

Currently, if any object in notification has dynamic properties you can't use them by this syntax
order.dynamic_properties.property_name or order.dynamic_properties[property_name]

Technical solution:
In this code need to for all IHasDynamicProperties objects do somehow conversation to Dictionary before adding this object to render context.
https://github.com/VirtoCommerce/vc-platform/blob/dev/VirtoCommerce.Platform.Data.Notifications/LiquidNotificationTemplateResolver.cs#L37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant