0

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:

vendor/store/i18n/de_DE/Magento_Catalog/templates/product/list.phtml

(this does not work)

1 Answer 1

0

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 and acknowledge you have read our privacy policy.

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