I need to trigger an action based on what attribute is selected by the customer and in most cases code such as this works
if (strpos($options_menu[$i], 'name="id[1]"') !== false) {
TRIGGER ACTION
}
However, if the attribute is one with images it doesn't work
I set this as a test and it ALWAYS returns FALSE if the attribute has images
if (strpos($options_menu[$i], 'name="id[26]"') !== false) {
echo "TRUE";
}else{
echo "FALSE";
}
Any ideas why this doesn't work on attributes with images? It's got me stumped.
Bookmarks