zudan Posted February 23, 2007 Posted February 23, 2007 I'm having an issue with customers having not downloaded immediately, asking to do so after the limit of 3 days. When I then 'update' the status, so they have 3 extra trials, in some cases (I can't pinpoint for the moment) the link does not become available in their account history. The text is there, but NO link, and also WRONG expiry date is there (it's not recalculated and updated). Another weird thing is that even if I set max days to 0 (unltd) in the Config , the link does not become available too... I'm using the Download controller MOD, i.e. not the original download.php - for the rest all works fine and afaik i've been able to reset some orders of customers so far without problems - however this happens occasionally with customers having not downloaded immediately or not having succeeded immediately. Thanks in advance for any useful hints, Danny
zudan Posted February 23, 2007 Author Posted February 23, 2007 Problem not solved but half a "workaround solution" for those who might have simular problems: Of course i now realised that setting 0 in general config for max days is a general setting - indeed when setting the individual order to max-days= 0 the link became available again. So I now altered the code in the orders.php - the Modified orders.php as this is with the MOD download controller - to this: around line 55 tep_db_query("update " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " set download_maxdays = '" . tep_get_configuration_key_value('DOWNLOAD_MAX_DAYS') . "', download_count = '" . tep_get_configuration_key_value('DOWNLOAD_MAX_COUNT') . "' where orders_id = '" . (int)$oID . "'"); to tep_db_query("update " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " set download_maxdays = '0', download_count = '" . tep_get_configuration_key_value('DOWNLOAD_MAX_COUNT') . "' where orders_id = '" . (int)$oID . "'"); This sets the maxdays to zero when admin 'Updates' the order, avoiding the problem of expiry date not being updated/recalculated... The problem as to why this happens is of course still a mystery to me
Recommended Posts
Archived
This topic is now archived and is closed to further replies.