Forums / General Questions / 1054 Unknown column 'products_cost' in 'field list'

1054 Unknown column 'products_cost' in 'field list'

Locked

Views: 1,945

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Mar 2008, 3:14 AM
#1
wowemall avatar

wowemall

Zen Follower

Join Date:
Jan 2005
Posts:
101
Plugin Contributions:
0

1054 Unknown column 'products_cost' in 'field list'

i try to upload a product, then a error show :

1054 Unknown column 'products_cost' in 'field list'
in:
[insert into products (products_quantity, products_type, products_model, products_price, products_cost, products_markup, products_margin_gross_dollar, products_margin_gross_percent, products_date_available, products_weight, products_status, products_virtual, products_tax_class_id, manufacturers_id, products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute, product_is_free, product_is_call, products_quantity_mixed, product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order, products_discount_type, products_discount_type_from, products_price_sorter, products_image, products_date_added, master_categories_id) values ('100', '1', 'Software', '5000', '', '', '', '', null, '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '1', '0', '1', '0', '0', '0', '0', '0', 'matri.jpg', now(), '61')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

29 Mar 2008, 5:30 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1054 Unknown column 'products_cost' in 'field list'

Looks like you've installed PHP files for a mod that tracks product cost, but haven't made the appropriate SQL/database updates to work with it. Check the documentation for the mod you've installed.

Hopefully you're not doing this on your live site without backups or testing first ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Mar 2008, 6:07 AM
#3
wowemall avatar

wowemall

Zen Follower

Join Date:
Jan 2005
Posts:
101
Plugin Contributions:
0

Re: 1054 Unknown column 'products_cost' in 'field list'

thanks, you are right, now working fine.