A
A
Adik Izat2020-05-22 02:03:11
PHP
Adik Izat, 2020-05-22 02:03:11

What is better to use for a shopping cart?

Good day! Before that, he always made shops on ready-made engines. Now I want to make my own.

The idea is that the basket will work for absolutely any users, authorized and just guests. I know about the solution using cookies. It is easy to implement yes. But there are people who prohibit their use by installing some extensions in browsers.

Are there any other alternative solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Northern Lights, 2020-05-22
@JaxAdam

But there are people who prohibit their use by installing some extensions in browsers.
These are their problems
the basket will work for absolutely any users, authorized and just guests
to read .
the article considers an example with the accumulation of statistics of an anonymous user viewed by a product, which is subsequently registered and this statistics is linked to his account. ideal for your task - the anonymous user adds products to the cart, you store the user's UID and products in temporary storage in the database, you do hidden registration when processing the form. there will be questions - ask.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question