Home › Forums › Calendar Products › Community Events › Enable Global Stock checkbox on Community Events page
- This topic has 5 replies, 2 voices, and was last updated 6 years, 4 months ago by Joanna.
-
AuthorPosts
-
October 23, 2017 at 9:47 pm #1367873JoannaParticipant
Hi,
How can I get rid of that on the community events page (image attached) without getting rid of that function?
It seems like it’s already configured on the backend to be enabled for all events or not.
And later it shows an option to put in the max # of tickets.So, is there a way to not show the visual ‘enable global stock’ at the top of the community event page? (image)
October 24, 2017 at 9:42 pm #1368457CliffMemberHi, Joanna.
I’m a bit unclear about your question. Are you wanting the Global Stock checkbox checked by default on the Community Events Add New form — but also have it hidden so the user cannot uncheck it?
Also, there isn’t a “global” setting for Global Stock, if you’re referring to wp-admin > Events > Settings > Tickets tab
October 24, 2017 at 10:12 pm #1368461JoannaParticipantHi Cliff, yes that’s what i meant exactly..
October 25, 2017 at 10:25 am #1368785CliffMemberWell I can tell you the checkbox comes from here:
https://github.com/moderntribe/event-tickets/blob/4.5.7/src/admin-views/meta-box.php#L62-L92
Since that file isn’t overridable via our Themer’s Guide and I didn’t find a filter to use for this, here’s a JavaScript snippet to accomplish what you’re wanting:
https://gist.github.com/cliffordp/c483a67a35f7032f586c6813083a998c
Please test to see if it’s actually working just like it should before implementing to your live site.
November 16, 2017 at 8:36 am #1384695Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Enable Global Stock checkbox on Community Events page’ is closed to new replies.