Home › Forums › Calendar Products › Events Calendar PRO › Event Calendar Pro and Woocommerce Membership
- This topic has 15 replies, 3 voices, and was last updated 9 years, 4 months ago by
dave.
-
AuthorPosts
-
November 1, 2016 at 9:42 pm #1186171
dave
ParticipantDear Support,
Using Event Calendar Pro and Woocommerce Membership work fine together for restricting the content, but its not restricting the Event details and Location. The event details and location “event meta” seem to fall outside of the “event content” which is locked by Woocommerce Membership.
From reading this post it seems that it might be possible to move the “event meta” into the “event content”, would this be correct?
(https://theeventscalendar.com/support/forums/topic/ticket-problems-with-woocommerce-for-membership-related-tickets/)Also I found this post and voted for better integration. (https://theeventscalendar.com/support/forums/topic/how-to-add-only-members-can-purchase-to-event-tickets-plus/)
Dave
November 2, 2016 at 2:19 pm #1186575Geoff B.
MemberGood evening Dave and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.To answer your question, yes, what my colleague Josh snippet does is to move the meta in the same section as the tickets which would in turn prevent that information from being seen.
Another solution would be to use a plugin such as Members in combination with WooCommerce Memberships. This way, you could have complete control over what content is displayed to whom.
You can read about that here: https://theeventscalendar.com/knowledgebase/admin-roles-and-permissions/
Let me know if that helps.
Have a great day!
Geoff B.
November 3, 2016 at 12:13 am #1186867dave
ParticipantDear Geoff B.,
Thank you for the quick reply, let me install members and give it a shot.
Will get back to you.
Cheers
Dave.November 3, 2016 at 9:52 pm #1187528Geoff B.
MemberGood evening Dave,
Awesome. I am stoked that this helped to get you started.
Let me know how that goes.
Best regards,
Geoff B.November 4, 2016 at 10:39 pm #1188079dave
ParticipantDear Geoff B.
I installed members and I think you are right it has more control, but it seems just like woo membership, but just more complex.
If I would like to try Josh’s code, but it did not seem to work. Also I am guessing I it could not find the correct class, so was trying to search the code to find the correct class for the meta data. Would you be able to point me in the correct location?
if( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) { remove_filter( 'the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form_in_content' ) ); add_filter( 'the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form_in_content' ), 0 ); }November 7, 2016 at 1:35 pm #1188803Geoff B.
MemberGood afternoon Dave,
I am glad Members is helping out. I do believe that if you create a “Members” group for each of your WooCommerce memberships, you should be able to keep things simple AND have more control over what you display.
I will ask our snippet team if it is possible to tweak my colleague Josh’s snippet to work on the single-event page.
Hang on as I follow up on this for you .
Have a great day!
Geoff B.
November 7, 2016 at 9:52 pm #1188940dave
ParticipantDear Geoff B.
I will keep playing with members as its cool and thank you for asking about the code for me.
Dave.November 8, 2016 at 3:31 pm #1189385Geoff B.
MemberGood evening Dave,
I asked my colleague Josh specifically and he had a great idea!
More specifically, this can be easily achieved with template customization.You might want to read our Themer’s guide to get a sense of how that works.
Basically, it’s really a 2 step process:
- Create a /tribe-events/ folder inside you WordPress theme’s folder
- Simply add the following unzipped file in there single-event
What I did is that I simply took all the data that was outside of the “event content” div and moved them inside.
Of course, that might result in some CSS adjustments on your end, but I believe it should help.
Let me know how that goes.
Best regards,
Geoff B.November 11, 2016 at 12:14 am #1190759dave
ParticipantDear Geoff,
Thank you for your template, I was able to get it installed but it did not solve the problem. Any other cool idea?
Dave.
November 11, 2016 at 4:48 pm #1191231Geoff B.
MemberGood evening Dave,
I am disappointed to see that the template did not work on your end.
Can you give the following updated file a shot ? single-event
If that still does not work, I believe the Membership plugin only hides the actual content loop (from php the_content(); ). If that is the case, we will need to take a look at a completely other approach to accomplish what you are trying to do.
Also, out of curiosity, what happens if you try the “Hide completely” under WooCommerce > Settings > Memberships tab ?
Hang in there!
Best regards,
Geoff B.
November 13, 2016 at 9:44 pm #1191701dave
ParticipantDear Geoff,
I tried your new template, which did not work. If I use “Hide completely” the content will not show up.I see your point with regards to members. So I will start looking for a new solution.
Thank you again for your help. Really Thank you
Dave.November 14, 2016 at 11:20 pm #1192283Geoff B.
MemberHey Dave,
Thank you for answering.
I can’t promise you anything, but I would like to try something else.
I will get back to you shortly on this.
Have a great day!
Geoff B.
November 16, 2016 at 9:28 am #1193297Geoff B.
MemberHey Dave,
I did a bit more research on this.
As it turns out, the only way to get this working the way you want it to would by adding some WooCommerce Memberships functions in some of our files (see: https://theeventscalendar.com/support/forums/topic/event-ticket-plus-woocommerce-membership-restriction/#post-1155609)This is because, by default WooCommerce Membership only hides content that is straight in the php the_content(); loop.
Unfortunately, this also means that I am out of solutions I can provide here.
But, I am pretty sure this can be accomplished.If programming is not really your thing, you coud hire one of our recommended customizers to do the customization for you.
I wish I had a better answer for you, but for now it’s the best one I have.
Best regards,
Geoff B.
November 18, 2016 at 6:32 am #1194427dave
ParticipantDear Geoff,
What you say is what I was guessing, what we have decided to do is to just redirect the whole page to a login page. That will solve most of the problems.
A usually you are the best.
Thank you so much for your time.
Dave.November 18, 2016 at 9:19 pm #1194785Geoff B.
MemberHey Dave,
Always a pleasure helping out.
You are welcome back in our support forums any time 🙂
For now, I am going to close this thread.
Have a great weekend!
Geoff B.
-
AuthorPosts
- The topic ‘Event Calendar Pro and Woocommerce Membership’ is closed to new replies.
