Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento - Adding a new column to sales_flat_quote_item and sales_flat_order_item
    primarykey
    data
    text
    <p>I'm working with Magento version 1.4.1.1, and I want to save a value in <code>sales_flat_quote_item</code> table (and pass it to <code>sales_flat_order_item</code>). </p> <p>I've found <a href="http://www.magentocommerce.com/wiki/5_-_modules_and_development/adding_a_new_column_to_an_existing_table_in_the_database" rel="nofollow">this tutorial</a>, but I'm not sure if it's still relevant (to Magento version 1.4.1.1) since it talks about a table called <code>sales_order</code>, which I believe is now <code>sales_flat_order</code> and looks a bit different.</p> <p>Should this method still work? If so - Can I use it for <code>sales_flat_quote_item</code> and <code>sales_flat_order_item</code> and what <code>entity_type_id</code> should I put in the commend : </p> <pre><code>`insert into eav_attribute('entity_type_id','attribute_code','attribute_model','backend_model','backend_type','backend_table','frontend_model','frontend_input','frontend_input_renderer','frontend_label','frontend_class','source_model','is_global','is_visible','is_required','is_user_defined','default_value','is_searchable','is_filterable','is_comparable','is_visible_on_front','is_html_allowed_on_front','is_unique','is_used_for_price_rules','is_filterable_in_search','used_in_product_listing','used_for_sort_by','is_configurable','apply_to','position','note','is_visible_in_advanced_search' ) values(11, 'my_new_column', null, '', 'static', '', '', 'text', '','',null, '', 1,1,1,0,'',0,0,0,0,0,0,1,0,0,0,1,'',0,'',0);` </code></pre> <p>If this is not the way to do that in the new Magento version, how should I do that?</p> <p>Thanks, Shani</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload