Wix Code + Paid Plans APP

Hi

I have a page accessible when people sign up to paid plans. However, on the page that people sign up for, I want to collapse / expand certain buttons to encourage people to sign up to a higher priced plan to then display different content on the page.

I was wondering if there is a query to test which paid plan the user has signed up for? and then offer an if function statement to display certain elements on screen?

E.g if current user is ‘gold member’ then expand box A, if current user is ‘platinum member’ expand box B etc.

Many thanks for any help!

Thomas

Hi Thomas!

Unfortunately there is no integration between WixCode and Wix APPs yet.
Therefor it is not possible to define by code what kind of user is the currentUser, and so you can’t manipulate the page according to its plan.
I urge you to post a feature request in order to help make it happen!

Doron.

Hi Doron

Thanks for the reply. I’ve put a request up there!

Here’s hoping!

Thanks

Thomas

This is possible with the API
https://www.wix.com/corvid/reference/wix-paid-plans.html#getCurrentMemberOrders