Skip Navigation

[Resolved] How to connect the "WC Subscription – My account" to a "Create New Post Form"

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by ilonaB-2 3 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#2202107

Hi there,

Customers can buy a subscription for showing their profile page on our website.
Because of the subscription part we can't work with Toolset "User Forms" so we have to work with WooCommerce Subscriptions.

So now the Customer subscribes for a product (membership):
- Selects the product,
- Goes to checkout,
- The Account is created during checkout,
- Pays for the subscription,
- Receives an email with login details
- Customer logs in at the WC Subscriptions My Account page (hidden link

At this point the customer should create their profile (Post Form - Profiel aanmaken formulier), but how do we connect this specific Customer / Member with their personal Profile on the site?

I can't find any documentation on toolset.com about this specific subject.

Please advise us on how to proceed.

Regards,

#2202343

Hello,

In the "my-account" page, you can display a post view:
- Query profile posts,
- Filter by post author is same as logged-in user
https://toolset.com/documentation/user-guides/views/filtering-views-query-by-author/
- In view's loop, display the profile post information + edit profile post form link:
https://toolset.com/course-lesson/front-end-forms-for-editing-content/

If there isn't any result found, display the post form for creating new profile post
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-no-items-found

More help:
https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/

#2202619

Hi Toolset Support Team,

Can anyone please respond to this message since Luo Yang won't be online untill Monday.

Thanks for the reply above!
I do have 1 question regarding the comment: "If there isn't any result found, display the post form for creating new profile post
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-no-items-found".

What is the exact code for that and how do i need to input that in the Loop Template?

Also at the moment when I go to the "My-account" page ( as a visitor - not logged-in ), right no I see the the "No Items Found" text displayed. So when i put in the code i need (1st question), I guess non logged-in visitors can see that as well. How do I prevent that??

Thanks in advance for the support

#2202727

My issue is NOT resolved now.

Since Luo Yang won't be able to respond untill monday and i need support asap i will open a new ticket regarding this subject!