shopping cart back-end function for search page

Add a functional button in search page to add item in the shopping cart.