| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | namespace Hurrytimer; |
| 3 | 4 | |
| 4 | 5 | /** |
| 5 | 6 | * This class is used to store all plugin's constants. |
| @@ -10,8 +11,9 @@ | ||
| 10 | 11 | { |
| 11 | 12 | // Modes. |
| 12 | 13 | const MODE_REGULAR = 1; |
| 13 | 14 | const MODE_EVERGREEN = 2; |
| 15 | + const MODE_RECURRING = 3; | |
| 14 | 16 | |
| 15 | 17 | // WC single product positions. |
| 16 | 18 | const WC_POSITION_ABOVE_TITLE = 2.3; |
| 17 | 19 | const WC_POSITION_BELOW_TITLE = 9.3; |
| @@ -17,8 +19,9 @@ | ||
| 17 | 19 | const WC_POSITION_BELOW_TITLE = 9.3; |
| 18 | 20 | const WC_POSITON_BELOW_REVIEW_RATING = 11.3; |
| 19 | 21 | const WC_POSITION_BELOW_PRICE = 17.3; |
| 20 | 22 | const WC_POSITION_BELOW_ATC_BUTTON = 39.3; |
| 23 | + const WC_POSITION_ABOVE_ATC_BUTTON = 29.3; | |
| 21 | 24 | |
| 22 | 25 | // Actions. |
| 23 | 26 | const ACTION_NONE = 1; |
| 24 | 27 | const ACTION_HIDE = 2; |
| @@ -25,8 +28,9 @@ | ||
| 25 | 28 | const ACTION_REDIRECT = 3; |
| 26 | 29 | const ACTION_CHANGE_STOCK_STATUS = 4; |
| 27 | 30 | const ACTION_HIDE_ADD_TO_CART_BUTTON = 5; |
| 28 | 31 | const ACTION_DISPLAY_MESSAGE = 6; |
| 32 | + const ACTION_EXPIRE_COUPON = 7; | |
| 29 | 33 | |
| 30 | 34 | // WC products selection type. |
| 31 | 35 | const WC_PS_TYPE_ALL = 1; |
| 32 | 36 | const WC_PS_TYPE_INCLUDE_PRODUCTS = 2; |
| @@ -42,9 +46,10 @@ | ||
| 42 | 46 | // Restart options. |
| 43 | 47 | const RESTART_NONE = 1; |
| 44 | 48 | const RESTART_IMMEDIATELY = 2; |
| 45 | 49 | const RESTART_AFTER_RELOAD = 3; |
| 46 | - | |
| 50 | + const RESTART_AFTER_DURATION = 4; | |
| 51 | + | |
| 47 | 52 | // Transform text cases. |
| 48 | 53 | const TRANSFORM_NONE = 'none'; |
| 49 | 54 | const TRANSFORM_UPPERCASE = 'uppercase'; |
| 50 | 55 | const TRANSFORM_LOWERCASE = 'lowercase'; |
| @@ -55,5 +60,23 @@ | ||
| 55 | 60 | const WC_ON_BACKORDER = 'onbackorder'; |
| 56 | 61 | |
| 57 | 62 | const YES = "yes"; |
| 58 | 63 | const NO = "no"; |
| 64 | + | |
| 65 | + const RECURRING_END_NEVER = 1; | |
| 66 | + const RECURRING_END_OCCURRENCES = 2; | |
| 67 | + const RECURRING_END_TIME = 3; | |
| 68 | + | |
| 69 | + const RECURRING_MINUTELY = 'minutely'; | |
| 70 | + const RECURRING_HOURLY = 'hourly'; | |
| 71 | + const RECURRING_DAILY = 'daily'; | |
| 72 | + const RECURRING_WEEKLY = 'weekly'; | |
| 73 | + const RECURRING_MONTHLY = 'monthly'; | |
| 74 | + | |
| 75 | + const RECURRING_MONTHLY_DAY_OF_MONTH = 'day_of_month'; | |
| 76 | + const RECURRING_MONTHLY_DAY_OF_WEEK = 'day_of_week'; | |
| 77 | + | |
| 78 | + const DETECTION_METHOD_COOKIE = 1; | |
| 79 | + const DETECTION_METHOD_IP = 2; | |
| 80 | + const DETECTION_METHOD_USER_SESSION = 3; | |
| 81 | + | |
| 59 | 82 | } |