{"id":505188,"date":"2025-09-02T12:01:42","date_gmt":"2025-09-02T12:01:42","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=505188"},"modified":"2025-09-23T07:46:19","modified_gmt":"2025-09-23T07:46:19","slug":"sort-category-listing-product-by-custom-price","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/","title":{"rendered":"Sort Category Products by Custom Price in Magento 2"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"800\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp\" alt=\"category-sort-bycustom-price-image\" class=\"wp-image-506036\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-300x200.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-250x167.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-768x512.webp 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image.webp 1536w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Introduction<\/strong><\/p>\n\n\n\n<p>In Magento 2, you may need to <strong>sort products by custom price<\/strong> instead of default options like name or base price.<\/p>\n\n\n\n<p>This can be useful for variation pricing, promotional campaigns, or external pricing rules.<\/p>\n\n\n\n<p>Consequently, by extending Elasticsearch, you can index custom prices and use them directly in sorting.<\/p>\n\n\n\n<p>\ud83d\udc49 If you\u2019re looking for filtering instead of sorting, check our guide on <a href=\"https:\/\/webkul.com\/blog\/filter-category-products-by-specific-ids\/?utm_source=chatgpt.com\">filtering category products by specific IDs<\/a>.<\/p>\n\n\n\n<p><strong>Step 1: Understand the Flow<\/strong><\/p>\n\n\n\n<p>Magento uses Elasticsearch to index product data in JSON documents.<\/p>\n\n\n\n<p><strong>Therefore<\/strong>, works only on fields that already exist in these documents.<\/p>\n\n\n\n<p>To enable sorting by custom price, we need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add custom price fields in Elasticsearch via <strong>ProductDataMapper<\/strong>.<\/li>\n\n\n\n<li>Map field names via <strong>Resolver\\Price<\/strong>.<\/li>\n\n\n\n<li>Finally modify the sort builder via a <strong>Sort plugin<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p>For more about Magento\u2019s Elasticsearch setup, see <a>Magento DevDocs<\/a>.<\/p>\n\n\n\n<p><strong>Step 2: Add Custom Price Fields to Elasticsearch<\/strong><\/p>\n\n\n\n<p>Create a plugin for:<\/p>\n\n\n\n<p><em>\\Magento\\Elasticsearch\\Model\\Adapter\\BatchDataMapper\\ProductDataMapper::map()<\/em><\/p>\n\n\n\n<p>This plugin injects custom prices during indexing:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">$result&#091;$productId]&#091;&#039;custom_price_b&#039; . $variationId] = $price;<\/pre>\n\n\n\n<p>Now, documents may look like:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{\n  &quot;custom_price_b1&quot;: 23.00,\n  &quot;custom_price_b2&quot;: 25.00\n}<\/pre>\n\n\n\n<p><strong>Step 3: Resolve Field Names for Sorting<\/strong><\/p>\n\n\n\n<p>Magento resolves price fields dynamically through:<\/p>\n\n\n\n<p><em>\\Magento\\Elasticsearch\\Model\\Adapter\\FieldMapper\\Product\\FieldProvider\\FieldName\\Resolver\\Price<\/em><\/p>\n\n\n\n<p>Create a plugin for <code>getFieldName()<\/code> so Magento can detect your custom price fields.<\/p>\n\n\n\n<p>This ensures that when you pass a variation ID, the correct custom price field is used.<\/p>\n\n\n\n<p><strong>Step 4: Modify the Sort Query<\/strong><\/p>\n\n\n\n<p>Sorting queries are built in:<\/p>\n\n\n\n<p><em>\\Magento\\Elasticsearch\\SearchAdapter\\Query\\Builder\\Sort::getSort()<\/em><\/p>\n\n\n\n<p>With a plugin, you can override it to point sorting toward your custom field:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">return &#091;\n  &#091;$fieldName =&gt; &#091;&#039;order&#039; =&gt; $sortRequest&#091;&#039;direction&#039;] ?? &#039;asc&#039;]]\n];<\/pre>\n\n\n\n<p>Example query:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&quot;sort&quot;: &#091;\n  { &quot;custom_price_b1&quot;: { &quot;order&quot;: &quot;asc&quot; } }\n]<\/pre>\n\n\n\n<p><strong>Bonus: Sorting Multiple Prices with a Painless Script<\/strong><\/p>\n\n\n\n<p><strong>If<\/strong>, however, a product has multiple prices?<\/p>\n\n\n\n<p><strong>In this case<\/strong>, Elasticsearch supports <strong>painless scripts<\/strong> to handle advanced sorting logic.<\/p>\n\n\n\n<p>You can write a script to return the <strong>lowest price<\/strong> across all variations:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&quot;_script&quot;: {\n  &quot;type&quot;: &quot;number&quot;,\n  &quot;order&quot;: &quot;asc&quot;,\n  &quot;script&quot;: {\n    &quot;lang&quot;: &quot;painless&quot;,\n    &quot;params&quot;: { &quot;fields&quot;: &#091;&quot;custom_price_b1&quot;, &quot;custom_price_b2&quot;], &quot;missing&quot;: 1.0e15 },\n    &quot;source&quot;: &quot;double best = Double.POSITIVE_INFINITY; for (String f : params.fields) { if (doc.containsKey(f) &amp;&amp; doc&#091;f].size() &gt; 0) { double v = doc&#091;f].value; if (v &lt; best) best = v; } } return best;&quot;\n  }\n}<\/pre>\n\n\n\n<p>For details, check the <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/sort-search-results.html\">Elasticsearch sort documentation<\/a>.<\/p>\n\n\n\n<p><strong>Step 5: Reindex and Test<\/strong><\/p>\n\n\n\n<p>After making changes, run these commands:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bin\/magento setup:upgrade\nbin\/magento indexer:reindex\nbin\/magento cache:flush\n<\/pre>\n\n\n\n<p>As a result, now category pages can sort products by single or multiple custom prices.<\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>To sort products by custom price in Magento 2 allows you to control category listings beyond the default options.<\/p>\n\n\n\n<p>Moreover, by enriching Elasticsearch, mapping fields, and customizing the sort query, you can implement business-driven pricing logic.<\/p>\n\n\n\n<p>\ud83d\udc49 You can also learn how to <a href=\"https:\/\/webkul.com\/blog\/filter-category-products-by-specific-ids\/?utm_source=chatgpt.com\">filter products by specific IDs<\/a> for even more control over category listings.<\/p>\n\n\n\n<p>For advanced features, explore <a>Magento DevDocs<\/a> and <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/sort-search-results.html\">Elasticsearch official docs<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In Magento 2, you may need to sort products by custom price instead of default options like name or base price. This can be useful for variation pricing, promotional campaigns, or external pricing rules. Consequently, by extending Elasticsearch, you can index custom prices and use them directly in sorting. \ud83d\udc49 If you\u2019re looking for <a href=\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":448,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[2070,590],"class_list":["post-505188","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-magento2","tag-webkul"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sort Category Products by Custom Price in Magento 2 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Learn how to sort products by custom price in Magento 2. We show step-by-step how to add custom price fields for Elasticsearch.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sort Category Products by Custom Price in Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how to sort products by custom price in Magento 2. We show step-by-step how to add custom price fields for Elasticsearch.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-02T12:01:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-23T07:46:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp\" \/>\n<meta name=\"author\" content=\"Ishtiyaque Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ishtiyaque Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\"},\"author\":{\"name\":\"Ishtiyaque Ahmad\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/87870dc3a96bd31e595f7f52a88039ed\"},\"headline\":\"Sort Category Products by Custom Price in Magento 2\",\"datePublished\":\"2025-09-02T12:01:42+00:00\",\"dateModified\":\"2025-09-23T07:46:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\"},\"wordCount\":392,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp\",\"keywords\":[\"Magento2\",\"webkul\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\",\"url\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\",\"name\":\"Sort Category Products by Custom Price in Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp\",\"datePublished\":\"2025-09-02T12:01:42+00:00\",\"dateModified\":\"2025-09-23T07:46:19+00:00\",\"description\":\"Learn how to sort products by custom price in Magento 2. We show step-by-step how to add custom price fields for Elasticsearch.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image.webp\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image.webp\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sort Category Products by Custom Price in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/87870dc3a96bd31e595f7f52a88039ed\",\"name\":\"Ishtiyaque Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3a094b2512bcdac14021c72f014bee8e6781d99ac6028e78098a07e7aec32b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3a094b2512bcdac14021c72f014bee8e6781d99ac6028e78098a07e7aec32b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ishtiyaque Ahmad\"},\"description\":\"Ishtiyaque Ahmad, a Magento Certified Developer, is an expert in Magento 2 development and eCommerce platforms.&nbsp;Expertise in crafting custom solutions, optimizing workflows, and integrating seamless eCommerce features drives business growth and operational efficiency.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/ishtiyaque-ahmad755\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sort Category Products by Custom Price in Magento 2 - Webkul Blog","description":"Learn how to sort products by custom price in Magento 2. We show step-by-step how to add custom price fields for Elasticsearch.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/","og_locale":"en_US","og_type":"article","og_title":"Sort Category Products by Custom Price in Magento 2 - Webkul Blog","og_description":"Learn how to sort products by custom price in Magento 2. We show step-by-step how to add custom price fields for Elasticsearch.","og_url":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2025-09-02T12:01:42+00:00","article_modified_time":"2025-09-23T07:46:19+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp","type":"","width":"","height":""}],"author":"Ishtiyaque Ahmad","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ishtiyaque Ahmad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/"},"author":{"name":"Ishtiyaque Ahmad","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/87870dc3a96bd31e595f7f52a88039ed"},"headline":"Sort Category Products by Custom Price in Magento 2","datePublished":"2025-09-02T12:01:42+00:00","dateModified":"2025-09-23T07:46:19+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/"},"wordCount":392,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp","keywords":["Magento2","webkul"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/","url":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/","name":"Sort Category Products by Custom Price in Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image-1200x800.webp","datePublished":"2025-09-02T12:01:42+00:00","dateModified":"2025-09-23T07:46:19+00:00","description":"Learn how to sort products by custom price in Magento 2. We show step-by-step how to add custom price fields for Elasticsearch.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image.webp","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/09\/cover-image.webp","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/sort-category-listing-product-by-custom-price\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Sort Category Products by Custom Price in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/87870dc3a96bd31e595f7f52a88039ed","name":"Ishtiyaque Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3a094b2512bcdac14021c72f014bee8e6781d99ac6028e78098a07e7aec32b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3a094b2512bcdac14021c72f014bee8e6781d99ac6028e78098a07e7aec32b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ishtiyaque Ahmad"},"description":"Ishtiyaque Ahmad, a Magento Certified Developer, is an expert in Magento 2 development and eCommerce platforms.&nbsp;Expertise in crafting custom solutions, optimizing workflows, and integrating seamless eCommerce features drives business growth and operational efficiency.","url":"https:\/\/webkul.com\/blog\/author\/ishtiyaque-ahmad755\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/505188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/448"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=505188"}],"version-history":[{"count":32,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/505188\/revisions"}],"predecessor-version":[{"id":507442,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/505188\/revisions\/507442"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=505188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=505188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=505188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}