Skip to content
Documentation sections
English
Integrations

How to add smart search to Joomla / VirtueMart

Connect search to a Joomla store with VirtueMart through the active Joomla template.

Prepare the catalog and code

  1. Connect your product feed in Indexa and wait for the catalog to load.

  2. In “Widget → Integration”, enter the website URL and copy the universal code.

Add the search code to Joomla / VirtueMart

  1. Use your template's global head-code field if it has one.

  2. Otherwise, open templates/TEMPLATE_NAME/index.php. Back up the file and use a child or custom template where possible.

  3. Add the complete Indexa script before </head>, preserving the existing jdoc:include elements.

  4. Save the template and clear the Joomla cache if it is enabled.

Example for index.php

Example for index.php
<head>
  <!-- Existing jdoc:include elements and template code -->
  <script async src="INDEXA_LOADER_URL_FROM_DASHBOARD"></script>
</head>
HTML

Check search after installation

Open your store, then use “Check installation” in Indexa. Select the desktop and mobile search elements and save.

Search for a product, follow its link and close the widget. Repeat on the home, category and product pages.

If some pages use another template, check them separately. Recheck installation after template updates.

Still have questions? Contact us — We will help you set it up.

Esc — close