The Attributes in Prestashop are extra combinations of products for the same reference. It is a bit inconclusive, but if we give an example, it will be perfectly understood. Imagine that we introduce a product that is a t-shirt in an online store selling t-shirts. Well, the attributes would be the sizes of those t-shirts. Join me in this tutorial and you will learn how to create product attributes in 3 easy steps.
1 Getting Started and Images
When a product has attributes, in Prestashop we must first enter the product and then add the attributes, or according to Prestashop jargon, generates the combinations. To do this we must prepare the product for this purpose.
- Price of the product. Let’s take another example more realistic than the t-shirts that normally always have the same price. We will put as an example 3 jars of preserved food, one of 250 gr. And another of 1kgr. The price that we would mark in the price tab would be the 250 gr. jar. Likewise in the Transport tab we will mark the weight also of 250gr. That is the weight of the small jar.
- Images of the products. In anticipation that later we will have to upload the images of each attribute, we go ahead and in the images tab we upload all the necessary images that we will identify with each product. In this case we would upload 3 images, one of the 250g jar. Another of 500gr. And another one of the 1kgr. jar.
- Description and short description. When a product has attributes commonly nothing is usually put in the short description, since very close to its position on the product’s website is the dropdown of the attributes. But in the long description it is convenient to highlight the three types of products, or three different attributes and how they differ from each other.
2. Creating Attributes
At the same time we must click on the Catalog tab and then on Attributes and Combinations. Here we must create the attributes and the values that they will take in the product we want.
- New attribute. Click on this tab to create the new attribute. In the first field we must put the name by which we want to recognize it, as it does not appear in the front office, for example we will use the format canning jars. In the second field we will use the name that will be used in the front office with the attributes, for example “Format”.
- Enter Values. Once the attribute is created, we must assign values to that attribute. Click on the second button, new value. Select in the dropdown the “Format canning jars”, and put the value you want, in this case Crystal of 250gr. And then click on save and add new value. And we are creating the three values.
- Optional for multiple products. Imagine that the canning jars are peach, strawberry, apple or orange. Well, you could use the same set of attributes for all these products and then generate the combination (as it says in point 3) that we have created above in all products.
3. Generating the combination
Once we have the attributes created and the product prepared we should generate the combination. We are finishing and we only need to include the attributes in the product.
- We generate the combination. In the tabs of the product belonging to the combination there is a button “generate combination”. After clicking on it, a popup appears warning us that we will lose the information that we have not saved, so it is convenient to have saved everything before.
- Add the created combination. We look for among the values on the left the combination that we have created in the previous point and add it in the order we want. Simply select and click on the button below to add.
- Add price and weight. Each pot will cost more than the previous one, the 1kgr will cost more money than the 500 gr and this one will cost more than the 250gr one. Then we place it as follows. In the value “Cristal 250gr”. Leave everything to 0 because it will take the base values that we have put in the product. In the second value “Cristal 500gr” we will put the total increase, i.e. (Price of “Cristal 500gr”) – (Price “Cristal 250gr”) and in the next field we put the weight increase, which in this case would be 250gr. We do the same for the Value of 1kgr. (Price of “Cristal 1kgr”) – (Price “Cristal 250gr”) and in the weight we put 750gr (or 0.75) which is the result of subtracting 1kgr – 250 gr. Then we assign the total quantities, in this section the amount that we put will be for each product. That is if we put 10 units of each the total stock will be 30 units. After having everything well completed we finish the combination.
- Assigning images and particular values. If we now click on combinations will appear 3 elements each in a row. We must click on the edit icon in each element and select just below the corresponding image. If the same attribute is used for multiple products will need to change the price increase individually (in this section we can before saving), as it would not cost the same a jar of strawberries that one of truffles.
- Quantities of products. By default the quantities have been set to 10 each. If we need to have different quantities, because we have a different stock for each product we must change the values in the quantities tab. After finishing click on save.
In this way we would have already created attributes for this product.
If in the example of the T-shirts, you also want to add the color attribute, in the generation of the attributes will select that option instead of drop-down list. And if you want to combine two attributes in the same product, the order will be the one they have in the Attribute List. I hope this tutorial has helped you to understand a little more Prestashop.
Leave a Reply