How to Configure Location Sort Order for Pickup Locations in WooCommerce

The Local Pickup for WooCommerce plugin allows you to control how pickup locations appear in the customer dropdown on the cart and checkout pages.

With the Location Sort Order setting, you can show pickup locations in your preferred order, such as the default admin order, alphabetical order, newest location first, or nearest to the customer’s address.

For example, if your store has multiple pickup points, you can display the nearest locations first so customers can quickly find a convenient pickup option.

Benefits

Configuring Location Sort Order can help:

  • Show pickup locations in a clear and useful order
  • Help customers find the right pickup location faster
  • Highlight newly added or important pickup locations
  • Reduce checkout confusion when you have many pickup locations
  • Improve the local pickup experience on cart and checkout pages

How to Configure Location Sort Order

Step 1: Open Local Pickup settings

Go to your WordPress admin dashboard and navigate to:

Local Pickup → Global Settings

Then go to the Cart & Checkout Settings section.

Step 2: Find the Location Sort Order option

Find the Location Sort Order dropdown.

This option controls how pickup locations are displayed to customers on the cart and checkout pages.

Step 3: Select your preferred sort order

Choose one of the available options:

Option What it does
Default Shows pickup locations based on the admin sort order
Alphabetical by location name Shows pickup locations from A to Z
Most recently added location Shows newly added pickup locations first
Nearest to customer address Shows nearby pickup locations based on the customer’s address

Step 4: Save changes

Click Save Changes to apply the selected location sort order.

Local Pickup settings page with Location Sort Order option

Step 5: Check on cart or checkout page

To confirm the setup:

  1. Add a local pickup eligible product to the cart.
  2. Go to the cart or checkout page.
  3. Select Local Pickup as the shipping method.
  4. Open the pickup location dropdown.
  5. Check that locations appear in the selected order.
Pickup location dropdown on checkout page with Alphabetical order

Example Use Cases

Show important locations first

If you want to show your main store, warehouse, or flagship location first, use the Default option and arrange locations from the admin pickup locations list.

Sort branches alphabetically

If your store has many branches, use Alphabetical by location name so customers can easily scan and find their preferred branch.

Highlight new pickup locations

If you recently added a new pickup point, use Most recently added location to show the newest location at the top.

Show nearby pickup locations

If your store has many pickup points across different areas, use Nearest to customer address to help customers find the closest pickup location faster.


Conclusion

The Location Sort Order setting helps you control how pickup locations appear to customers during checkout.

You can keep a custom admin order, sort locations alphabetically, show newest locations first, or display nearby pickup locations based on the customer’s address.

This makes the pickup location dropdown easier to use and helps customers choose the right pickup option faster.


FAQs

1. Where can I find the Location Sort Order setting?

Go to Local Pickup → Global Settings → Cart & Checkout Settings and find the Location Sort Order dropdown.

2. What does the Default sort order mean?

The Default option uses the order you set in the admin pickup locations list.

You can go to Local Pickup → Pickup Locations and reorder locations using drag and drop.

3. How does Nearest to customer address work?

It shows pickup locations based on the customer’s address details, such as billing country, postcode, or location detected from the cart & checkout page.

For best results, add valid postcodes to your pickup locations.

4. Can customers still search for other pickup locations?

Yes. Customers can search and select any eligible pickup location from the dropdown, even if it is not shown first.

5. Can developers customize nearby pickup location behavior?

Yes. Developers can use filters to control nearby pickup location behavior.

// Enable or disable nearby pickup location filtering.
add_filter( 'dslpfw_enable_nearby_pickup_locations', '__return_true' );

// Change how many nearby pickup locations show by default.
add_filter( 'dslpfw_nearby_pickup_locations_limit', function( $limit, $postcode, $context ) {
    return 20;
}, 10, 3 );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.