I added 2 more options and they appear in the drop down menu fine. On the limit.php, it doesn't appear to be working correctly. I tested it and it using the 2 new options and it still allows it to be added to cart without warning.
Is it possible my mktime is incorrect for array 7 and 8?
Thanks for help.
$d = getdate();
$periodicity = array(
'forever' => 0,
'yearly' => 1,
'quarterly' => 2,
'monthly' => 3,
'weekly' => 4,
'daily' => 5,
'cart' => 6,
'bi-weekly' => 7,
'three-weeks' => 8
);
$baseDates = array(
0 => 0,
1 => mktime(0,0,0,1,1,$d['year']),
2 => mktime(0,0,0,$d['mon']-(($d['mon']-1)%4),1,$d['year']),
3 => mktime(0,0,0,$d['mon'],1,$d['year']),
4 => mktime(0,0,0,$d['mon'],$d['mday']-$d['wday'],$d['year']),
5 => mktime(0,0,0,$d['mon'],$d['mday'],$d['year']),
6 => -1,
7 => mktime(0,0,0,$d['mon'],$d['mday']-13,$d['year']),
8 => mktime(0,0,0,$d['mon'],$d['mday']-20,$d['year'])
);