kaball Posted March 30, 2014 Share Posted March 30, 2014 I need to export my products with url image in csv file This Sql Query work perfectly but i don't know how to get the url image in my final csv file. Can u help me please, i 've posted on french forum without any result. Thanks SELECT p.id_product, p.active, pl.name, GROUP_CONCAT(DISTINCT(cl.name) SEPARATOR ",") as categories, p.price, p.id_tax_rules_group, p.wholesale_price, p.reference, p.supplier_reference, p.id_supplier, p.id_manufacturer, p.upc, p.ecotax, p.weight, p.quantity, pl.description_short, pl.description, pl.meta_title, pl.meta_keywords, pl.meta_description, pl.link_rewrite, pl.available_now, pl.available_later, p.available_for_order, p.date_add, p.show_price, p.online_only, p.condition, p.id_shop_default FROM psp_product p LEFT JOIN psp_product_lang pl ON (p.id_product = pl.id_product) LEFT JOIN psp_category_product cp ON (p.id_product = cp.id_product) LEFT JOIN psp_category_lang cl ON (cp.id_category = cl.id_category) LEFT JOIN psp_category c ON (cp.id_category = c.id_category) LEFT JOIN psp_product_tag pt ON (p.id_product = pt.id_product) WHERE pl.id_lang = 1 AND cl.id_lang = 1 AND p.id_shop_default = 1 AND c.id_shop_default = 1 GROUP BY p.id_product Link to comment Share on other sites More sharing options...
tuk66 Posted April 17, 2014 Share Posted April 17, 2014 You can get ID of images. The whole URL is more complicated story. See getImageLink() function in /classes/Link.php. 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