• Resolved akiraprise

    (@akiraprise)


    Hey,

    I’m using the {has_spaces} conditional placeholder on my event calendar, see https://ibiza2013.net/calendar however, it still displays events that have passed, even though the conditional shortcode should, in theory not display it. I’ve tried with multiple combinations of shortcodes etc but none seem to work, here’s the code that’s loaded into the calendar for each event:

    <li><div style="background: url(#_LATT{icon});" class="fullcalicon"></div><a href="#_EVENTURL">#_NAME</a> <br> {has_spaces} <a href="#_EVENTURL"><div class="eventbuy_container" style="margin-top:10px; margin-bottom:10px;"><div class="eventbuy">Tickets</div><div class="eventbuy_price"> #_EVENTPRICEMIN </div></div></a> {/has_spaces} <span>Display Details</span> <div class="panel"><p><strong>Line-up</strong>: #_EVENTTAGS<br/><strong>Venue</strong>: #_LOCATIONNAME<br/><a href="#_EVENTURL"><strong>+ More Details</strong></a></p></div></li>

    Also. I’m having issues with the multi-booking cart widget, for some reason if you add an event to the cart it displays very oddily, do you know if you have a fix for this as I’ve tried it all over the theme (not just in the sidebar) and it doesn’t work anywhere.

    See: https://meakin.staging.wpengine.com/boat-parties/pukka-up-friday-boat-party-in-san-antonio/ and add a ticket to the cart.

    Thanks
    Russell

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi,

    The has_spaces placeholder doesn’t check whether an event has passed. If you can explain a bit more about what you’re trying to do I might be help more.

    How are you adding that widget? If you use the default WordPress theme does that fix the problem?

    Thread Starter akiraprise

    (@akiraprise)

    Hi,

    Thanks, if you go to https://ibiza2013.net/calendar/ you’ll see we have buttons on the calendar to buy tickets. I would only like to display these for events that people can buy tickets for, the events that have passed are irrelevant and look messy having all the buttons with “€0.00”,

    In terms of the widget, I’ve tried using the shortcode and the widget in the sidebar / footer etc. I can’t try it on the standard theme as all of the events manager buttons etc are coded into the theme,

    Cheers
    Russ

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    hmm, have you tried using conditional placeholder {is_future}content{/is_future} ?

    https://wp-events-plugin.com/documentation/conditional-placeholders/

    Thread Starter akiraprise

    (@akiraprise)

    Hey,

    Yea I tried that, but it doesn’t display any buttons, here’s the code I’ve used:

    <li><div style="background: url(#_LATT{icon});" class="fullcalicon"></div><a href="#_EVENTURL">#_NAME</a> <br>{is_future} {has_spaces} <a href="#_EVENTURL"><div class="eventbuy_container" style="margin-top:10px; margin-bottom:10px;"><div class="eventbuy">Tickets</div><div class="eventbuy_price"> #_EVENTPRICEMIN </div></div></a> {/has_spaces} {/is_future}<span>Display Details</span> <div class="panel"><p><strong>Line-up</strong>: #_EVENTTAGS<br/><strong>Venue</strong>: #_LOCATIONNAME{is_future}...{/is_future}<br/><a href="#_EVENTURL"><strong>+ More Details</strong></a></p></div></li>

    Cheers
    Russ

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Ah, yhat’s because we don’t nest conditionals by default.

    See the docs here, bottom of the page. I just updated them since that’s a helpful nuance to point out:
    https://wp-events-plugin.com/documentation/conditional-placeholders/

    Thread Starter akiraprise

    (@akiraprise)

    Perfect, thank you Marcus, worked perfectly :). Is the code that I’m using very inefficient then and causing long load times, am I correct in thinking every event needs to do 2 processes, and therefor making the page very slow?

    Also. I’m having issues with the multi-booking cart widget, for some reason if you add an event to the cart it displays very oddily, do you know if you have a fix for this as I’ve tried it all over the theme (not just in the sidebar) and it doesn’t work anywhere.

    See: https://meakin.staging.wpengine.com/boat-parties/pukka-up-friday-boat-party-in-san-antonio/ and add a ticket to the cart.

    Cheers
    Russ

    Looks like something is interfering with the HTML of the form. If you switch to the default theme is the problem solved?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Depends on how many events you’re showing on that one page, and how many conditionals in each placeholder. a value of 2 shouldn’t make a huge difference.

    MB cart widgets is a Pro feature, so you’d need to ask for help on that on our pro forums.

    Thread Starter akiraprise

    (@akiraprise)

    Ok cool.

    My liscence for the pro-version has run out so I was hoping to get an answer here ?? Has anyone else noticed the issue or has it been fixed in a subsequent version?

    Thanks
    Russ

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know what is your current EMPro version?

    Thread Starter akiraprise

    (@akiraprise)

    Hey, they are:

    Events Manager: 5.4.4
    Events Manager Pro 2.3.4

    Cheers
    Russ

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I see, EMPro current stable version is 2.3.6 and it could have been fixed on this version.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘{has_spaces} conditional not working correctly’ is closed to new replies.