Yes, I assume so.
<?php echo $_product->getAttributeText('color') ?> will display the attribute correctly for each product so it appears only the new code is not working correctly...
Hello Hayes7888,
If this solution is not good. You try yourself with the second suggestion. It will solve your problem properly.
This solution IS good!
I just need to figure out what is causing the problem!
Hello Hayes7888,,
You can image that you have an input text, if you put any value, how you catch any value you input?
In our case, we only catch some specific values. You have ten input values, you make if else condition for these value. Now, you want to input 20 new input values? New values don't match any if else condition.