- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2021
06:10 AM
10-01-2021
06:10 AM
Filter by Enabled / Disabled?
Hi,
I've made a query that gives me a list of products with som attributes. I'd like to get this filtered to show only product that are enabled. How do i do that?
my code so far:
SELECT
updated_at AS "time",
Sku AS "Sku",
name AS "Product",
price AS "Price",
cost AS "Cost"
FROM catalog_product_flat_2
WHERE
$__timeFilter(updated_at)
ORDER BY updated_at
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2021
11:00 PM
10-05-2021
11:00 PM
Re: Filter by Enabled / Disabled?
Hello @zoran_zulumovsk,
Greeting!
You just need to add one thing in the query as follows.
SELECT
updated_at AS "time",
Sku AS "Sku",
name AS "Product",
price AS "Price",
cost AS "Cost"
FROM catalog_product_flat_2
WHERE
($__timeFilter(updated_at) AND isEnabled='1' )
ORDER BY updated_at
Hope this will help you!
If not, feel free to contact us.
Solved?
Click KUDOS and accept it as a solution.
Thank you!