Magento- custom attribute causes blank order number.
Posted
by frank
on Stack Overflow
See other posts from Stack Overflow
or by frank
Published on 2010-03-17T16:11:09Z
Indexed on
2010/03/18
3:31 UTC
Read the original article
Hit count: 384
Hi-
I created a simple custom attribute on the sales/order entity. Now, for new orders, order number is null. I looked at the sales_order table, and sure enough, increment_id is null... can anyone help me out, I am stumped?
This is my setup.php:
`public function getDefaultEntities() {
return array(
'order' => array(
'entity_model' => 'sales/order',
//'attribute_model' => 'catalog/resource_eav_attribute',
'table' => 'sales/order',
'attributes' => array(
'pr_email_sent' => array(
'label' => 'prEmailSent',
'type' => 'varchar',
'default' => 'false'
),
)
)
);
}`
This is my config.xml
<fieldsets>
<sales_order>
<pr_email_sent><create>1</create><update>1</update></pr_email_sent>
</sales_order>
</fieldsets>
Thanks.
© Stack Overflow or respective owner