iOS code for SHARECART functionality