PietroElle Posted April 20, 2020 Posted April 20, 2020 Salve a tutti Versione Prestashop 1.6.1.9 Come faccio ad aggiungere in questa Tabella il nome ,rifermento e quantità del prodotto venuto? è una tabella che visualizzerà tramite Manager SQL i prodotti venduti giornalmente con l'aggiunta del nome prodotto e del riferimento. Serve alla mia logistica per esportare il venduto in maniera celere e iniziare la preparazione degli ordini. Ho controllato sui moduli ma non c'è nessun modulo che aggiunge questa funzione. Ecco la tabella che non è altro che quella del back office -> ordini. Qualcuno può aiutarmi ad inserire queste 2 sezioni mancanti? Grazie Ecco l'immagine allegata da inserire nome prodotto + riferimento + quantità SELECT SQL_CALC_FOUND_ROWS a.`id_order`, `reference`, `total_paid_tax_incl`, `payment`, a.`date_add` AS `date_add` , a.id_currency, a.id_order AS id_pdf, CONCAT(LEFT(c.`firstname`, 1), '. ', c.`lastname`) AS `customer`, osl.`name` AS `osname`, os.`color`, IF((SELECT so.id_order FROM `ps_orders` so WHERE so.id_customer = a.id_customer AND so.id_order < a.id_order LIMIT 1) > 0, 0, 1) as new, country_lang.name as cname, IF(a.valid, 1, 0) badge_success FROM `ps_orders` a LEFT JOIN `ps_customer` c ON (c.`id_customer` = a.`id_customer`) LEFT JOIN `ps_address` address ON address.id_address = a.id_address_delivery LEFT JOIN `ps_country` country ON address.id_country = country.id_country LEFT JOIN `ps_country_lang` country_lang ON (country.`id_country` = country_lang.`id_country` AND country_lang.`id_lang` = 2) LEFT JOIN `ps_order_state` os ON (os.`id_order_state` = a.`current_state`) LEFT JOIN `ps_order_state_lang` osl ON (os.`id_order_state` = osl.`id_order_state` AND osl.`id_lang` = 2) WHERE 1 AND a.`date_add` >= '2020-04-20 0:0:0' AND a.`date_add` <= '2020-04-20 23:59:59' ORDER BY a.`id_order` DESC LIMIT 0, 50 Share this post Link to post 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