airmouss Posted September 9, 2015 Share Posted September 9, 2015 Bonjour, Je recherche un module pour exporter mes produits en format CSV. Un module gratuit ou payant . Le module prestashop qui me permettra d'exporter les code EAN, stock, numéro de référence, livraison etc.... Bien cordialement Link to comment Share on other sites More sharing options...
gabdara Posted September 15, 2015 Share Posted September 15, 2015 Essayez ce module gratuit: https://www.prestashop.com/forums/topic/37900-free-module-product-export-module-v241-updated-040815/ Link to comment Share on other sites More sharing options...
Alexandre Carette Posted September 15, 2015 Share Posted September 15, 2015 (edited) Bonjour, Pas besoin de module, tu as le SQL Manager d'origine dans prestashop, ou aller directement dans ton phpmyadmin. La requete pour tout récupérer, a adapté selon tes besoins: SELECT p.`id_product` AS `ID`, b.name as `Nom`,`reference`, cl.`id_category` AS `ID Cat defaut`, cl.`name` AS `Cat defaut`, GROUP_CONCAT(DISTINCT(c.id_category) SEPARATOR ",") as categories, GROUP_CONCAT(DISTINCT(case when length(im.`id_image`)=6 then concat('http://www.monsite.com/img/p/',insert(insert(insert(insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),6,0,'/'),8,0,'/'),10,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=5 then concat('http://www.monsite.com/img/p/',insert(insert(insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),6,0,'/'),8,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=4 then concat('http://www.monsite.com/img/p/',insert(insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),6,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=3 then concat('http://www.monsite.com/img/p/',insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=2 then concat('http://www.monsite.com/img/p/',insert(im.`id_image`,2,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=1 then concat('http://www.monsite.com/img/p/',insert(im.`id_image`,2,0,'/'),im.`id_image`,'.jpg') else '' end) SEPARATOR ",") as "Images", sa.`price`, ml.meta_title AS 'Marque', ml.id_manufacturer AS 'Marque ID', p.price as price, sa.active as active, p.ean13 AS 'EAN13', p.upc AS 'UPC', sav.`quantity` AS `quantite`, p.visibility, p.indexed, pl.description_short, pl.description, pl.meta_title, pl.meta_keywords, pl.meta_description, pl.h1_prod, pl.genre_prod, pl.cat_rdc_prod, pl.ship_fdp_prod, pl.ship_delay_in_days_prod, pl.expedition_delay_in_days_prod, pl.url_prod, pl.MCID_prod, pl.dispo_prod, pl.type_du_produit, MAX(image_shop.id_image) id_image, concat(pl.`link_rewrite`,'-',p.`id_product`,'.html') as "ProductURL google", concat('http://www.monsite.com/',pl.`link_rewrite`,'-',p.`id_product`,'.html') as "Produit URL", case when length(im.`id_image`)=6 then concat('http://www.monsite.com/img/p/',insert(insert(insert(insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),6,0,'/'),8,0,'/'),10,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=5 then concat('http://www.monsite.com/img/p/',insert(insert(insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),6,0,'/'),8,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=4 then concat('http://www.monsite.com/img/p/',insert(insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),6,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=3 then concat('http://www.monsite.com/img/p/',insert(insert(im.`id_image`,2,0,'/'),4,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=2 then concat('http://www.monsite.com/img/p/',insert(im.`id_image`,2,0,'/'),'/',im.`id_image`,'.jpg') when length(im.`id_image`)=1 then concat('http://www.monsite.com/img/p/',insert(im.`id_image`,2,0,'/'),im.`id_image`,'.jpg') else '' end as "ImgURL_1" FROM `ps_product` p LEFT JOIN ps_product_lang pl ON (p.id_product = pl.id_product) LEFT JOIN ps_category_product cp ON (p.id_product = cp.id_product) LEFT JOIN ps_category_lang cl ON (cp.id_category = cl.id_category) LEFT JOIN ps_category c ON (cp.id_category = c.id_category) LEFT JOIN `ps_product_lang` b ON (b.`id_product` = p.`id_product` AND b.`id_lang` = 1 AND b.`id_shop` = p.id_shop_default) LEFT JOIN `ps_image` i ON (i.`id_product` = p.`id_product`) LEFT JOIN `ps_manufacturer_lang` ml ON (p.id_manufacturer = ml.id_manufacturer) LEFT JOIN `ps_stock_available` sav ON (sav.`id_product` = p.`id_product` AND sav.`id_product_attribute` = 0 AND sav.id_shop_group = 0 AND sav.id_shop = 1 ) JOIN `ps_product_shop` sa ON (p.`id_product` = sa.`id_product` AND sa.id_shop = p.id_shop_default) LEFT JOIN `ps_shop` shop ON (shop.id_shop = p.id_shop_default) LEFT JOIN `ps_image_shop` image_shop ON (image_shop.`id_image` = i.`id_image` AND image_shop.`cover` = 1 AND image_shop.id_shop = p.id_shop_default) LEFT JOIN `ps_product_download` pd ON (pd.`id_product` = p.`id_product`) LEFT JOIN `ps_image` im on im.`id_product`= p.`id_product` WHERE 1 AND pl.id_lang = 1 GROUP BY sa.id_product ORDER BY p.`id_product` ASC Edited September 15, 2015 by Alexandre-KM (see edit history) Link to comment Share on other sites More sharing options...
airmouss Posted September 16, 2015 Author Share Posted September 16, 2015 merci beaucoup pour vos réponses. Le module en question j'ai déjà télécharger. Il permet en effet d'exporter mes produits mais dans stock pour les produits hors stock au lieu de marquer 0 produit disponible c'est marqué rien du tout. Et quand je transfère mon fichier csv vers ma marketplace dans produit en stock ou c'est marqué rien du tout c'est marqué comme produit disponible dans ma marketplace. Donc le module est bien mais il y a ce petit problème qui fait que il ne permet pas de mettre 0 produit disponible pour les produits non disponible. Au lieu de ça il ne marque rien. La cellule reste vierge. Et pour la requête je ne sais pas du tout comment ça marche car c'est une première pour moi. Cordialement Link to comment Share on other sites More sharing options...
gabdara Posted September 16, 2015 Share Posted September 16, 2015 Vous pouvez remplir toutes les cellules vides avec 0 à partir d'une colonne à l'aide de LibreOffice Calc. Sélectionnez la colonne, CTRL + H, laisser l'entrée de recherche vide et tapez 0 dans l'entrée remplacer et cliquez sur Remplacer tout. Puis sauvegardez au format CSV. Link to comment Share on other sites More sharing options...
Alexandre Carette Posted September 16, 2015 Share Posted September 16, 2015 tu peux tjs apprendre: https://openclassrooms.com/courses/concevez-votre-site-web-avec-php-et-mysql/ecrire-des-donnees-2 Link to comment Share on other sites More sharing options...
Mediacom87 Posted September 16, 2015 Share Posted September 16, 2015 Bonjour, Peut-être ce module alors http://www.prestatoolbox.fr/outils-administration/201-export-du-catalogue-au-format-csv.html 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