Hi, Does someone could help me on this small change. I would like when there is an ad renewal, the "date added" in the listing change for today. I think the function is updateorder in order.php
I would say alter the Listings -> setExpiration. Find this: $sSQL="UPDATE ".PREFIX."listings SET expiration='".$expiration ." ". $time ."' WHERE "; Replace with: Code: if($renewal) { $sSQL="UPDATE ".PREFIX."listings SET dateadded = '". date("Y-m-d H:i:s") ."', expiration='".$expiration ." ". $time ."' WHERE "; } else { $sSQL="UPDATE ".PREFIX."listings SET expiration='".$expiration ." ". $time ."' WHERE "; } This is untested but should point you in the right direction.