Skip to content

Export products width Images, features, categories, manufacturer etc.…#22

Open
olecorre wants to merge 3 commits into
friends-of-presta:mainfrom
olecorre:main
Open

Export products width Images, features, categories, manufacturer etc.…#22
olecorre wants to merge 3 commits into
friends-of-presta:mainfrom
olecorre:main

Conversation

@olecorre
Copy link
Copy Markdown
Contributor

Export products width Images, features, categories, manufacturer etc... Query is quite complete but can be long on large databases.
3 variables to changes :
SET @id_lang = 1;
SET @id_shop = 1;
SET @Monsite = 'https://www.MONSITE.com/img/p/';
AND Table prefix, in this request "ps_"

Test on 1.6.1.25 an 1.7.7.6

LEFT JOIN `ps_category` c ON (cp.id_category = c.id_category)
LEFT JOIN `ps_product_lang` pl ON (pl.`id_product` = p.`id_product` AND pl.`id_lang` = @id_lang AND pl.`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)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id_lang here

@LouisAUTHIE
Copy link
Copy Markdown
Collaborator

While testing I have errors in the CASE conditions, maybe a syntax issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants