Any repayment you make on your card is directed towards cash advances when you do not have any outstanding balance. If you have an outstanding balance from purchases, your repayment will also contribute to that.
Different credit card companies may have different policies, so it is best to get in touch with them to understand your repayment better.