Product Primary Category

Product Primary Category


✪ 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.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 or forum.

✪ TERMS & CONDITIONS ✪

Please, read our support terms before purchase.





Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.1.0.0_b, 3.0.3.0, 3.0.3.1

Last Update
22 Jan 2019

Created
30 Apr 2017
350 Downloads
2 Comments
thekrotek
thekrotek
Member since: 8 Sep 2012

View all extensions Get Support