S
S
Sp1keazyYT2019-05-03 22:30:34
PHP
Sp1keazyYT, 2019-05-03 22:30:34

How to display detailed information about a product in a catalog by article in a PHP array?

Good evening. There is a page 93.90.220.244/get/treolan_cataloglist.php outputting a catalog array with the structure:

- Раздел ["category"]
  - Порядковый номер раздела в массиве [0...n]
    - Подраздел с его вытекающими аттрибутами ["category"]
      Если имеются ещё подразделы, то структура повторяется
      ...
        В окончательном подразделе выводятся товары в ["position"]
          - Подрядковый номер товаара в массиве [0...n]
            - Атрибуты ["@attributes"]
              ...
              Артикул в атрибутах ["articul"]
              ...

e2735756d8.png
There is a page 93.90.220.244/get/treolan_product.php?articul= with a GET request for the article (we drive in the article we need in the link in the article parameter - we get an array of detailed information about the product at the output.
For example, when accessing the page 93.90.220.244/ get/treolan_product.php?articul=R230... with the article R230-AEXB-64t-NNC-001 we get the following array
d3280f1696.png
: treolan_cataloglist.php - at the output get a list of all articles from all elements and for each article from this list make a request using the link 93.90.220.244/get/treolan_product.php?articul=and at the output get an array with all the goods in a detailed form.
How to do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question