Questions tagged [template-override]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

Magento 2 How to override configurable.phml file in custom module

I have tried below way to override configurable.phtml file /app/code/Vendor/Extension/view/frontend/layout/catalog_product_view_type_configurable.xml https://i.imgur.com/gpII3Ct.png But it did not ...
Keval Chauhan's user avatar
0 votes
1 answer
21 views

Condition for moving elements

I have a problem with this one so I'm editing the catalog_product_view.xml and I'm trying to move product details before add to cart button. So I have a configurable product and a simple product and I ...
Shenhuh's user avatar
  • 11
0 votes
1 answer
22 views

Override bulk.js and bulk.phtml vendor files on my app/code

Do you see anything obviously wrong here? I am trying to override vendor/magento/module-configurable-product/view/adminhtml/templates/catalog/product/edit/attribute/steps/bulk.phtml vendor/magento/...
Juan's user avatar
  • 1
0 votes
2 answers
34 views

Override phtml from third party extension in theme folder

I have an extension installed via composer and wish to make some small changes so it fits better within my theme. The file is located at: /vendor/<Namespace>/<Module>/view/frontend/...
AndyS's user avatar
  • 33
0 votes
1 answer
77 views

add progress bar in minicart magento 2

I'm new to Magento, I have this module which adds progress bar in cart summary https://github.com/christophermallory/magento2-freeshipping-progress-bar, I want to add it to minicart
Khaled Yahya's user avatar
0 votes
1 answer
131 views

How can i add custom attribute to sales_order_view.xml under the SKU

I have already created app/code/XXX/XXX/view/adminhtml/layout/sales_order_view.xml file. I want to add created custom attribute for GTIN/EAN under the SKU attribute in items ordered list.
Efex's user avatar
  • 73
1 vote
1 answer
453 views

How to override carousel.phtml file in Magento 2 custom theme

I want to override below Page builder Carousel phtml file in my custom theme. Please provide magento standard way for this. vendor/magento/module-page-builder/view/frontend/templates/catalog/product/...
Jitendra Patel's user avatar
0 votes
1 answer
384 views

Overriding /public_html/vendor/magento/module-customer/view/adminhtml/templates/tab/view/personal_info.phtml

I'm with a need to override admin area template /public_html/vendor/magento/module-customer/view/adminhtml/templates/tab/view/personal_info.phtml I tried doing that with following.Just for testing ...
Indunil Ramadasa's user avatar
0 votes
4 answers
302 views

How to overide a html template

I want to override vendor/magento/module-tax/view/frontend/web/template/checkout/shipping_method/price.html So I have copied the file to my custom theme to: app/design/frontend/Company/Theme/...
Goose84's user avatar
  • 2,539
1 vote
1 answer
255 views

Override product description

I need to add some things to the Magento 2 description. I can't do it via admin area since the data needs to be generated procedurally, so I tried an override, but the closest I've got is this I need ...
Alberto Privado's user avatar
0 votes
1 answer
545 views

How to override module-ui/view/frontend/web/template/messages.html in Magento2

In Magento2, how to override the following template? /vendor/magento/module-ui/view/frontend/web/template/messages.html I found the answer Better Checkout Error Message Magento 2 and I copied it to ...
user_'s user avatar
  • 105
1 vote
1 answer
588 views

Override phtml file recently viewed products in magento 2

I want to override the phtml viewed_list.phtml file but I have not had any results, the file comes from the vendor folder: /vendor/magento/module-reports/view/frontend/templates/widget/viewed/content/...
Diego Castro's user avatar
1 vote
1 answer
719 views

How to override .phtml files in Magento 2.4

I want to customize the Invoice page, so I override .phtml file in: vendor\magento\module-sales\view\adminhtml\templates\order\invoice\create\items.phtml I tried to create many files but failed: ...
Steven Nguyen's user avatar
0 votes
1 answer
235 views

How to override list.phtml for searcing in custom module?

I want to override the product div in list.phtml for both search view and category view i have replaced list.phtml by this way catalog_category_view.xml <?xml version="1.0"?> <...
Magento2-learner's user avatar
0 votes
1 answer
945 views

How to override Magento_CatalogWidget::product/widget/content/grid.phtml widget template in custom Module?

I want to override grid.phtml in custome module without using preference.I have tried this link but it does not work for me. widget.xml <?xml version="1.0" encoding="UTF-8"?&...
Mehran's user avatar
  • 472
0 votes
1 answer
32 views

Magento 2.4.2: How to add Canadian flag and a phrase in the footer?

Somewhere in the footer we need a small Canada flag and the phrase "We ship to Canada". We are doing this because we decided to ship our products to Canada too besides within USA. Please ...
CodeForGood's user avatar
0 votes
1 answer
243 views

