✪ 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)
editProductPrimaryCategory($product_id, $category_id)
getProductPrimaryCategory($product_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.
Current version: 3.0.1 (
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 or
forum.
✪ TERMS & CONDITIONS ✪
Please, read our
support terms before purchase.
Login and write down your comment.
Login my OpenCart Account