P
P
Pasha Gleev2016-04-10 12:59:32
PHP
Pasha Gleev, 2016-04-10 12:59:32

A simple shopping cart on LP, or a ready-made solution on js, js + jquery?

Recommend a simple shopping cart for LP, or a ready-made solution for js, js + jquery?
38c2cdf495.jpg
And a brief technical specification:
- On the button on the dishes "Add to order" - the product immediately appears in the basket. In the layout, each product is located in its own folder, which has a name and price. It is these product names and prices that are added to the cart.
- If you double-click on the "Add to Cart" button - the product will be displayed in the basket 2 times!, as two separate products with the same price and name, and not just doubled.
When you click on the "Place an order" button, the "Place an order" page opens.
================================================= ============================
And already on this page, the values ​​of the cart fields are passed to the input

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-04-10
@webinar

You create an array or an object or json (the easier / more convenient it is to work with), when you click on the button, add the data you need to it.
You can store in cookies or local storage www.w3schools.com/HTML/html5_webstorage.asp
The latter seems to me the more correct choice.
jquery will do just fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question