Announcement

Collapse
No announcement yet.

How could I add a warning to my site that tells people whether their order will be...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How could I add a warning to my site that tells people whether their order will be...

    How could I add a warning to my site that tells people whether their order will be sent the same day?

    Simply place the following code into your Product Layout where you want the message to appear:

    HTML Code:
    <script language=JavaScript>
    now = new Date();
    if ( now.getHours() >= 16 ) document.write('<font color=red>Warning text here</font>');
    </script>
    In the above example, the cut-off time is 4pm - 16.00. If you want a different time, change the '16' to another number on the 24 hour clock.

    You can also put this code into the Overall Page Layout for the store.
Working...
X