• Resolved breyo

    (@breyo)


    Hi,
    First, thank you for your work ! ??

    I just have one “issue”..
    I just set up “Temporary closure” for the next 7 days and wish to use “%days_change” to indicate when i’ll be back at office.

    But, actually, i don’t know how to display the text :
    “I’ll be back in %days_change% days”
    Or something like that only when “temporary closure” is set.

    The code i actually use :

    <p class="open-text-intro">[open_text]
    %if_open_now% Office is open util %today_end%.%end%
    %if_open_later% We're closed for the moment, but we'll be back at %today_next%. %end%
    %if_closed_now%
        %if_not_open_later% We're closed today
            %if_open_tomorrow%, but will open tomorrow at %tomorrow_start%.
            %else% %space% and tomorrow. %end%
        %end%
    %end% 
    %if_closed_now%
    %if_closed_tomorrow%
    %end%
    %end%
    <br>Closed for %days_change% days.
    [/open_text]</p>

    I wish to have a condition for this part :
    <br>Closed for %days_change% days.

    Thank you again !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @breyo Thanks for letting me know about this.

    From memory, there is a 7 day limit to the X to change functionality so it may not work in your case. My reason for adding this was to limit the process to a reasonable time frame – so if a business was always closed it would not just keep looking forever. Perhaps I can extend this to two weeks instead as this may be a more reasonable duration in instances such as yours?

    Please get back to me if this applies to your issue?

    Plugin Author Design Extreme

    (@designextreme)

    @breyo Actually, I did spot something relevant to the answer – a condition: “temporary closure” (true and false) – so new functionality.

    Currently, this does not exist. So, this would be additional functionality within the conditional text. I will look into adding this soon and perhaps something similar for regular, special, temporary closure. It will be quite a large extension because this will add 6 new conditional statements if I just check the current day. It may be necessary to also include tomorrow, meaning 12 additional logic statements.

    Thread Starter breyo

    (@breyo)

    @designextreme Thanks for your quick answer !
    For your 1st proposition : would be great to extend it to two weeks (for me)

    I would love to see this evolution with these new conditions
    I can imagine that it will not be easy to implement (i’m web dev)

    Let me know if i can help in any way
    Thank you again for your availability !

    Plugin Author Design Extreme

    (@designextreme)

    @breyo I’ve spent the last couple of hours working on the plugin and launched a new version with the new two week limit and all of the new conditional statements that you requested!

    Please download version 1.29 – this one is for you.

    Thank you for the suggestion! ??

    Thread Starter breyo

    (@breyo)

    Already ?!
    You’re the boss !

    I will download it tomorrow at office and give you a feedback

    Thank you very much !

    Thread Starter breyo

    (@breyo)

    Finally, i tested it right now
    It looks amazing ! Just what i wanted ! It’s perfect !!

    I saw the update for “14 days” in settings but, when i add like 7 days for holidays the var that count still says 6 days on the frontend ..
    Do i forgot something ?

    Thank you again !

    Plugin Author Design Extreme

    (@designextreme)

    @breyo I will perform a test, make corrections and fix this for the subsequent version.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Condition for “Temporary closure”’ is closed to new replies.