How to translate "por la cara" to English?

Solution 1:

In the specific context of an explanation for an unanticipated small treat of the type described, the following might work in English.

“I bought it on impulse”

or using simpler language;

“I bought it just because I felt like it”

Don’t try to translate by word or phrase replacement.