Hi there.
I am trying to edit my mobile menu so that if someone has bough a pricing plan the buy a plan button disappears and the member zone button appears in its place.
My current code is this but it does not work for me as I would like the button to appear if they buy ANY plan not just one.
import wixUsers from 'wix-users';
let user = wixUsers.currentUser;
$w.onReady(()=> {
user.getPricingPlans().then((bushwalker) => {
if (bushwalker.length > 0) {
$w('#mobileButton9').show()
} else {
// handle the case where user doesn't have
// pricing plan
}
})
})
This is what the menu looks like
Thanks in advance for the help.