My question involves criminal law for the state of: CA

My cousin and I were caught shoplifting at Walmart. Lost prevention sat us down in a room to sign papers and talk to police. We were banned from walmart and we got a citation with a court date on Nov 30. I regret doing what I did and I'm afraid of whats going to happen in court. Whats going to happen? Hows that trial going to run? And is there any way I can bargain with the judge to give me community service or anything to clean my record? Is it going to be like traffic court where you just plead guilty or not guilty?

Thanks in advance for any help