Check how to get attribute group ID. This is basics in PrestaShop and this article is for module purposes, where you have to define ID of an attribute group.
In PrestaShop attributes are the basis of product variations. Each product can have some specification like color, size, material etc. Each attribute group can have some attribute values:
color: red, blue, green, white
size: s,m,x,xl,xxl,
material: wood, plastic, metal, paper
The difference between an attribute and a feature depends on the product itself. Some products might share the same property, one being an attribute built for building product variations, another one being simply an invariable feature.
For instance, a customer can buy an iPod variation based on attributes (color, disk space) but not on features (weight, size).
Likewise, another shop might sell t-shirts variations based on attributes (color, size, gender) but not on features (weight).
How to get product attribute group ID?
To get an ID of attribute group (in this example ID of group color / size / material) you have to login to your shop back office, theb please go to Catalog > product attributes. You can find there a list of all available attribute groups in your shop. The ID is available inside first column, exactly as image below shows:

Article written byMilosz Myszczuk, PrestaShop expert. CEO and founder of the VEKIA interactive agency. Learn more.
If you like this article, support our work!

The "Loyalty – Manual points & history" module is an extension for the main loyalty system (my...
14.99 €

Ships the official Google Customer Reviews opt-in right after checkout - no pasted scripts in themes...
39.99 €

The PrestaShop back-office orders screen (1.7.7+) is built on the Symfony grid: solid for defaults, ...
69.99 €

An extension for the PrestaShop myprestaloyalty module. Automatically reward customers with loyalty ...
19.99 €