Attributes and Attribute Groups
What are attributes?
How do you use them in OpenCart?
Product attributes and can be thought of as additional features in a product that provide benefit.
An example of this would be something like the amount of RAM included or the clockspeed of a processor that comes with a computer that you are selling in your OpenCart store.
When you set attributes in OpenCart what happens is that an additional tab in the tab box called “Specification” will appear on the product’s page for most templates/themes. Some templates may not support this, but most will. If you’re using the default OpenCart theme, this tab will display a table that has product attributes listed out.
You must first to add the attribute to an attribute group before you can add it to the product itself. To do this, you’re going to first want to create an attribute group.
Creating an Attribute Group
The first step in getting to add attributes to a product is to create an attribute group To do this…
Sign in to your OpenCart administration panel. Hover over the “Catalog” menu item, hover over the “Attributes” menu item and click “Attributes Groups” Add a new attribute group by clicking the “Insert” button at the top of the page.
Choose a name for the attribute group and enter the sort order. The sort order will specify what order the attribute will be shown in the display if multiple attributes are selected for a particular product.
Click “Save” The attribute group can be thought of as the section in which various attributes will be added. The table(s) that appear in the specification tab will have the attribute groups as the headings for each section of the tables.
Adding an Attribute to the Attribute Group Now that you have your attribute group added, it’s time to add an attribute to the attribute group. After creating your attribute group, in your OpenCart administration panel hover over the “Catalog” menu item, hover over the “Attributes” menu item and click “Attributes” Add a new attribute by clicking the “Insert” button at the top of the page.
Choose the Attribute name and which group you want to add the attribute to as well as the sort order.
Click “Save” You attribute should now be ready for use! Adding an Attribute to a Product Now that you have your attribute added, it’s time to add it to a product. Hover over the “Catalog” menu item, and click “Products” Choose a product that you want to add attributes to and click “Edit” Select the “Attribute” tab.
Add a new attribute by clicking on the “Add Attribute” button. In the first field start to enter the name of the attribute that you added previously above. It should autocomplete for you. Add the text value of what you want this attribute to be in the next field. For example, the attribute might be “RAM” and the value might be “3.0 GB” Click “Save”
Now you can go to that product’s page and under the “Specification” tab, you should be able to see the attributes displayed.All you have to do from there is repeat the process for other attributes in order to enhance the details that you can provide to your users.