Loading…

Membership card plug-in usage tutorial

# Enable plugin 1. If you are a free member, it is a pity that you cannot use the plug-in function of apifm for the time being; 2. If you are a professional version member, log in to the backend, go to the left menu "Factory settings" --> "Plugin management", find the "Membership Card" plug-in, and purchase it online to activate it; 3. If you are a value-added member, you don’t need to do anything, you can use all plug-in functions for free; # enable module Left menu "Factory settings" --> "Module management", find the "Member Card" module, enable the module and refresh the page, you will be able to see the membership card related menu in the left menu "Financial Management" ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598608459144-a66526b9-dc65-4dea-8676-817d6d0f313c.png) # Set up membership card In the left menu "Membership Card Rules", you can create membership card information: ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598608512382-13e4b465-4115-4802-b0f9-7ce6c75d5bcd.png) **The object of use here must be filled in correctly. If it is filled in incorrectly, the membership card will not be used! ! !** **Category or product, the following input box needs to fill in the category ID or product ID, Chinese cannot be filled in** # User gets membership card There are two ways to obtain a membership card. No matter which way you give it, the system will record the operation log and the membership card consumption details for future retrieval: ## Gift from backend administrator The administrator logs in to the backend, selects a membership card in the "Membership Card Rules" on the left menu, and uses the "Gift" button on the right menu to gift the current membership card to the designated user. ## Users purchase by themselves The membership card plug-in opens the front-end interface: ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598608667536-48c07ffb-f8c0-4f96-b256-db5efbe99141.png) Users can purchase and activate certain types of membership cards by themselves. After purchasing and activating, they can read all the membership cards under their name through the "My Membership Card" interface. The "Purchase Membership Card" interface uses the user's current mini program balance to purchase membership cards; if you want to purchase a membership card through online payment, please check: ["**nextAction parameter usage detailed explanation**"](https://www.yuque.com/apifm/doc/aetmlb) # How to use membership card Currently, the following two methods are supported for using membership cards. If used in any method, detailed consumption details can be viewed in "Card Consumption Details": ## Offline write-off The administrator logs in to the backend and performs offline write-off (recharge) through the left menu "User Membership Card" --> "Adjust Balance" function ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598608899965-805d5ca8-e0ce-4c8b-94c2-6aae16393fbd.png) ## Purchase goods in the mall Front-end interface --> "Create Order [Place Order]" interface, a new membership card number field is added, and the membership card number can be passed in to realize the business process of using the membership card to purchase goods: ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598609032041-e083dea0-24dd-4187-ae43-81b8560c2e24.png) #Use scenario analysis #①When purchasing a course, class hours will be deducted for each class **Step 1:** In product management, publish a product, for example, the name is: `Yoga Beginner Class`. After publishing, assume that the product ID is: `123`; **Step 2:** Create a membership card, for example, the name is: `Junior Yoga 24 Class Hours`. In the object of use, specify that it can be used to deduct the product `123`. Assume that the membership card ID is: `456`; [In this way, this membership card will be bound to the above products. When purchasing products, you can use the remaining times in the membership card to deduct, realizing the logic of secondary card write-off] Because the secondary card is linked to the product and order system, users can be reminded of their consumption status through order reminders.