Hi,
So for the registration form, you can edit the file "custom_fields" or "custom_fields_boostrap" (based on whether the "use bootstrap design" setting is configured in the HikaShop configuration), and add such code at the top:
<?php $this->address->cantidaddeproductos = $myvalue; ?>
For the address edition interface, you'll want to add similar code at the top of the file "show" or "form" of the view "address" based on how you configured the "address selector" setting of the HikaShop configuration.