Student or Learner
"I won't be in town at that time. It's a pity (in case you wanted to pop in)."
Did I use 'in case' and 'wanted' after it correctly?
They're OK but I would change the order of the sentence.
"In case you wanted to pop in, I need to let you know that I won't be in town at that time. What a shame."
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.