Hi,
I am having an issue with the user.getPricingPlan() function on some pages and in the backend code.
user,getEmail() works perfectly fine. However, when I’m using user.getPricingPlan() the code does not proceed into the .then(pricingPlans)=> block at all.
I don’t see any other issues with the code except this.
Need help to sort this out ASAP
I seem to be having the same problem. I also can’t find any documentation on what is returned when the user doesn’t have a plan.
Hi,
getPricingPlan method should work from frontend and not backend, do you guys still having issues?
https://www.wix.com/code/reference/wix-users.User.html#getPricingPlans
If so, please paste here a link to your site and specify the name of the page s we can try to inspect it.
Roi.
Hi Roi,
I had tried the front-end with wix-users api first before trying to shift to wix-users-backend api. I had the same issue while working with front end as well.
Anyway, I never got it working and I have continued without that functionality.
The code is in the data.js of my website. I can share the link if required.
If you still wish to get it working you can share a link and I’ll take a look.
Roi.
Actually I’m just having another issue. A collapsed element is not getting collapsed in live site, but works perfectly in Sandbox preview. Can you help me out?
I cannot get getPricingPlans to work. My code stops at the initilization statement: wixUsers.currentUser.getPricingPlans()