thedouble Posted November 21, 2014 Report Share Posted November 21, 2014 Помогите пожалуйста сделать запрос sql, что бы товары с ценой 0 убирались на последние страницы вывода товаров Quote Link to post Share on other sites
stroker Posted November 21, 2014 Report Share Posted November 21, 2014 http://forum.simplacms.ru/topic/8330-%D1%81%D0%BE%D1%80%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B0-%D1%82%D0%BE%D0%B2%D0%B0%D1%80%D0%BE%D0%B2-%D1%82%D0%BE%D0%B2%D0%B0%D1%80-c-%D0%BA%D0%BE%D0%BB-%D0%B2%D0%BE%D0%BC-0-%D0%B2-%D0%BA%D0%BE%D0%BD%D0%B5%D1%86-%D1%81%D0%BF%D0%B8%D1%81%D0%BA/ Quote Link to post Share on other sites
thedouble Posted November 21, 2014 Author Report Share Posted November 21, 2014 http://forum.simplacms.ru/topic/8330-%D1%81%D0%BE%D1%80%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B0-%D1%82%D0%BE%D0%B2%D0%B0%D1%80%D0%BE%D0%B2-%D1%82%D0%BE%D0%B2%D0%B0%D1%80-c-%D0%BA%D0%BE%D0%BB-%D0%B2%D0%BE%D0%BC-0-%D0%B2-%D0%BA%D0%BE%D0%BD%D0%B5%D1%86-%D1%81%D0%BF%D0%B8%D1%81%D0%BA/ вписываю так $limit = 100; $page = 1; $category_id_filter = ''; $brand_id_filter = ''; $product_id_filter = ''; $features_filter = ''; $keyword_filter = ''; $visible_filter = ''; $is_featured_filter = ''; $discounted_filter = ''; $in_stock_filter = ''; $group_by = ''; $order = 'v.price DESC'; выдает ошибку при выводе рекомендованных товаровWarning: Unknown column 'v.price' in 'order clause' in /html/api/Database.php on line 136 Warning: Invalid argument supplied for foreach() in /html/view/View.php on line 178 Quote Link to post Share on other sites
stroker Posted November 21, 2014 Report Share Posted November 21, 2014 вы тему всю прочитайти от простой вставки $order = 'v.price DESC'; не чего не изменится Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.