Skip to content

Instantly share code, notes, and snippets.

@SchumacherFM
Created December 14, 2012 14:02
Show Gist options
  • Save SchumacherFM/4285658 to your computer and use it in GitHub Desktop.
Save SchumacherFM/4285658 to your computer and use it in GitHub Desktop.
Magento: Extended Version of the related products in the community edition / Get a product collection and filter by a multiselect field with another multiselect field. sto_artsc3_line is the multiselect field, type varchar. FIND_IN_SET() handles the magic in MySQL. If anybody knows a better solution, post it here :-)
@SchumacherFM
Copy link
Author

at_sto_artsc3_line has been generated from the addAttributeToFilter() method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment