benj0612 Posted June 2, 2011 Share Posted June 2, 2011 Bonjour,Je bosse sur un site et nous subissons un problème :Voici le message d'erreur : Unknown column 'reduction_from' in 'field list'SELECT p.*, pa.`id_product_attribute`, pl.`description`, pl.`description_short`, pl.`available_now`, pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, i.`id_image`, il.`legend`, m.`name` AS manufacturer_name, tl.`name` AS tax_name, t.`rate`, cl.`name` AS category_default, DATEDIFF(p.`date_add`, DATE_SUB(NOW(), INTERVAL 20 DAY)) > 0 AS new,(p.`price` * IF(t.`rate`,((100 + (t.`rate`))/100),1) - IF((DATEDIFF(`reduction_from`, CURDATE()) <= 0 AND DATEDIFF(`reduction_to`, CURDATE()) >=0) OR `reduction_from` = `reduction_to`, IF(`reduction_price` > 0, `reduction_price`, (p.`price` * IF(t.`rate`,((100 + (t.`rate`))/100),1) * `reduction_percent` / 100)),0)) AS orderprice FROM `ps_category_product` cpLEFT JOIN `ps_product` p ON p.`id_product` = cp.`id_product`LEFT JOIN `ps_product_attribute` pa ON (p.`id_product` = pa.`id_product` AND default_on = 1)LEFT JOIN `ps_category_lang` cl ON (p.`id_category_default` = cl.`id_category` AND cl.`id_lang` = 2)LEFT JOIN `ps_product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = 2)LEFT JOIN `ps_image` i ON (i.`id_product` = p.`id_product` AND i.`cover` = 1)LEFT JOIN `ps_image_lang` il ON (i.`id_image` = il.`id_image` AND il.`id_lang` = 2)LEFT JOIN `ps_tax` t ON t.`id_tax` = p.`id_tax`LEFT JOIN `ps_tax_lang` tl ON (t.`id_tax` = tl.`id_tax` AND tl.`id_lang` = 2)LEFT JOIN `ps_manufacturer` m ON m.`id_manufacturer` = p.`id_manufacturer`WHERE cp.`id_category` = 1 AND p.`active` = 1ORDER BY p.price ASCLIMIT 0,10Peut être que quelqu'un aurrait une solution claire ?? HELPMerci Beaucoup. Link to comment Share on other sites More sharing options...
benj0612 Posted June 3, 2011 Author Share Posted June 3, 2011 help I need somebody help ! Link to comment Share on other sites More sharing options...
olea Posted June 4, 2011 Share Posted June 4, 2011 Peut-être en rajoutant un "p." devant le 'reduction_from', comme pour le p.'price' Link to comment Share on other sites More sharing options...
benj0612 Posted June 4, 2011 Author Share Posted June 4, 2011 Merci de votre retour.Apparement le problème était plus profond. Mais le webmaster a pu le résoudre.Je ne pourrais par contre pas apporter de solution. Ce fut complexe.Close! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now