-
Notifications
You must be signed in to change notification settings - Fork 0
getProductFields
fireproofsocks edited this page Nov 8, 2014
·
2 revisions
Returns a list of values of custom fields (useful if the custom fields in use varies greatly from product to product, otherwise simply add placeholders to your template corresponding to the field slugs).
[[+value]][[+Field.slug]][[+Field.label]]
- &product_id int specifies the product whose custom field values you want. Defaults to current product.
- &outerTpl string Format the Outer Wrapper of List (Optional)
- &innerTpl string Format the Inner Item of List
[[!getProductFields? &product_id=`[[+product_id]]` &outerTpl=`sometpl` &innerTpl=`othertpl`]]
© 2014 and beyond by Craftsman Coding