1

I am trying to add Order Comments field in checkout.

I am following this Tutorial

I am using Magento 1.8

I am getting below error:

Fatal error: Call to a member function getSource() on boolean in C:\xampp\htdocs\my_store\app\code\core\Mage\Catalog\Model\Product.php on line 1390

can anyone have any idea about the error?

7
  • Seems like your attribute could not be found. Verify that it exists by browsing through the admin panel Catalog -> Attributes -> Manage Attributes Apr 9 '15 at 11:13
  • visit this link appseconnect.com/… I have created attribute directly in database Apr 9 '15 at 11:15
  • Regardless of how you created the attribute, you should be able to see it by Browsing Catalog -> Attributes -> Manage Attributes. If you cannot see it in there, it is probably not added correctly. Apr 9 '15 at 12:21
  • I just read that tutorial briefly, it's for adding an attribute to the order model and your error is within the product model. Have you tried using an order example for a product attribute, or made some similar mistake? Apr 9 '15 at 12:23
  • well i have pasted exact code as it is in tutorial, does tutorial have any mistake? Apr 9 '15 at 12:26
0

I have found the answer here: https://stackoverflow.com/posts/28683390/revisions

Until Mage team didn't include it into the core, you can extend core class and rewrite this one method.

2
  • This isn't the right way, just dirty workaround. Mar 22 '21 at 20:09
  • Two years since, and they didn't include this useful change into the core? Anyway, looks like it's time to use community supported M1. Mar 22 '21 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.