Magento 2 Override admin phtml

I've made a new module and I would like to override the vendor/magento/module-config/view/adminhtml/templates/system/config/form/field/array.phtml I've copied the file in app/code/myVendor/myModule/...
Florin Aqir's user avatar
0 votes
1 answer
18 views

Breadcrum issue after embeding advance search on home page:magento2

I have moved the advance search form on home page with the custom template as: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../....
Shoaib Fareed's user avatar
0 votes
1 answer
293 views

Override Extension (/vendor) in app/frontend

I'm trying to override a layout .phtml file for a 3rd party extension which is located in /var/vendor_name/extension. As I understand, I should not be modifying the /vendor files, but this extension ...
mkutev's user avatar
  • 3
1 vote
0 answers
35 views

Magento 2 - How to override knockoutjs template which is already overriden from a third party module?

I try to override the knockoutjs template vendor\amasty\module-single-step-checkout\view\frontend\web\template\checkout\summary\item\details.html from my own Theme. The module amasty\module-single-...
Black's user avatar
  • 3,100
2 votes
1 answer
189 views

Magento 2 : Not able to override Magento_Payment::info/default.phtml

I have tried to override this template file by overriding the whole block where its called i.e Magento\Payment\Block\Info But i am not able to override this file Magento_Payment::info/default.phtml Is ...
devhs's user avatar
  • 477
0 votes
2 answers
101 views

Create a new admin theme and make an override of sales module template

I tried to create an admin theme and make an override to sales module template file but this don't work, i followed those tutorials : create admin theme and Apply custom admin theme in app/design/...
tarek fellah's user avatar
1 vote
1 answer
577 views

Override Magento_Sales::email/items/shipment/default.phtml Template (Magento 2)

I am trying to override Magento_Sales::email/items/shipment/default.phtml Here is my layout file app/code/Mod/Sales/view/frontend/layout/sales_email_order_shipment_renderers.xml <?xml version="...
devhs's user avatar
  • 477
2 votes
2 answers
876 views

How to overide "Magento_Sales::email/items.phtml" in custom module?

I am trying to override core template file Magento_Sales::email/items.phtml in custom module, but not sure how to start Any thoughts please. i have created a layout file in view/frontend/layout/...
dev php's user avatar
  • 45
0 votes
1 answer
758 views

Customise message.phtml pop up message magento 2

I want to change the message.phtml template file which renders a pop up message below on product page. Im not sure where in the KO.js binding message html to change "My new message" Here is ...
kb kb's user avatar
  • 35
0 votes
1 answer
294 views

Magento 2 layout and template overload in child theme not working

Good Afternoon All, I am having trouble with overloading a template for Magento 2 "module-catalog" module. My overload in the child theme would be the 4th overload in the chain and it is not ...
Baber's user avatar
  • 178
0 votes
1 answer
50 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?
CodeForGood's user avatar
2 votes
2 answers
2k 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 ...
CodeForGood's user avatar
0 votes
1 answer
689 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, $...
User 69's user avatar
  • 135
0 votes
2 answers
484 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 ...
user59268's user avatar
  • 103
0 votes
1 answer
844 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/...
Erica S.'s user avatar
0 votes
1 answer
1k 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. ...
jithin 's user avatar
0 votes
1 answer
31 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?
jithin 's user avatar
0 votes
1 answer
541 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 ...
Kurano's user avatar
  • 23
0 votes
2 answers
784 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?
Mikel's user avatar
  • 109
1 vote
1 answer
718 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: ...
Sagar Parikh's user avatar
2 votes
1 answer
41 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/...
Head Way's user avatar
1 vote
0 answers
335 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 ...
Piotr Mucha's user avatar
0 votes
2 answers
1k 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 ...
vinaysirige's user avatar
0 votes
1 answer
1k 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/...
Frenger's user avatar
2 votes
1 answer
1k 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 ...
Dev's user avatar
  • 35
0 votes
1 answer
424 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" ...
mysterious's user avatar
0 votes
0 answers
60 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 ...
Arnie's user avatar
  • 942
1 vote
2 answers
743 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 ...
Juliano Vargas's user avatar
0 votes
1 answer
33 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.
Yogita's user avatar
  • 784
0 votes
0 answers
42 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/...
Harshith S's user avatar
0 votes
1 answer
131 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/...
Harshith S's user avatar
0 votes
1 answer
86 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, ...
Bruntha Nivas's user avatar
0 votes
2 answers
443 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/...
MagePsycho's user avatar
  • 4,692
2 votes
3 answers
518 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 not ...
tarek fellah's user avatar