Answer the question
In order to leave comments, you need to log in
What type of field should be specified in order to create a selection list in the database from 2 values for the field?
It is necessary in the Catalog - add the "view" attribute (view_type) to it - one of the values ['blocks', 'list']
, that is, for the catalog in the future we will indicate "blocks" or "list" and thus the goods inside will be displayed it. Keep in mind that the directory can be updated or set the type when creating. The default value is blocks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question