Main Category for Magento2
In stock
- SKU
- MAGE2MAINCATEGORY
* Support does not include improvement of the Magento extension, such as adding functionalities, resolving old Magento compatibilities, etc. If the module presents a bug on a native Magento instance (of the Magento versions listed on the extension page), we will resolve it whether or not you have purchased support.
View Support & Updates plansDescription
Description :
A product in several categories gets several URLs and inconsistent breadcrumbs. Main Category lets you choose one main category per product.
- One product URL based on the main category; other URLs redirect to it.
- Choose which old URLs are kept as redirections: base URL, other categories, anchor categories, current redirections.
- Breadcrumb always based on the main category.
- XML sitemap uses the main category URL.
- Integrity checks for missing or invalid main categories, and a CLI reindex command.
This extension is used on this store.
Compatibility: Magento Open Source 2.4.7 – 2.4.9 · PHP 8.3+
Licence: one production Magento installation (unlimited store views), plus unlimited development and staging instances.
Functionalities :
- Allow you to select a main category for product
- Main category will be use (optionally) for product url (other category-product urls will be redirected to the main category - product url). For exemple : www.domain.tld/shoes/nike-new-model.html
- Main category will be use for breadcrumb on product page. For exemple : Domain > Shoes > Nike New Model
- Main category is a product attribute, so you can use it wherever you want.
Functionnality missing ? Please contact us, and maybe we could add it to our next release!
Compatibility :
PHP : 8.3+
Magento : Open Source 2.4.9, Open Source 2.4.8, Open Source 2.4.7
You want it compatible with another magento version, or extension ? Ask us
Answered Needs
Note: This list of answered needs is not exhaustive.
Set main category for a product in Magento ?
I need from Magento a unique product url for SEO, how to do this ?
Changelog
- 2026-09-10 2.1.3 : Improve category selector
- 2026-08-25 2.1.2 : PHP8.3 requirement. Minor improvements
- 2026-05-05 2.1.1 : Minor bugfixes and improvements.
- 2026-02-07 2.1.0 : Minor bugfixes and improvements.
- 2024-10-16 2.0.9 : Minor bugfixes and improvements.