Questions tagged [template-override]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

Magento 2: How to add a new phtml(template) to a layout file so I can use it in the head section?

I am trying to add a phtml template file to the layout file so that I can use this template in the head section to insert contents from an JS file. Please tell me what is the best way to do this?
1
vote
2answers
128 views

Magento 2: Custom module to override the logo.phtml file of the custom theme

Naming the custom module to override the logo.phtml file found at the path seen in the screenshot below a bit confusing to me as the module name is too long to decide on the naming. The vendor of the ...
0
votes
1answer
61 views

Magento 2 How I can add a div inside `product-image-container` in Magento to catalog pages

I want to add a New <div> in inside class="product-image-container" in Magento 2 I have searched and found that this class is rendered like this $productImage = $block->getImage($_product, $...
0
votes
2answers
58 views

Magento2 Overriding template with plugin for Magento\Sales\Block\Order\Invoice\Items gives error with renderer list not found

I am receiving error when I use plugin to modify Invoice Items template. Exception #0 (RuntimeException): Renderer list for block "sales.order.invoice" is not defined This seems like a weird bug, I ...
0
votes
1answer
126 views

Custom catalogsearch layout and template override not displaying custom block content [EDITED]

Edit: Could not having crontab and cron set up affect compiling the layout files and be related at all to the custom layout not loading? I have since moved all my logic out of the app/design/frontend/...
0
votes
0answers
37 views

Multistore with Luma Override as Default Theme with Child Themes for each store?

I seem to be having trouble properly setting up my frontend themes in Magento 2.3.3. We have three Magento 1.9 websites that we're migrating into a single Magento Commerce Cloud installation. I'd ...
0
votes
1answer
48 views

how to create a custom template for catalog product list

I am trying to override module-catalog-widget. I want a new template in the template field. I copied module-catalog-widget.while editing in the extended module in widget.xml no change is happening. ...
0
votes
1answer
30 views

I want to display my products in my own template

First, I am new to Magento 2. My aim is to achieve when products added in the backend I want it to show in my custom template. Can anyone suggest some methods to do it?
0
votes
1answer
67 views

Override Amasty template

New to magento, I'm trying to override vendor/Amasty/Promo/view/frontend/templates/notification.phtml called in vendor/Amasty/Promo/view/frontend/layout/default.xml So I've added the file in this ...
0
votes
2answers
117 views

How override grid.phtml Magento 2

Which referenceBlock name i should set in own xml file to override template Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml?
1
vote
1answer
160 views

Magento 2: summary.phtml override not working

I am trying to override summary.phtml file so I can change the functionality of the review button which is below product title, ex:'3 reviews' & 'add new review'. File: summary.phtml File Path: ...
2
votes
1answer
27 views

Overriding an account feature for editing email/username

I found the element that i want to remove here: vendor/magento/module-customer-custom-attributes/view/frontend/templates/customer/form/edit.phtml I've created a new edit.phtml file here: app/design/...
1
vote
0answers
58 views

Overrided template renders only after reload of page

I override core template Magento_Sales::order/view/history.phtml to add new checkbox that will allow to send sms along side emails. I added in this file: Vendor_Module::order/view/history.phtml ...
0
votes
2answers
48 views

Invalid template file for custom module

I am Creating a simple layout block and template, but it is giving error Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Test_Module::stock_left.phtml' in ...
0
votes
1answer
331 views

Overriding track.phtml in Magento2

I saw many such questions, but all answers are basically copies of the same solution with custom theme. Is it possible just to override core file vendor/magento/module-sales/view/frontend/...
2
votes
1answer
522 views

Magento 2: Override grid.phtml file from custom module

I am new to magento development can you help me how to override grid.phtml which resides in vendor\magento\module-catalog-widget\view\frontend\templates\product\widget\content\grid.phtml I need to ...
0
votes
1answer
39 views

Edit error message html : Magento 2

Where can I find HTML to add role="alert" to error messages in magento. For example, when a user provides a wrong zip code on checkout page this error message shows up. <div for="postcode" ...
0
votes
0answers
35 views

Changes made in web template do not show on frontend?

I am using Magento 2.2.3 and I am modifying a template from a custom extension. That path to the template is app/code/Foo/Osc/view/frontend/web/template/container/address/billing/create.html I am ...
1
vote
2answers
93 views

Magento 2 setTemplate and add content to phtml template

How to add bare HTML to a block e.g: $block = $result->getLayout()->getBlock('category.description'); $block->setTemplate('Vendor_Module::myTemplate/blank.phtml') ->toHtml('<p>My ...
0
votes
1answer
29 views

How can I override phtml and xml files overrided by custom theme Magento2.3

How can I override phtml, XML and CSS files that are overridden or created in custom theme.
0
votes
0answers
35 views

Overriding template not working in dev branch

I have overridden a file vendor/magento/module-customer-custom-attributes/view/frontend/templates/customer/address/edit.phtml and placed the replaced file in: app/design/frontend/ParentTheme/...
0
votes
1answer
64 views

Can't override phtml template, displays blank page

I have override vendor/magento/module-customer-custom-attributes/view/frontend/templates/customer/address/edit.phtml and placed the replaced file in: app/design/frontend/ParentTheme/childTheme/...
0
votes
1answer
35 views

cashondelivery.html Override template is not working

I put some code in below file. File path: vendor/magento/module-offline-payments/view/frontend/web/template/payment/cashondelivery.html It is working fine in this file. The same code put here, ...
0
votes
2answers
89 views

<arguments> approach not overriding the template file

I wanted to override vendor/magento/module-sales/view/adminhtml/templates/items/column/name.phtml template. And created new layout xml update as: File: app/code/MagePsycho/CustomInvoice/view/...
1
vote
2answers
92 views

Override template edit account didn't work on front end

I like to override magento/module-customer/view/frontend/templates/form/edit.phtml template, in my desktop it works but in our development server, i got this page , looks like there's inheritance ...
0
votes
2answers
109 views

Magento 2.3 How to overrride paid theme template?

I am working in magento 2.3.0 with paid theme. I want to override paid theme templates without changing theme files. So that in future if theme updates my functionality still remains. How can I do ...
1
vote
1answer
81 views

How to override or extend template and layout files for an extension downloaded by composer?

I have an extension that is downloaded through composer, there are two files i would like to update. How to I override/extend the files? what is the correct paths i need to create in app/design/...
0
votes
0answers
296 views

Magento 2.3.0 Overriding footer.phtml

I am trying to override Magento 2 footer.phtml, with my custom html footer, I have tried almost everything but still no success, I even tried the below: You can overwrite the existing templates by ...
2
votes
2answers
266 views

Extend tier_price.phtml in child theme of a custom theme Magento 2

From: /vendor/magento/module-configurable-product/view/base/templates/product/price/tier_price.phtml To: /app/design/frontend/Mgs/claue_child/Magento_Catalog/templates/product/tier_price....
0
votes
3answers
163 views

Magento 2.2 can't override default template

I am trying to override a default Magento html template, but no matter what I try, it won't work. Here are the two paths: Default Magento path: /project_folder/vendor/magento/module-ui/view/frontend/...
1
vote
2answers
164 views

Magento 2 : Custom template file is loading after refreshing the page only?

Here is my code for overriding vendor module template. when the page corresponding to this layout loads, it is fetching template file from vendor.after the refresh it is fetching from my custom module....
1
vote
3answers
708 views

Magento 2.3 customer form register template file override

I am working on Magento 2.3 version. I have create custom module for the override the register.phtml file but it is not working. I have provided some files details Kh/Registration/etc/module.xml &...