I am trying to:
Show related products with alternate views based on product category. I was using an older format for the conditional like this:
[wpv-conditional if="( '[wpv-post-taxonomy type='product_cat' format='slug']' eq 'thin-stone-veneer' )"]
Link to a page where the issue can be seen:
Can't be seen because I fixed it but not sure if it is in other templates or layouts and need to know if it will be fixed or if I need to closely examine lots of templates on lots of sites to see if I need to update it there too.
I expected to see:
The proper View that met the condition.
Instead, I got:
The incorrect view because the conditional test failed.
I changed the layout to use this conditional instead:
and now it works correctly but as I said above, I need to know if this will be fixed or if I need to search through all my templates and layouts on lots of sites looking for the same issue and fixing it.
Thanks Minesh. It seems like the 'eq' method used to work even if there was more than one term assigned. These products have always been in more than one term and it used to work. I'll change to using contains to be safe.
You can close this ticket as resolved. If 'eq' used to work even with more than one term and now it doesn't, I'd appreciate knowing that for sure.
It could be your assumption but "eq" will work definitely but you will require to adjust your conditional like if your post have been assigned two terms, you will require to compare with two terms.
As I suggested - you should convert your conditionals with CONTAINS() method, so it will be able to find term within multiple terms assigned.