Skip to content
fireproofsocks edited this page Nov 8, 2014 · 2 revisions

getProductFields

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).

Available Placeholders

  • [[+value]]
  • [[+Field.slug]]
  • [[+Field.label]]

Parameters

  • &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

Usage

[[!getProductFields? &product_id=`[[+product_id]]` &outerTpl=`sometpl` &innerTpl=`othertpl`]]

Clone this wiki locally