How to Set Default Product Sorting by Price (High to Low) in Crocoblock

January 1, 2025 - Jasmin Kotadia
Blog Icon

Sorting products by price is a common feature in e-commerce sites, allowing customers to find items within their budget quickly. In Crocoblock, you can set up default product sorting by price (high to low) using JetEngine and Elementor Pro.
This guide walks you through the step-by-step process of creating a custom query, configuring it for your product listing, and ensuring it displays products in descending price order effectively.

Step 1: Install Required Plugins

Ensure the following plugins are installed and activated:

  • Elementor Pro: Required for theme builder functionality.
  • JetEngine: From Crocoblock.

Step 2: Create a Custom Query for Sorting

  1. Go to JetEngine Queries:
    • Navigate to the WordPress Dashboard and go to JetEngine > Queries.
  2. Add a New Query:
    • Click on “Add New” and select “Posts Query” as the query type.
  3. Configure Query Settings:
    • Set the query to fetch WooCommerce products.
    • Under the “Order By” field, select Meta Field.
    • In the “Meta Field Key,” enter ‘_regular_price’ (this is the WooCommerce price meta field).
    • Set the order to From highest to lowest values (3, 2, 1; c, b, a) to display products from high to low price.
  4. Save the Query:
    • Give your query a descriptive name, such as “Price High to Low,” and save it.

Step 3: Configure the Query in Your Product Listing

  1. Navigate to Your Product Page:
    • Open the page where your product listing is displayed.
  2. Edit the Listing Grid:
    • If you’re using Elementor, select the Listing Grid widget displaying your products.
  3. Assign the Custom Query:
    • In the widget settings, enable the JetEngine Query Builder.
    • Select your custom query (e.g., “Price High to Low”) from the dropdown menu.
  4. Save and Update:
    • Save your changes and update the page.

Setting default product sorting by price (high to low) in Crocoblock is a straightforward process when you use JetEngine and Elementor Pro. By creating a custom query and assigning it to your product listing grid, you can enhance the shopping experience for your customers. This configuration not only makes navigation intuitive but also ensures that your high-value products gain visibility. With these steps, you can take full control of product sorting on your e-commerce site and deliver a seamless browsing experience.

Contact us

Let's Unleash Your Digital Potential Together.

Address

C-605, Ganesh glory 11, Nr. BSNL Office, Jagatpur Road, S.G. Highway, Jagatpur, Ahmedabad, India - 382481.

Phone

INDIA : (091) 8200639242 USA : +1 (310) 868-6009