About the shopping station, at which point does the customer change the total number of products? How to solve it

Source: Internet
Author: User
About the shopping station, at which point does the customer change the total number of products?
The first time I made a shopping station. A logical problem has been encountered. Please help the experts to analyze how to solve.

The shopping station. If the product has only one item left. is the product considered to be sold out after the user has joined the shopping cart? or after the purchase of the order is sold out, or after the successful payment of the transaction is considered sold out.

If it is added to the cart, it is considered sold out. So if the user is playing. Do not pay after placing in cart. Wouldn't that affect other users ' shopping.

If the order is paid after payment is considered sold out. So if there's only one thing left in the product. In the case of a user ordering but not yet paid. b the user ordered again. Wouldn't that be enough?

How the hell did this all work out?

------Solution--------------------
The inventory number should be reduced by one when "order is generated" (orders cannot be generated if it has reached 0). Too early (when put into the shopping cart) sellers suffer, too late (in the time of payment) sellers passive.

At the same time should consider adding a reminder function, in the shopping cart more than the number of inventory, remind the seller to pay attention, timely replenishment or active contact with the buyer.


――――――――――――――――――――――――――――――――
Based on the plugin extension function provided by CSDN forum, I have made a signature file tool to share with you, welcome technical exchange:)
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.