Clerk search for Drupal Commerce becomes more complicated when the same product can have a different price for each customer and must be presented consistently across multiple languages.
That was the challenge we faced on Factory.yllw.com, an established Nordic B2B furniture marketplace. The existing Drupal search did not provide the product-oriented experience the marketplace needed, so we selected Clerk as the search foundation.
Clerk gave us instant results, a dedicated search page and customizable product cards. Our main task was making those results behave like the rest of the Drupal Commerce storefront: show the correct price for the current customer and stay within the language context selected on the website.
Why we moved beyond the existing Drupal search
The marketplace needed more than a list of matching titles. Customers expected search results to look and behave like real product cards, with images, prices, availability and direct links to the correct product page.
Drupal can provide this through Search API, Views and custom rendering. However, building the complete experience would also mean developing the instant-search interface, maintaining result templates and setting up the indexing workflow.
Clerk already provided that foundation. Drupal could synchronize its catalogue with Clerk, while Clerk handled indexing and returned the relevant products.
This allowed us to concentrate on the part that was specific to the marketplace: connecting Clerk to the business rules already implemented in Drupal Commerce.
How the Integration Works
- Drupal synchronizes stable, localized catalogue information with Clerk.
- Clerk finds the products that match the customer’s query in the active language.
- Drupal Commerce resolves the appropriate price and availability presentation for the current customer.
- The search result combines Clerk’s relevance with Drupal’s pricing, access and language context.