[英]Magento API Rest filters
因此,我下面有這段代碼可以成功提取產品並為我的magento商店提供XML數據...
http://mywebsite.com/api/rest/products?type=rest&filter[1][attribute]=name&filter[1][in]=test%20product%20name
但是,如果我使產品名稱完美,它只會拉出產品信息。 如果我嘗試放入
http://mywebsite.com/api/rest/products?type=rest&filter[1][attribute]=name&filter[1][in]=test
它不會帶來任何產品。 據我了解,如果我使用“ [in]”過濾器,它將顯示所有包含“ test”字詞的產品,但不會...
in-“等於”等於-返回等於具有指定屬性的項目的項目
嘗試使用“喜歡” ...
http://mywebsite.com/api/rest/products?type=rest&filter[1][attribute]=name&filter[1][like]=%test%
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.