Update shipping.php

Updated according to the new requirements of the controller