Creating characteristics for the product and variant attributes

Modified on Mon, 11 May at 1:27 PM

The Sales Layer channel allows exporting additional fields so they become product characteristics. Added fields of variants can also be converted into configurable attributes. If the value is empty or null, the product or variant will be deleted from the shop.

The primary names of the fields configured in the Sales Layer channel are searched in PrestaShop. If they do not exist, they are created as new:



Since PrestaShop version 1.7, it is possible to send features with more than one value. To separate them, use the symbol |.

To create all characteristics identically without using a custom command, edit saleslayerimport.php with the following line:

public $create_new_features_as_custom = false;

Change the value to true.

  • Characteristics, attributes, and values in multiple languages are created only if they do not exist in PrestaShop.
  • If the value exists in any language, it is linked to the product and fills the missing languages. If none of the values is found in PrestaShop in any language, it is created as new.
  • Once attributes are created and filled with multi-language values, it will not be possible to edit them in the future from the plugin. This protects existing values in PrestaShop. Existing multi-language values are not updated from the plugin.
  • It is possible to edit or delete languages from PrestaShop, so during the next update the data is created correctly.

By default, Sales Layer generates new attributes in PrestaShop. If you do not want this to work automatically, change the flag in saleslayerimport.php to avoid creation:

public $create_new_attributes = true; // Modifying to false;

From that moment, the system will show in the logs that the option has been deactivated.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article