I'm using the EAN mod and I was running into titles of items changing once in a while so I made the Featured Items list accept EAN codes as well.
Change the following part of row 23 of featuredSection.php:
WHERE normalised_name IN (".$sqlIn.") GROUP BY normalised_name
Into this:
WHERE normalised_name IN (".$sqlIn.") OR EAN IN (".$sqlIn.") GROUP BY normalised_name
And now it will accept EAN codes as well as titles.
Ah yes David, if they have a different uidField that would be the sollution.
Thanks for clearing that up!
Hi Kees,
Users of Automatic Product Mapping by Unique ID could use the configured unique ID field e.g.
WHERE normalised_name IN (".$sqlIn.") OR `".$config_uidField."` IN (".$sqlIn.") GROUP BY normalised_name
(using back-ticks around field names in SQL avoids any conflict with SQL reserved words...)
Cheers,
David.
--
PriceTapestry.com