• Resolved chadit

    (@chadit)


    Hello,

    And thank for this great plugin…

    Can someone’s help me to add some future to this code…
    I wont to add that when the store will open exp. at 11 o’clock, so before the store opens at 10:15, the code began to write, that the store will open in 45 minutes, open in 44 minutes, open in 43 minutes and so on… and it count down until the store opens, and the code write at 11 that the store is open.
    And win the store will close the code write the same before 45 minutes, that the store will close in 45 minutes and so on until the store close..

    [open_now update=”immediate”]
    <p style=”color: #2cc968; text-align: center;”>Great, we are now open ! laughing</p>
    [open_text]
    %if_open_now% We are currently open, so pop in! %end%
    %if_open_later% We are currently not open, but we will be open today at: %today_next%. %end%
    %if_closed_now%
    %if_not_open_later% We are currently not open for the remainder of the day
    %if_open_tomorrow%, however we are open tomorrow at %tomorrow_start%.
    %else% and closed tomorrow. %end%
    %end%
    %end%
    [/open_text]
    [/open_now]
    [closed_now update=”immediate”]
    <p style=”color: #f12929; text-align: center;”>Sorry, we are now closed ! cry</p>
    [open_text]
    %if_open_now% We are currently open, so pop in! %end%
    %if_open_later% We are currently not open, but we will be open today at: %today_next%. %end%
    %if_closed_now%
    %if_not_open_later% We are currently not open for the remainder of the day
    %if_open_tomorrow%, however we are open tomorrow at %tomorrow_start%.
    %else% and closed tomorrow. %end%
    %end%
    %end%
    [/open_text]
    [/closed_now]

    • This topic was modified 2 years, 4 months ago by chadit.
    • This topic was modified 2 years, 4 months ago by chadit.
    • This topic was modified 2 years, 4 months ago by chadit.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Design Extreme

    (@designextreme)

    Hello @chadit,

    At the moment, there is no live countdown functionality. I may add this functionality in the future.

    However, there are replacement codes for how many hours, minutes, seconds to a change of status (i.e. from closed to open or open to closed). You can use this to inform customers of the time to either open or close when the page loads.

    Thread Starter chadit

    (@chadit)

    Yes and that what I ask for, how I can add the replacement code, into the code so it works…

    It’s here I have to edit

    %if_open_later% We are currently not open, but we will be open today at: %today_next%. %end%

    So it’s in this code I have to add the replacement code of the minuets, so it began to show how longtime its before open.. But my problem is how to put the replacement code, so it works…

    Plugin Author Design Extreme

    (@designextreme)

    @chadit Please refer to the reference within the plugin under the Shortcodes tab or check for the same in the Demo website. The replacement codes start with %seconds% and go down from there. Use the divisor if combined with a larger unit.

    You could have something like:

    [open_text]
    %if_open_later% We are currently not open, but we will be open today at: %today_next% (in %hours%:%minutes_divisor%). %end%
    [/open_text]
    Thread Starter chadit

    (@chadit)

    Can you help and Insert the code inside this code, as you prefer…

    [open_now update=”immediate”]
    <p style=”color: #2cc968; text-align: center;”>Great, we are now open ! </p>
    [open_text]
    %if_open_now% We are currently open, so pop in! %end%
    %if_open_later% We are currently not open, but we will be open today at: %today_next%. %end%
    %if_closed_now%
    %if_not_open_later% We are currently not open for the remainder of the day
    %if_open_tomorrow%, however we are open tomorrow at %tomorrow_start%.
    %else% and closed tomorrow. %end%
    %end%
    %end%
    [/open_text]
    [/open_now]
    [closed_now update=”immediate”]
    <p style=”color: #f12929; text-align: center;”>Sorry, we are now closed ! </p>
    [open_text]
    %if_open_now% We are currently open, so pop in! %end%
    %if_open_later% We are currently not open, but we will be open today at: %today_next%. %end%
    %if_closed_now%
    %if_not_open_later% We are currently not open for the remainder of the day
    %if_open_tomorrow%, however we are open tomorrow at %tomorrow_start%.
    %else% and closed tomorrow. %end%
    %end%
    %end%
    [/open_text]
    [/closed_now]

    Plugin Author Design Extreme

    (@designextreme)

    Sorry, I missed your most recent response here @chadit.

    Do you still need assistance?

    Thread Starter chadit

    (@chadit)

    Yes if you can help, whit it…

    Thread Starter chadit

    (@chadit)

    Yes if you can help, whit it…

    @designextreme

    Plugin Author Design Extreme

    (@designextreme)

    @chadit Here’s the retouched version;

    [open_text update="immediate"]
    %if_open_now%
        <p style="color: #2cc968; text-align: center;">Great, we are now open ! </p>
        <p class="additional-text">We are currently open, so pop in!</p>
    %end%
    %if_closed_now%
        <p style="color: #f12929; text-align: center;">Sorry, we are now closed ! </p>
        <p class="additional-text">
        %if_open_later%
        We are currently not open, but we will be open today at: %today_next%.
        %else%
            We are currently not open for the remainder of the day
            %if_open_tomorrow%, however we are open tomorrow at %tomorrow_start%.
            %else% and closed tomorrow.
            %end%
        %end%
        </p>
    %end%
    [/open_text]
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add time count down’ is closed to new replies.