• Resolved kalebweeter14

    (@kalebweeter14)


    I’m working in Localhost. No link.

    I am attempting to display “we’re open/ closed” for each of my 4 seasonal hours (locations).

    When I attempt to put in the short code that will make this appear depending on date I get an error that shows up on page when I enter more than 1 “we’re open” short codes. Whether I individually lay them out or put them in different short codes the problem remains.

    This seems to be working fine with the display hours

    Ex:

    [mbhi_seasonal_hours location="Spring Hours" from="April 1" to="June 30"]
    
    [mbhi_seasonal_hours location="Summer Hours" from="July 1" to="August 31"]
    
    [mbhi_seasonal_hours location="Winter Hours" from="January 1" to="February 28"]
    
    [mbhi_seasonal_hours location="Fall Hours" from="September 1" to="December 31"]

    However, when I repeat this method for “we’re open” short code I get the errors.

    Ex:

    [mbhi location="Spring Hours" format="12" openmessage="We're open" closedmessage="It's {day}, we're closed now (open again on {next_open_day} at {next_open_time})." from="April1" to="June 30"] 
    
    [mbhi location="Summer Hours" format="12" openmessage="We're open" closedmessage="It's {day}, we're closed now (open again on {next_open_day} at {next_open_time})." from="July 1" to="August 31"]
    
    [mbhi location="Fall Hours" format="12" openmessage="We're open" closedmessage="It's {day}, we're closed now (open again on {next_open_day} at {next_open_time})." from="January 1" to="February 28"]
    
    [mbhi location="Winter Hours" format="12" openmessage="We're open" closedmessage="It's {day}, we're closed now (open again on {next_open_day} at {next_open_time})." from="September 1" to="December 31"]

    The first “we’re open” works and shows up without problem. When I add the others, however, they give me these errors…

    Warning: Attempt to read property "for_ajax" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 26
    
    Warning: Attempt to read property "show_location_error" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 31
    /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37
    closed">
    Warning: Attempt to read property "indicator_text" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37 Warning: Attempt to read property "for_ajax" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 26 Warning: Attempt to read property "show_location_error" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 31
    /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37
    closed">
    Warning: Attempt to read property "indicator_text" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37

    Warning: Attempt to read property "for_ajax" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 26 Warning: Attempt to read property "show_location_error" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 31
    /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37
    closed">
    Warning: Attempt to read property "indicator_text" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37 Warning: Attempt to read property "for_ajax" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 26 Warning: Attempt to read property "show_location_error" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 31
    /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37
    closed">
    Warning: Attempt to read property "indicator_text" on null in /Users/oldhead/Local Sites/four-seasons-nursery/app/public/wp-content/plugins/mabel-business-hours-indicator-pro/templates/indicator.php on line 37

    HELP

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display “we’re Open” Based on Seasonal “location Hours’ is closed to new replies.