Hello,
I am using a WooCommerce attribute with a swatch type assigned.
I can display the assigned terms using:
{post_terms_pa_pa-condition:plain}
The :plain modifier outputs the term name, which works as expected.
Is there also a way to access and output the assigned swatch image (or swatch value) for the term via Dynamic Data?
Thanks!
That tag only returns the assigned term data (name, slug, IDs, etc., depending on modifiers). The swatch image/value is usually stored as term meta by the swatch plugin, not as part of the WooCommerce attribute term itself.
If your swatch plugin stores the image as term meta, you may be able to access it with something like: {term_meta:meta_key}
or via a Query Loop over terms and then output the term meta field.
or use php to create a custom dynamic tag, then register it as a custom Bricks dynamic tag
Okay, thanks. I’ll see if I can find a solution.