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

how do i filter catalog_products.list ? #39

Open
kumangdeal opened this issue Jan 18, 2017 · 1 comment
Open

how do i filter catalog_products.list ? #39

kumangdeal opened this issue Jan 18, 2017 · 1 comment

Comments

@kumangdeal
Copy link

i checked the catalog_product.js, and "list" has no parameters.
so how do i filter products ?

@juiceo
Copy link

juiceo commented Mar 15, 2018

I was able to get this working by editing the following part in catalog_product.js like so:

Before:

list: true

After

list: {
    optional: 'filters'
},

After that change it works like documented:

magento.catalogProduct.list({
	filters: {
	    "status": 1,
	    "created_at": {
                "from": "2018-01-01 00:00:00"
	    }
	}
}, function (err, results) {

}

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

No branches or pull requests

2 participants