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

New helper for custom fields #33

Open
ghost opened this issue Apr 10, 2019 · 3 comments
Open

New helper for custom fields #33

ghost opened this issue Apr 10, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 10, 2019

We would like to implement a feature to return custom field. All custom fields returned in array, and the new feature should return the custom field from this array by its name.

@scottxtensive
Copy link

Any updates on this? Would be really handy building out product pages when using custom fields.

@cheve-ruben
Copy link

Is this any different than filtering the customfields by their name?

eg.

{{#filter product.custom_fields 'Colour' property="name"}}
    <meta itemprop="colour" content="{{value}}">
{{/filter}}

@scottxtensive
Copy link

@cheve-ruben yeah, actually came across the filter function this week... works nicely!

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

No branches or pull requests

2 participants