I am trying to add custom attribute into product page, but for some reason its generating error even after running all imp commands.
<block class="Magento\Catalog\Block\Product\View\Description"
name="product.info.my.info"
template="Magento_Catalog::product/view/attribute.phtml">
<arguments>
<argument name="at_call" xsi:type="string">GetMyInfo</argument>
<argument name="at_code" xsi:type="string">my_info</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument name="add_attribute" xsi:type="string">itemprop="my_info"</argument>
</arguments>
</block>
Do i have to describe the GetMyInfo method some where ?
Here is error generating on product page
1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Magento\Catalog\Model\Product\Interceptor::GetMyInfo
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Magento\Catalog\Model\Product\Interceptor::GetMyInfo
<pre>#1 include('/var/www/vhosts/...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#2 Magento\Framework\View\TemplateEngine\Php->render(&Magento\Catalog\Block\Product\View\Description#000000004c1cab8400000000466be1bb#, '/var/www/vhosts/...', array()) called at [vendor/magento/framework/View/Element/Template.php:271]
#3 Magento\Framework\View\Element\Template->fetchView('/var/www/vhosts/...') called at [vendor/magento/framework/View/Element/Template.php:301]
#4 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1099]
#5 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1103]
#6 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:673]
#7 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:564]