✪ OVERVIEW ✪
In OpenCart products don't have primary category, only a list of ones. Sometimes it's quite confusing to implement new features based on product category, because one product can be assigned to multiple categories at once. For example, calculate shipping costs.
This little extension adds one single field to product editing page - Primary Category, in which you can select one category, which is considered to be primary.
How to use
When you install this extension, three new functions are added to product model in admin and catalog:
addProductPrimaryCategory($product_id = 0, $category_id)
Their names say for themselves and usage is very simple. Any developer or customer with some basic PHP knowledge can implement these functions easily. All our extensions already utilize them, when necessary.
3.0.0 (change log
✪ DEMONSTRATION ✪
You can see it working in admin section on our demo site
(username: demo, password: demo). Go to Catalog -> Product, Links tab and you will see Primary Category field on top.
✪ DOCUMENTATION & SUPPORT ✪
You will find documentation on extension's page
. For support us via email
✪ TERMS & CONDITIONS ✪
Please, read our support terms