Hi Rex,
It’s possible, but it has to be done using the custom field IDs. So if the ID of the color field was 1 and the ID of the shape field was 2, then it would look like:
[product-catalogue id='2' custom_fields='1=>blue,2=>round']
Thanks Rustaurius,
I just tried to use [product-catalogue id=’1′ custom_fields=’28=>2015′]
28 is our custom field for year. It’s not working though 🙁
In the meantime, I’m forcing the value for the custom_fields to 28=>2015 in shortcodes.php just to do some testing.
It works when I do that, but my custom field filters are still including all product options, and not just the options for products from 2015. Is that working as intended?
Hi Rex,
Do you mean that the other custom field values still appear in the sidebar, with “2015” checked and only “2015” products showing? That would be the correct behaviour, so if that’s not happening let us know.
For the attribute, can you make sure that the quotes are exactly the same as the ones used for the id? If it’s working when it’s hard coded into the shortcodes file, then the error has to be that the values aren’t being passed through, which is often a quotes problem.