Okay
  Public Ticket #2337696
How to avoid showing the "event capacity" ?
Closed

Comments

  •  1
    Alec started the conversation

    Hi, Amelia support:

    When I was setting up an event using the Amelia plugin, I noticed that there is a "event capacity (0/100)" showing in the front end after using the short code.  I just wonder if you could advise how I can avoid the showing of this Event capacity information in the front end, as we do not want to show it for this particular training class we are planning.

    Thanks a lot!

    Alec

  • [deleted] replied

    Hello Alec, 

    There isn't an option to disable this information on the front-end, but you can hide this element so customers won't see it on the page. 

    If you want to hide that part, please try adding this custom HTML to the page where you have your Amelia shortcode: 

    <style> div.am-event-data > div.am-event-info > div:nth-child(2) {display: none !important;}</style>

    if that doesn't help, try this one as well: 

    <style> div.am-event-data > div.am-event-info > div:nth-child(2) > div:nth-child(1) {display: none !important;} </style>

    Let me know if this helped!

  •  1
    Alec replied

    Thank you very much! Marija.  Your advice fixed the issue!


    Alec

  • [deleted] replied

    You are welcome, Alec.

    Glad I could help out! 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help, 

  •  1
    Alec replied

    Hi, Marija,

    I just wonder if I could ask your advice about another quick question regarding the "Event ID".  I am very confused about how Amelia assigns "Event ID", and this "Event ID" is not listed in the event list as shown in the attached screen shot.  Also it does not looks like the 1st one on the list is Event No.1. 

    So could you please share your advice about where to find this Event ID ?  Or how does Amelia assigns event ID so that I can easily use them in the short code, and know which is which ?

    Many thanks again!

    Alec

  • [deleted] replied

    Hello Alec, 

    The IDs to events (as to services/employees/categories/etc. in Amelia) is added in the database when you create them. So, the first created event gets the ID 1, the second 2, etc. When you delete some event, that ID is not available anymore, it won't be added to a newly created event. So, if you delete the first event created that had ID 1, that ID 1 will not be available anymore, the newly created event will get 2, 3, 4, etc. The ID is their unique identifier in the database, and you can always see these IDs in your database. 

    When you create a shortcode in Gutenberg you can enable the option Preselect Booking Parameters in the right panel and you will be able to choose the event you want and you will see the IDs there. If the event is a recurring one, you won't be able to see the dates of the event to choose one of them unfortunately, but there is an option to choose one of them and enable the option to Show recurring events. Please look at the attachment. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help, 

  •  1
    Alec replied

    Marija,

    Your follow up is again super helpful! 

    I just have one last question on this event ID topic.  When you mention "Database", are you talking about "Database" of WordPress,  or some other database in Amelia that I can look into?  Showing me another screen shot of this database you mentioned would be awesome.

    Thank you very much again!

    Alec

  • [deleted] replied

    Hello Alec, 

    You are welcome. Glad I could help! 

    Yes, the database of your WordPress (depending on the hosting provider you can have access to the database in different ways, but mostly PhpMyAdmin). In the database you have tables with amelia prefix in them where data from Amelia is saved. You will see there wp_amelia_events table (you can have some different prefix here) and when you open it you can see the events that you created in Amelia and their IDs. 

    Hope this helps! 

    If you have any further questions or concerns feel free to ask,