Fields customization

Modified on Mon, 11 May at 1:26 PM

If you are using a custom PrestaShop and need additional fields configured in your e-commerce, those fields should be added to the code to update that information.

This should be done in the saleslayerimport.php file by adding the fields into the $predefined_product_fields variable for products.

This way, the system looks for all the fields in the Products tab in Sales Layer, checks that variable, which is case sensitive, and if it does not find them, converts them into product characteristics.

The same can be done with variants using the $product_format_base_fields variable.

For advanced customization that requires more changes, there are two files ready: SlProducts.php for products and SlVariants.php for variants.


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