-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome 55.0.2883.87 m
-- Error-message(debug-mod must be tuned on) -- : N/A
Currently, the "Quarterly" limit is a fixed quarter (Jan-Mar, Apr-Jun, Jul-Sep, Oct-Dec). If I wanted to change this to a "rolling" quarter (i.e. cannot buy a product if you have purchased the same product during the previous three months), all I would need to do is change line 788 of /administrator/components/com_hikashop/classes/cart.php from
2 => mktime(0,0,0,$d['mon']-(($d['mon']-1)%4),1,$d['year']),
to
2 => strtotime("-3 months"),
in the definition of the baseDates array, right? Is there anywhere else that needs to be updated for this to work?
I'm aware of the limitations of strtotime() with months of different lengths, and I'm OK with it being a couple days off either way, as long as the general gist is there.
Thanks,
Ian