Announcement

Collapse
No announcement yet.

Minimum Order after certain time help...

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

    Minimum Order after certain time help...

    I need to implement a system that when a customer places an order between 11pm-8am they have to place a minimum order, out of these hours they can can order normally. What would be the best solution to make this happen.

    Regards

    #2
    Two existing bits of info may help.

    1)This will display a message if between certain times. You'd put this code either in Act_Primary.html or in your Product Template(s).
    Code:
    <script language=JavaScript>
    <!--
    now = new Date();
    if ( (now.getHours >= 23) || (now.getHours < 8) ) document.write('<font color=red>Minimum order between 23:00 and 08:00 is £123</font>');
    //-->
    </script>
    2) Also ( on www.drillpine.biz/actinicstuff/ ) there's a Perl patch that will limit the checking out of an order to a certain value depending on the country selected. The country code could be changed to get the server time and compare on that. This requires Perl skills so isn't trivial.

    PS the first case is dependent on the clients system clock being correct and the second on your servers clock.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X