Вопрос

I want to add MAP in contact us page. To do this I want to override it's phtml.

How can I get it's phtml and how can I override it?

Thanks

Это было полезно?

Решение

copy below file

/vendor/magento/module-contact/view/frontend/templates/form.phtml

add this file below location

app/design/frontend/[vendor]/[Your Theme]/Magento_Contact/templates/form.phtml

after call static block

<?php echo $this->getLayout()
          ->createBlock('Magento\Cms\Block\Block')
          ->setBlockId('your_block_identifier')
          ->toHtml();

here create static block in admin and block id is 'your_block_identifier' and add map

Лицензировано под: CC-BY-SA с атрибуция
Не связан с magento.stackexchange
scroll top