- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2017
04:15 PM
01-16-2017
04:15 PM
want to have a mysql query that does the same thing as magento 2 catelog does
Hi,
In magento 2 banck end -> products -> catalog is showing all the products with its attributes (including the custom one), i want to have a same mysql query to does the same thing and show it in my databases
Thank you
https://drive.google.com/file/d/0B6UYOu37akeTeGZaSGktMXhldDQ/view?usp=sharing
Labels:
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2017
06:02 AM
01-17-2017
06:02 AM
Re: want to have a mysql query that does the same thing as magento 2 catelog does
Hi @AliveHealth,
If you have the collection you can try with to print the raw sql with:
$collection->printLogQuery(true);
Or:
echo $collection->getSelect()->assemble();
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2017
10:11 AM
01-17-2017
10:11 AM
Re: want to have a mysql query that does the same thing as magento 2 catelog does
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2017
10:12 AM
01-17-2017
10:12 AM
Re: want to have a mysql query that does the same thing as magento 2 catelog does
Here is the most related Answer for myself
http://blog.vanewebsite.com/index.php/2017/01/17/select-all-products-based-on-a-custom-attribute/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2017
10:13 AM
01-17-2017
10:13 AM
Re: want to have a mysql query that does the same thing as magento 2 catelog does
Here is the most related Answer for myself
http://blog.vanewebsite.com/index.php/2017/01/17/select-all-products-based-on-a-custom-attribute/