This module integrates with an external FAQ API to display category-specific FAQs on Magento category pages.
- Displays FAQs specific to each category
- Accordion-style open/close functionality
- Schema.org rich snippets for better SEO
- Configurable styles (colors and font size from API)
- Caching mechanism for improved performance
- Multiple display positions
- PHP 8.1, 8.2 or 8.3
- Magento 2.4.x
- Add the repository to your Magento 2
composer.json:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/develodesign/develosense-magento2"
}
]- Require the module:
composer require develo/module-sense- Enable the module:
bin/magento module:enable Develo_Sense
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:clean- Create the following directory:
app/code/Develo/Sense - Clone this repository into that directory:
git clone https://github.com/yourusername/develo-module-sense.git app/code/Develo/Sense- Enable the module:
bin/magento module:enable Develo_Sense
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:cleanNavigate to Stores > Configuration > Develo Extensions > Sense FAQ Settings
- Enable FAQ Display: Enable or disable the FAQ module
- API URL: The base URL for the FAQ API (without trailing slash)
- Integration ID: The integration ID used for API calls
- Cache Lifetime: How long to cache API responses (in seconds)
- FAQ Section Title: The heading displayed above the FAQs
- Display Position: Where to display the FAQs (top of content, bottom of content, or sidebar)
The module expects the Laravel FAQ API to return data in the following format:
{
"category": {
"id": 1,
"name": "Category Name"
},
"faqs": [
{
"question": "Frequently Asked Question?",
"answer": "The answer to the question."
}
],
"styles": {
"primaryColor": "#333333",
"secondaryColor": "#f5f5f5",
"fontSize": "16px"
}
}- Check the system.log and exception.log files if FAQs are not displaying
- Verify the API URL and integration ID are correct
- Ensure categories have the correct external ID mapping
- Check if the API is returning valid data by testing directly in a browser
Contributions are welcome! Please feel free to submit a Pull Request.
This module is licensed under the Open Software License v. 3.0 (OSL-3.0)