Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

olecorre
Copy link
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
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
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