Hello, @gwiezdnewrota,
You can use this code on any of your sites on which you are using the XStore theme and facing the same issue.
Regards 8Themes Team.