Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

goodtorg

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

goodtorg's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Dedicated Rare
  • One Year In
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Как вариант сделайте отдельную таблицу reserved_products. добавьте id товара, reserved_to(время до когда резервировать), reserved_count (количество), reserved_by(id пользователя) . Напишите обработчик при добавлении в корзину чтоб товар в нужном количестве до нужного времени добавлялвся в таблицу reserved_products, в товаре поставьте дополнительную проверку если товар зарервирован даным пользователем то у него есть возможность купиь для остальных - товар продан. Пропишите скрипт который будет раз в какое-то время (10-15-20 минут в зависимости от нужды) снимать резервы которые уже истекли.
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.