Out of the box, Default Magento is come up with various functionality along with some helper text that makes that functionality easier to understand for the users. Generally, instead of spending the whole time in reading of user manual, these small things will help a user like a charm in need. As the name suggests, Helper text is designed to help the users and default Magento contains built in “attribute” class that let you to easily add comment or note beside the option for the better understanding for product users.

Code to add comment text for product attributes:

Here is Easiest way to add your own comment along with product attribute, all you need to add following code to InstallData.php file which is available at below path.
app\code\Vendor\Extension\Setup\InstallData.php

Click to rate this post!
[Total: 4 Average: 5]