Done cart drop-down functionality in cart popup

Please make this quantity array as global so that we can use it everywhere required