A
A
Anton M2020-05-21 00:13:38
JavaScript
Anton M, 2020-05-21 00:13:38

Online store in the form of a js-plugin. How? Meaning?

There is a plugin that displays a given store structure.
All store information is stored in json format. Now it is simply passed as a parameter to an instance of the class.

There is also a page with creating a store structure. How to implement the saving of this information on the server?
How to change it in this case already in the store itself? For example, when a product is issued and you need to reduce its quantity in the array.

I would also like to implement the ability to take a step back with backspace. For this, as I understand it, you need ssr?

And in general, what do you think about the idea of ​​​​creating such a plugin?
Its main feature is that it connects as simply as any slider.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Karpion, 2020-05-21
@Karpion

In fact, the store consists of several components:

  1. Database with DBMS - for transactions.
  2. CGI scripts or other software part that converts requests from the client into SQL queries to the DBMS.
  3. Client side - HTML and JS. Separately - for buyers, for employees, for administrators: each has its own system. However, their CGI scripts are also likely to be different.
"An online store in the form of a js-plugin" does not happen without something additional.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question