Loading…

Use full discount function

# enable module Log in to the backend, left menu --> Factory settings --> Module management, find "Full Discount Settings", after enabling it, refresh the page with F5, and you will be able to see the Full Discount Settings menu under the "Financial Management" menu on the left: ![](https://dcdn.it120.cc/yuque/0/2019/png/572726/1576720485198-bc1830ea-7dcb-467a-a4ff-552f0025bd8c.png) #Create a full reduction rule ![](https://dcdn.it120.cc/yuque/0/2019/png/572726/1576720529951-72b1ae20-235b-4b64-8e26-8f6504a7a7ce.png) # The front end reads the full minus setting Interface address:/{domain}/payBill/discountsRequest method: GET Request parameters: none Through this interface, you can obtain all the full reduction setting rules and then display them to users. # Rule description ## Overlay If the rule is set to reduce 10 when spending over 100 yuan, and the user spends 550 yuan, the superimposed effect is described as follows: 1. No superposition: This 550 consumption can only be set according to the rules, minus 10 yuan, and you need to pay 540 yuan in the end; 2. Superposition: This time the 550 consumption will be automatically superimposed by the system. This rule is equivalent to a deduction of 50 yuan for a total of 500 yuan. In the end, you only need to pay 500 yuan; ## Pay on the spot If enabled, then when you use the front-end preferential purchase order interface to pay, the full discount will be applied according to this rule; The front-end interface for on-site preferential payment is as follows: ![](https://dcdn.it120.cc/yuque/0/2019/png/572726/1576721250944-856f787a-db23-4bd6-8076-3ee1d42bb025.png) ["Front-end api interface document"](#) ## Mall Order If enabled, then in the mall module, when creating an order, the order will be automatically reduced according to the rules, and no additional interface can be called; After the user selects the product and places the order, the order amount is automatically fully reduced, and the user only needs to complete the order payment based on the fully reduced amount; ## Full minus priority If there is the following two-day full discount rule: 1. 10 yuan off for purchases over 100 yuan; 2. 30 yuan off for purchases over 200 yuan; After the user spends 200 yuan, the system will give priority to matching the full discount rules based on the maximum amount, and the user can actually enjoy a full discount of 20 yuan