Description : For a particular item only the error message is not showing properly. For other items without selecting any options and directly go to add to cart button. That time error message showing.
Solution
- Verify the item options used for that particular item.
- Verify the item options are same for this item and other items which have no issues in error message.
- Checking the condition in the code for setting display of error message.
- In that condition they use the item option ID s that is not present for this particular item.
- So add our item options ID in that conditions
- Then run the code.
- The error message shows properly for those items also.