Support

Home Forums Event Espresso Premium hide-if-no-js Show Details Ticket Selector

hide-if-no-js Show Details Ticket Selector

Posted: June 8, 2019 at 7:07 pm

Viewing 11 reply threads


MARCOS BAER

June 8, 2019 at 7:07 pm

My web page don’t show the “show details” button in ticket selector http://us.jme.mx/fXK3GA appareantly a style called “hide-if-no-js” is causing this problem http://us.jme.mx/3RFU9D can anyone help me with this? I already activate the option of “show detail” in EE > Template > Ticket Selector Template Settings > “yes”.


Tony

  • Support Staff

June 10, 2019 at 7:02 am

Hi there,

hide-if-no-js sets display: none; on elements that have it.

There’s then some JS loaded by Event Espresso that sets those elements to display when it loads.

So if it’s not displaying either there’s a JS error on the page preventing the switchover, or the JS that switches it over isn’t loading (or some conflict that basically does the same thing).

The screenshots of the course code and ticket selector don’t really give us any context to work from, can you link us to the page in question so we can take a look?


MARCOS BAER

June 10, 2019 at 9:26 am

Hi! Thanks for the response. Understood. This is a link where issue is. http://portada-online.com/events/portadanewyork19/


Tony

  • Support Staff

June 10, 2019 at 10:03 am

Ok, so the EE core js file isn’t loading on that page.

How are you loading the ticket selector?


MARCOS BAER

June 10, 2019 at 11:30 am

Ticket Selector is loading vía [ESPRESSO_TICKET_SELECTOR]


Tony

  • Support Staff

June 10, 2019 at 12:32 pm

Thank you.

So are you using that shortcode within the content as normal? Through a page builder or using do_shortcode at all?


MARCOS BAER

June 10, 2019 at 1:40 pm

Honestly, I don’t know, I don’t configured the ticket selector. Suddenly the “detail” option dissapear. I think this configuration works with formidable pro because responds to an event id in Formidable data base. [ESPRESSO_TICKET_SELECTOR event_id=[3499]] but this don’t make me sense because formidable don’t load JS files.


Tony

  • Support Staff

June 10, 2019 at 2:55 pm

[ESPRESSO_TICKET_SELECTOR event_id=[3499]]

I’m not sure I follow what is happening here, are you adding the ticket selector shortcode to a formidable form?

The [ESPRESSO_TICKET_SELECTOR event_id=XXX] shortcode needs to have been added to the content of the page using the standard WP editor. If your adding it to another section (like formidable) and then calling formidable for the content of the page, that’s not going to work as EE won’t know to loads its assets on the page (which is what is happening currently).


MARCOS BAER

June 10, 2019 at 6:26 pm

OK, let me explain you.

1) The site ( http://portada-online.com/events/portadanewyork19/ ) was constructed with formidable views ands forms to run the information in this site. Example: The Speaker section was constructed with a formidable form to call all speakers attending to a specific (date and city) event.

2) Same way, the event information form, call to an ID from Event Espresso for run the customized ticket selector. Example: http://us.jme.mx/Ec3iJR

3) This code [ESPRESSO_TICKET_SELECTOR event_id=[3499]] is running inside a form (of formidable forms) The "3499" calls the EE ID configured in Event Information Form.

4) This way was constructed to simplify the creation of an event in our site for no-developer partners. But we’ve working with this ways severals years and never had problems until now.

I was thinking in a solution, may be if you give me the <scritp> code I could write and call the .js is causing this problem.


Tony

  • Support Staff

June 11, 2019 at 5:35 am

Ok, so if you create a new standard page and add the [ESPRESSO_TICKET_SELECTOR event_id={event_id}] shortcode to that page, does it work as expected then?

I was thinking in a solution, may be if you give me the code I could write and call the .js is causing this problem.

That’s not really a solution, EE add’s the scripts it needs when it detects EE shortcodes on the page, if it can’t detect the shortcodes you’ll have further problems and me simply giving your script tags to load isn’t going to help with that.


MARCOS BAER

June 11, 2019 at 6:12 am

Yes, I created a new page, and [ESPRESSO_TICKET_SELECTOR event_id={event_id}] works https://www.portada-online.com/tests/, but not in this page http://portada-online.com/events/portadanewyork19/


Josh

  • Support Staff

June 14, 2019 at 1:52 pm

The reason the shortcode is not working on /portadanewyork19/ is because the shortcode isn’t present within the post content. If you add the shortcode to the post content (instead of through a formidable form) then the ticket selector shortcode will work as expected.

Viewing 11 reply threads

The support post ‘hide-if-no-js Show Details Ticket Selector’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso