• Resolved nobu1

    (@nobu1)


    I am going to use it on 10,000 stores.
    I create one business hour and use it in many stores.
    But they are different holidays.

    I want to set:
    Business hours A + Holidays A
    Business hours A + Holidays B
    Business hours A + Holidays C
    Business hours A + Holidays D
    ….

    When the shop is open, it is a message of “Open”. When the shop is closed (=holiday), it is a “closed” message.

    I put the shortcode “business hours A” + the shortcode “holidays A”.
    And, both “open” and “closed” are displayed. This is mistake!

    If the shortcode “Holiday A” matches, I don’t want to display “Open”.
    how do you configure it?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Maarten

    (@maartenbelmans)

    I need to see it on a screenshot for hidden characters.

    Thread Starter nobu1

    (@nobu1)

    This page are only this code now.

    https://uploda1.ysklog.net/uploda/445bfd6637.jpg
    https://uploda1.ysklog.net/uploda/cb4bb65570.jpg

    • This reply was modified 1 year, 11 months ago by nobu1.
    Plugin Author Maarten

    (@maartenbelmans)

    Please check the quotes in your shortcodes. You need to add straight quotes but yours are curly: https://practicaltypography.com/straight-and-curly-quotes.html

    Best not copy-paste the shortcode but type it yourself.

    Thread Starter nobu1

    (@nobu1)

    Thank you, the cause was the quotes.
    
    I think this 4 messages are my best.
    open time and open day => message "open!"
    close time and open day => message "close!"
    open time and close day => message "This is holiday!"
    close time and close day => message "This is holiday!"
    
    This is my best shortcodes. but I can't use this codes because 2 shortcodes are recognized and 2 messages are displayed.
    And when holidays1 has nothing in opening hours, it recognizes that it's all closed. So I need to enter all the opening 24 hours. It needs a system to enter all opening with one check.
    
    [mbhi_ifopen location="holidays1"]
    [mbhi_ifopen location="hours1"]
    open!
    [/mbhi_ifopen]
    [/mbhi_ifopen]
    
    [mbhi_ifopen location="holidays1"]
    [mbhi_ifclosed location="hours1"]
    close!
    [/mbhi_ifclosed]
    [/mbhi_ifopen]
    
    [mbhi_ifclosed location="holidays1"]
    This is holiday!
    [/mbhi_ifclosed]
    
    And, I need to set 10,000 business hours and 10,000 holidays using the default code.
    I hope this function in the future.
    And thank you for this long support.
    Plugin Author Maarten

    (@maartenbelmans)

    I am afriad what you want to do is not fully possible, sorry.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘If the shortcode “Holiday A” matches, I don’t want to display “Open”.’ is closed to new replies.