Answer the question
In order to leave comments, you need to log in
Make directory from json string?
Given: A server running centos 6, where I deployed a small Bitrix
There is also http://gw.open.1688.com:80/openapi/param2/1/cn.ali... a request for which we get a list of elements from the site 1688.com
It is necessary, on the basis of the received data, to create a section with elements in the site's trade catalog. The element must contain the price, properties, images, in a word, everything that is in the upload.
Let's say I make a "CATALOGUE" component on a pure Bitrix, I'll display a section with elements there, as I understand it, I need to write some kind of script that takes this json, loops through it and throws data through the api function into the database, that is, after the script worked for me in the database there will be goods
and the line will no longer need to procrastinate?
In general, guys, please tell me how to approach? how to write this script? How to display the directory correctly ?, preferably in detail, with code examples if possible) Or documentation
Answer the question
In order to leave comments, you need to log in
How the catalog is displayed is up to you.
Write a simple function in php using Bitrix api.
You receive a string, process it, go through the loop and enter the data into the API infoblock
for working with IB dev.1c-bitrix.ru/api_help/iblock/classes/ciblockel...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question