Loading…

How to enable the limited time flash sale function?

# Configuration method Log in to the "apifm" backend, marketing assistance --> flash sale settings to enable the flash sale function Set the sales start time, suspension time, and inventory quantity to start the flash sale: ![](https://dcdn.it120.cc/yuque/0/2022/png/572726/1644996810515-e0721166-4c17-4659-ac64-ee83175ff2dd.png) ![](https://dcdn.it120.cc/yuque/0/2022/png/572726/1644996820867-8727ad2b-8d1c-494c-b03e-c3f5a8f65549.png) After turning on the flash sale function, you will be able to obtain flash sale related fields through the product list interface and product details interface: 1.miaoshaThis field is true/false. You can pass in this field to get the product list interface, that is, only get the flash sale products; 2.dateStart Flash sale start time, such as:2020-05-04 21:32:44 3. dateStartCountDownThe flash sale starts counting down, such as: 5 minutes 4.dateEnd Flash sale deadline, such as:2020-12-07 00:00:00 5. dateEndCountDownFlash sale end countdown, such as: 1 hour Using the above information, you can effectively display the flash sale effect in the front-end interface. For reference code, you can view the open source "wechat-app-mall" project, the effect is as follows: ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1588692514782-8e5138f4-5f9d-4063-8788-148613fb4d50.png) # FAQ ## How to set the flash sale amount? The amount of the flash sale is the amount set in the product management. The flash sale essentially only sets 4 elements: 1. Whether flash sales are enabled for this product; 2. When does the flash sale start; 3. When will the flash sale end? 4. How much is the inventory? The time has not started, the time has ended, and the inventory is 0 (sold out), the product cannot be ordered. So there is no need to set the flash sale price separately