0

I'm trying to set up a conditional action for shipping quotes in Ubercart. I need check the hour of day as a condition. I'm using the execute custom PHP condition. If the php returns true I just want the predicate to continue onto the actions. If it returns false I want it to stop. I tried:

    if (date('G') >14 && date('G') < 18){
       return true;
    }
    else{
       return false;
    }

When I tried this the shipping estimator just never delivered a quote.

Any ideas?

4

1 回答 1

0

这段代码是正确的。问题一定出在其他地方。

于 2012-05-22T02:56:03.947 回答