amasty / module-xsearch-porto
Advanced Search Porto Compatibility By Amasty
Package info
github.com/AmastyLtd/module-xsearch-porto
Language:HTML
Type:magento2-module
pkg:composer/amasty/module-xsearch-porto
Requires
- php: >=8.1
- amasty/base: >=1.21.3
- amasty/xsearch: >=1.22.0
README
Amasty Advanced Search Compatibility for Porto Theme
Note: This free solution adds partial/basic compatibility between Amasty Advanced Search and the Porto theme for Magento.
The module was created to address known issues that may occur when Amasty Advanced Search is used with Porto theme headers. It improves the search popup behavior and helps display search result blocks correctly inside the popup.
The module adds a new Amasty Advanced Search option to the Porto header search settings. This option should be selected to enable compatibility between Amasty Advanced Search and the Porto theme.
Currently, this solution provides partial compatibility. Some Porto header types and theme configurations may still require additional styling adjustments.
Installation
Run the following commands:
composer require amasty/module-xsearch-porto php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy <your_locale> php bin/magento cache:flush
See more details in the Composer User Guide.
Usage
-
Open the Porto theme settings used for the header search configuration: Porto → Settings Panel → Header → Search Type
-
Select the Amasty Advanced Search option. This option must be enabled for the compatibility module to work correctly.
-
Go to the Advanced Search general settings: Stores → Configuration → Extensions → Advanced Search
-
In the General Settings section, find Search Field Width and set it to Default to avoid header layout issues.
-
Save the configuration and clear the Magento cache.
Example: Enabling Amasty Advanced Search in Porto
-
Open the Porto header configuration section: Porto → Settings Panel → Header
-
Find the Search Type setting and select: Amasty Advanced Search
- Go to the Advanced Search module general settings, locate the Search Field Width setting, and set it to: Default
Known Limitations
The following functionality is not fully supported:
- Popup Width (px) may not work with all Porto header types.
- Fullscreen Mode is not supported.
- Custom Search Field Width values are not supported.
- Some Porto themes or header types may display incorrect popup sizes, colors, or widths.