Is there a way to override a .phtml file on language level?

I have 4 stores (language dependency) and i want to make some changes in the code for these different countries.

I this possible through, let say for instance:


(this does not work)


If it are just value's you should use the __('text') function and add your translation to a translation file (more info here).

If you need conditional information you can use the storemanager $this->_storeManager->getStore()->getId(); like they do here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.