Guest Posted May 25, 2006 Posted May 25, 2006 I added the Quantity Price Break (original_price-break-1.11.2_1.zip). When trying to open a category window I receive this message: 1054 - Unknown column 'p.products_price2_qty' in 'field list' select p.products_image, pd.products_name, p.products_id, p.manufacturers_id, p.products_price, p.products_price1, p.products_price2, p.products_price3, p.products_price4, p.products_price5, p.products_price6, p.products_price7, p.products_price8, p.products_price1_qty, p.products_price2_qty, p.products_price3_qty, p.products_price4_qty, p.products_price5_qty, p.products_price6_qty, p.products_price7_qty, p.products_price8_qty, p.products_qty_blocks, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '4' and p2c.categories_id = '29' order by pd.products_name limit 0, 20 What can be wrong?
Guest Posted May 25, 2006 Posted May 25, 2006 I see other had the same problem here: http://www.oscommerce.com/forums/index.php?showtopic=206660 But can't understand the solution. The say something about updating SQL but I don't know how to do it, or if it is nessesary, since phpmyadmin tells me that last update was yesterday, after adding the data. Please help! ;)
Jan Zonjee Posted May 25, 2006 Posted May 25, 2006 I see other had the same problem here: But can't understand the solution. The say something about updating SQL but I don't know how to do it, or if it is nessesary, since phpmyadmin tells me that last update was yesterday, after adding the data. MySQL is telling what is the problem: the field products_price2_qty is not in the table. You probably missed this one when you were doing all the sql queries: alter table products add column products_price2_qty int not null default 0; Of course you can check that with phpMyAdmin...
Guest Posted May 25, 2006 Posted May 25, 2006 But it is there!!! I see it in phpMyAdmin products->table. Sorry, I am absolutly ignorant at this stuff (sql,php...) :huh: Are you saying that the code recognize products_price1_qty but not products_price2_qty? Because I did the same for both (and the other 2-8). At the link I added they explain that you should update SQL. Can it be the problem? How do I update using phpMyAdmin ?
Jan Zonjee Posted May 25, 2006 Posted May 25, 2006 But it is there!!! I see it in phpMyAdmin products->table. But MySQL says it does not. Not a space in the column name by acccident? Perhaps the table is corrupt. Make a backup of your site and then give the sql command (in phpMyAdmin): repair table products; Sorry, I am absolutly ignorant at this stuff (sql,php...) There have been good books written about PHP and MySQL. It will save you a good deal of time and aggravation by reading a bit about PHP (MySQL less so, but there are beginner books that deal with both).Are you saying that the code recognize products_price1_qty but not products_price2_qty? Yes.At the link I added they explain that you should update SQL. Can it be the problem? How do I update using phpMyAdmin ? Updating is an sql command. phpMyAdmin has a website with documentation.
Guest Posted May 25, 2006 Posted May 25, 2006 Thank you Thank you Thank you Thank you Thank you!! :blush: I really made a mistacke on products_priceX_qty X>1. Now it looks like it's working.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.