A
A
ArtJH2020-01-27 13:07:22
JSON
ArtJH, 2020-01-27 13:07:22

How to take data from markup and send as Json data?

Hello.

Here is the site: https://altaifoods.kz/

How to get data from the cart and send it as json ? The data will be saved as localStorage. In this format:

[{id: 4, name: "Шоколадно-ореховая", img: "1579703565.png", price: 1800, amount: 1},…]
0: {id: 4, name: "Шоколадно-ореховая", img: "1579703565.png", price: 1800, amount: 1}
1: {id: 5, name: "Без сахара", img: "1579703633.png", price: 1600, amount: 2}
2: {id: 6, name: "Классическая", img: "1579703679.png", price: 1600, amount: 1}

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