Answer the question
In order to leave comments, you need to log in
How to import xls or csv into MODX?
There is a template for product cards that can be easily added to the site by creating a new document and filling in additional fields. How can you link xls or csv files to CMS so that it automatically fills in the fields by taking data from source files and creating the required number of cards?
Answer the question
In order to leave comments, you need to log in
miniShop2 has a built-in csv
import
tool : webcandy.ru/manuals/import-csv-minishop2 import of any resources, the main thing is to specify the required class_key.
CSV - Comma Separated Values, i.e. separated by a special character, usually a comma or a semicolon, values in lines
Select from a file line by line and split into subarrays using explode. What could be easier?
Further, modx has the fromArray() function.
You can immediately fill in objects by looping through the array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question