the rsProduct recordset is being filtered on a posted form element named "licence"
That means that the page that calls the atc.php page will need to post the license value using a form to it.
If it is not adding anything to the cart on page load, that is because the recordset is blank.
either there is no post with a license value being sent to the atc.php page, or the license value being sent to the atc.php page is not valid.