How to properly add a shipping_description column in magento order grid?

后端 未结 3 1125
不思量自难忘°
不思量自难忘° 2021-01-24 21:51

There are many tutorials and suggestions including installing a custom extensions etc.

I\'ve added the shipping_description fine based on various tips and tricks by modi

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-24 22:28

    In order to prevent this type of error in sorting columns

    SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘status’ in where clause is ambiguous ERROR 
    

    when sorting your orders…Make sure you add this:

    'filter_index'=>'main_table.status',
    

    to the addColumn Status array

    hope this will sure help you.

提交回复
热议问题