Magento 1.9.2 - save a new edit page and create a custom dashboard (custom tab)

I managed to add a custom tab / grid to a new and editable product page with an internal input field. After this tutorial

The problem is that it does not save data. And at this moment I have no idea whether this is really not described in the textbook, or I made a mistake.

Is this enough to save data entry?

$customFieldValue = $this->_getRequest()->getPost('custom_field'); $product->save(); 

How can I debug this value in the backend?

+5
source share
1 answer

This is not covered by the tutorial. To see the difference, you probably need to add a new attribute for the product , and then do something like:

 $customFieldValue = $this->_getRequest()->getPost('custom_field'); $product->setNewAttribute($customFieldValue); $product->save(); 
+1
source

Source: https://habr.com/ru/post/1239018/


All Articles