Skip to content

Can we get filtered response from magento where we have to filter a nested object inside an array

{ “items”: [ { “id”: 407, “media_gallery_entries”: [ { “id”: 1395, “media_type”: “image” } ] }, { “id”: 407, “media_gallery_entries”: [ { “id”: 1396, “media_type”: “image” } ] } ] } https://developer.adobe.com/commerce/webapi/rest/use-rest/performing-searches/ https://domain.com/rest/default/V1/products?searchCriteria[filter_groups][0][filters][0][field]=media_gallery_entries&searchCriteria[filter_groups][0][filters][0][field]=id&searchCriteria[filter_groups][0][filters][0][value]=1397 How can I query for media_gallery_entries id… Read More »Can we get filtered response from magento where we have to filter a nested object inside an array

Get category data from id in knockout html template

State of the art Using a custom type for the page builder, i’m generating this html <div class=”gamme-content”> <h3 data-element=”title”>Discover our others products !</h3> <p data-element=”category_list”>2,1</p> </div> From this template <!–master.html–> <div attr=”data.main.attributes” ko-style=”data.main.style” css=”data.main.css” > <div class=”gamme-content”> <h3 attr=”data.title.attributes”… Read More »Get category data from id in knockout html template