• Resolved fromsalekhard

    (@fromsalekhard)


    On the support Center page, I found a whole family of shortcodes, most of which I tried to apply.
    I did this and I understood the value of current_page, products_per_page, tags and some others.
    But I can’t apply custom_fields, the directory mapping breaks immediately.
    Do I understand correctly that with this code I can display different sets of my fields? Is that so? And if so, why doesn’t it work for me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi fromsalekhard,

    custom_fields shortcode attribute is used to prefilter the catalogue to one or more custom fields. Could you let us know the exact shortcode that you are using?

    Often times it is an issue with the quotes. Try using regular plain text single or double quotes, like [product-catalogue id=’X’ custom_fields=’1′] or [product-catalogue id=”X” custom_fields=”1″].

    In the shortcode above, X is the catalogue ID and 1 is the ID for that custom field. For example, if you want to show just the brand Nike, and the ID of your Brand custom field is 1, then you would use [product-catalogue id=’X’ custom_fields=’1=Nike’].

    Thread Starter fromsalekhard

    (@fromsalekhard)

    It worked. But that’s not what I wanted. I need to output an arbitrary set of custom fields. Is that possible?

    That doesn’t sound like it would be possible. The plugin has no functionality to just output a list of custom fields. And, if you’re talking about the catalog overview mode, that only works with categories and sub-categories.

    Thread Starter fromsalekhard

    (@fromsalekhard)

    I understood.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcodes custom_fields’ is closed to new replies.