category={{env::page_id}} doesn't work when I add a product to several categories.
In the database I have category [15,12,24...] and it does not work.
any suggestions?
Printable View
category={{env::page_id}} doesn't work when I add a product to several categories.
In the database I have category [15,12,24...] and it does not work.
any suggestions?
It does work, you just didn't think that one through, because the category will contain a value like:
5,7,1,3,6,44 which can never match a single value.
If you follow the Tutorial section, we have a FIND_IN_SET() function that will lookup a single value in a field with a comma separated list.
works :) , thanks