I really need to know if this is possible.
User Story
I have a personal fitness training site where I am offering customers the ability to sign up for various kinds of services.
Each service is paid for by signing up for a subscription. Each subscription varies in length and has it’s own duration and price.
For example, if a customer wants to sign up for the strength training service they can pay for a 3 month strength training plan.
Working in
Wix Studio
What I’m trying to do
I want to offer my customers discounts based on their role.
I want to do this on my website. (interim solution found for website)
I want to do this on my mobile app. (needs solution)
Right now I can edit the roles of each customer using the Site Member Access screen.
For example if they have a role of “veteran” I would offer them a subscription at the veterans rate.
I have also attached a screenshot of the the issue and what needs to be changed.
What I’ve tried so far
On the website when the user books a service, I was able to hide the subscription plans that are for veterans. This required some custom code to target the dropdown element on the booking page.
I am having trouble with
I am not able to hide pricing plans based on role in the Wix Bookings service for the mobile app.
Extra documentation
Here is a screenshot outlining the issue on the mobile app.
The mobile app fetches and displays services and pricing plans directly from the Wix backend via internal APIs, I dont think there is a way to intercept or customize this flow using custom code. Role-based filtering is not supported natively in the mobile app booking interface.
I think currently the only way would be to build a custom mobile app using Wix Headless.
If I add a custom extension to the website like how it is done in this youtube tutorial by Jacob Gontmacher, would the dynamic pricing also apply to the mobile app?
Here is the youtube video for reference: https://www.youtube.com/watch?v=VoxYv7edayg
The end goal is to be able to apply discounts based on a user role
Right now we are using separate plans at a discounted rate, but if we could dynamically change a plan price based on the user role in the backend so that it would apply to both the website and the mobile app this is an acceptable solution.
as stated I dont think the mobile app can be adjusted to suit.
the desktop and mobile versions of the site can.
We ended up finding a workaround using coupons and email automation. Instead of having specific plans for specific kinds of members we created coupons for specific plans and autogenerated them with automated emails.
The emails to distribute and generate the appropriate coupons to the correct type of member.
Example:
- Normal members would not receive a coupon email for Plan A.
- Member Type 1 would receive a coupon email with X discount for Plan A.
- Member Type 2 would receive a coupon email with Y discount for Plan A.
In addition, the coupons that were autogenerated we set up to be one-time use coupons with no expiration date - ensuring freedom to sign up whenever and prevent coupon sharing.
Lastly we set up the emails to trigger the process one week before a users plan expires. In order for the email to send to the right person, we had to go to each member who was assigned a role and add a label with the name of the role. Users who had the Veteran role also now have the Veteran label.
Because the coupons are autogenerated, we don’t have to worry about manually creating a new coupon for each customer when their plan expires.
This reduced the number of plans we needed but it did create a one time setup process for each coupon. In our case we had four plans we were discounting at different amounts which meant four different email processes were created.
Since we no longer had plans for specific members, they no longer show up on the mobile app or the website.