Questions tagged [template]

The folder that contains all the `phtml` files used to display at frontend or backend.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Apply special template for product page

I would like to apply special template file following an admin product configuration, for example, I have a dropdown product configuration list named layout which have two options: total and normal, ...
0
votes
2answers
17 views

Where is the template file for the front-end grid view in Magento 2.3?

I need to overwrite the front-end grid view but cannot find the correct file. This is the grid view that appears as a front end option for categories and search - not the admin grid.
4
votes
3answers
4k views

Invalid template file in Magento 2.3

I have been reading the forum but I can't find any solution to solve my case. I have a custom module where I'm getting the error: 1 exception(s): Exception #0 (Magento\Framework\Exception\...
3
votes
1answer
322 views

How Do I Add Styling Or Groupings To Widget Parameters?

I have a custom widget with various parameters. Is it possible to style or add grouping, headings, fieldsets, basically anything to give some space and separation to the numerous parameters? My ...
0
votes
1answer
24 views

Use different phtml for single product

I understand this is probably very simple, but I have thoroughly confused myself and am hoping someone has a few minutes to provide clarity. I would like to apply some very, very custom stuff to a ...
0
votes
3answers
709 views

Magento 2 : cashondelivery.phtml file custom code not show

First I try to modify the code directly of core file. vendor\magento\module-offline-payments\view\frontend\templates\form\cashondelivery.phtml I added testing code like this. <?php $instructions ...
7
votes
2answers
9k views

How to add Qty in add to cart form on Product Listings Page in Magento 2

How can you add a Qty filed to the the add to cart form on the category listings page. With the Luma theme the user only has the option to add one product to cart at a time from the product listings ...
0
votes
1answer
11 views

Is there a way not to loose input form data on php redirect

I have a webpage with a form when I submit that page I go into a controller...he check the data sent $data = $this->getRequest()->getPostValue(); And if one of the data isn't what I am expecting,...
0
votes
2answers
1k views

Magento2: How to add a small Icon image on product image in product view page in magento 2

I wish to add small icon image on the product image in magento 2. From which template the product image is loaded in product view page. Please provide me a solution.
36
votes
3answers
13k views

Magento 2: template security: which method to use?

I'm aware Magento 2 has several methods available to secure the template: $block->escapeHtml() $block->escapeQuote() $block->escapeUrl() $block->escapeXssInUrl() But I'm wondering when ...
0
votes
0answers
28 views

The block is not displaying after loading the page

Please help solve this puzzle. I'm created after plugin, after load category widget. The collection of items must be used in the js. The idea is to simply intercept the collection in the plugin, load ...
0
votes
1answer
30 views

How do I get the language code in the product price amount template file?

How can I get the current language code in Magento_Catalog::product/price/amount/default.phtml?
0
votes
0answers
35 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 ...
2
votes
0answers
239 views

Magento 2.1.0.0 new order email template preview and save 404 not found issue

My website is at magento 2.1.0 version when i load new order email template, it shows below error: Error: The template did not load. Please review the log for details. To correct the error I ...
1
vote
1answer
36 views

Change parts of email template

I want to change the email template "New Order (Magento/luma)". I want to remove the SKU column from order items table, and I think the following line will send me to the file where I must ...
0
votes
0answers
12 views

Send Attachment within a template mail Magento 1.9

I got this error "Invalid method Mage_Core_Model_Email_Template_Mailer::createAttachment(Array ( [0] => my content ) )" while trying to send an attachment within an email an here is my ...
1
vote
2answers
736 views

Why data bind template is not working on 2.2 or greater?

I was studying about Knockout.js and how it works with Magento 2. Then I reached the topic: template integration, in the first sample of it I'm presented to this notation: <div data-bind="...
1
vote
0answers
47 views

Call to a member function getLoadedProductCollection() on boolean Search Query issue

im trying to separate the search query text from result.phtml and place it in its own template. So basically ill have the product collection in results.phtml, and then the search query text "your ...
19
votes
14answers
23k views

Magento2 : Change order of Tabs on Product Page

I'm trying to change the order of the tabs on the product page in Magento 2. Default is Details|More Information|Reviews. I tried: Vendor/theme/Magento_Catalog/layout/catalog_product_view.xml <...
0
votes
1answer
24 views

Is it officially reccomened to add a totally new phtml template file in a theme, one which doesn't override an existing template?

Magento's documentation (https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/templates/template-walkthrough.html#template-customization-walkthrough) describes how to customise an existing ...
1
vote
1answer
474 views

Problem with rendering address field on profile page

I have a problem like in attachment. I don't know why address isn't rendering. Please help me how to debug this.
0
votes
1answer
219 views

Magento 2 Knockout bind on ajax response

I am going crazy with knockout on Magento 2, I am new to knockout and I cannot understand what I am doing wrong. I know there are some related questions posted there but each one is different from ...
0
votes
0answers
25 views

Make product data tabs collapsed by default

I want all product data tabs on the product details page to be collapsed by default. I edited this line in app/design/frontend/<Namespace>/<theme>/Magento_Catalog/templates/product/view/...
3
votes
2answers
115 views

Magento 2 - How does getShippingMethodTitle know the method title in module-tax/view/frontend/web/js/view/checkout/cart/totals/shipping.js

I try to understand knockoutjs and requirejs more but I fail to understand the following case. In checkout the shipping method title is showing in the summary This is the template: vendor/magento/...
3
votes
2answers
4k views

Add placeholder and remove all labels in Magento 2 Checkout

Searched a lot but didn't found anything removing the Lables like "First Name, Last Name, City, Address, Email, Phone etc" Add Placeholders in all "shipping fields" and "sign In" places. After ...
2
votes
1answer
1k views

Add button to admin grid magento 2

How can I add a button in the Adminhtml Reports>>Sales>>Orders
7
votes
4answers
37k views

“Invalid template file” error in Magento 2 with a custom module [closed]

I'm having issues with Magento 2 missing out my header and footer, which are custom modules setup in my custom theme. They display correctly locally, on a MAMP set-up. However, on my staging server, I ...
0
votes
0answers
18 views

Alterate final_price rendering

I want to alterate under specefic conditions the final_price in the front product view (not changing his value but only adding some text). Ex : Instead of printing 5€ , I will print 5€ HT In order to ...
0
votes
0answers
20 views

Magento 2 - Load html of a template from PHP class

I have a php class where I am generating some HTML and returning it. private function _generateNote($expressRule) { if ($expressRule["hasNotAllowedCategories"]) { $note = "...
5
votes
5answers
4k views

How to remove “Help us keep magento healthy” in Magento 2.1

Can anybody tell me where they moved this? Changed the footer.phtml in /html/vendor/magento/module-theme/view/frontend/templates/html But it is still being shown, so it must be somewhere else.
0
votes
2answers
184 views

Magento admin page not rendering anything

I'm learning how to create new pages for my custom extension in magento2 admin. However when i go to that admin page it's blank. I've got a controller: <?php namespace ZET3K\Tracker\Controller\...
1
vote
0answers
77 views

Magento 2 Error filtering template: Warning: filesize ()

Error filtering template: Warning: filesize(): stat failed for http://localhost/jaipurbkp/pub/media/catalog/product/s/c/screen_shot_2020-10-03_at_2.37.35_pm.png in C:\wamp64\www\jdrbkp\vendor\magento\...
0
votes
1answer
12 views

Magento 1 : Issue with Template override

How to override this file in magento 1 using module ? app/design/adminhtml/default/default/template/sales/order/create/items/grid.phtml
1
vote
1answer
29 views

Magento 1 - How to override phtml file in module?

I am using magento 1 I am trying to override the below phtml file in module app/design/adminhtml/default/default/template/sales/order/create/items/grid.phtml Any thoughts ? Thanks
0
votes
1answer
169 views

Magento 2 - override knockoutjs template located in base folder

I need to change the value of the maxinput field in the knockoutjs template vendor\magento\module-ui\view\base\web\templates\form\element\input.html so I have to replace the template with my own ...
1
vote
1answer
22 views

Override Block & Template File in Magento 1

What is the best way to override the below files theme/module & how one can override it ? app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items/Grid.php app/design/adminhtml/default/default/...
3
votes
2answers
2k views

What is the meaning of triple curly braces {{{ }}} in phtml template files? When and how do we use them?

There is a phtml template file in one of the third party Magento 2 extension which has triple curly braces {{{ }}} in it. When is this notation used, What does it represent?
0
votes
1answer
13 views

several times a day my pages come in written lines, clearing the cache helps, what goes wrong

several times a day my pages come in written lines, clearing the cache helps, what goes wrong magento 2.2.5
4
votes
2answers
7k views

Change price template only for product view page?

as far as I understand this the price is rendered in: /app/code/Magento/Catalog/view/base/templates/product/price/amount/default.phtml But as I change it, it gets, of course, changed for every part ...
0
votes
1answer
22 views

Override phtml template file

Simple issue : This is one of magento template core file : vendor/magento/module-sales/view/adminhtml/templates/order/totals.phtml How can I overide it ? I tried to create this one but it failed app/...
3
votes
3answers
197 views

Magento 2: How to get custom attribute value in new template

I need to get the value of a custom attribute on the product page, as I want to display different sizechart per attribute. For this reason, I have created the following .phtml to get the value of the ...
7
votes
2answers
4k views

How to debug in ko template in magento 2?

Here is the code in \vendor\magento\module-checkout\view\frontend\web\template\shipping-address\custom-method-item-template.html <tbody collapsible="as: '$collapsible_' + method.method_code"> &...
14
votes
4answers
19k views

Magento 2 - Override base view file

I'm currently developing a Magento 2.0 theme. I'm trying to change the behaviour of the Tax class on the frontend. The file I need to change is located in app/Code/Magento/Tax/view/base/templates/...
0
votes
1answer
42 views

How to override steps-wizard template file in magento 2.3?

How to override the steps-wizard template file in Magento 2.3? I need to override Magento_ConfigurableProduct::catalog/product/edit/attribute/steps/select_attributes.phtml. above file define in vendor/...
13
votes
7answers
19k views

How to remove Company field from checkout process in Magento 2?

How to remove Company field from checkout process in Magento 2? I've been looking for the template but have not found it. Update: Is there any way to remove this field via layout or template?
3
votes
1answer
8k views

Related Products template customize

How do you change the related products template output. Instead select all I would like to add a "add to cart" button to all related products and remove checkboxes.
23
votes
6answers
40k views

Magento2: Get Media URL In Template File (Without direct Calling Object Manager )

How to Get Media URL in Template file ? All the solution i found is calling Object Manager directly. My another concern, Can you ever call object manager directly as best practice ? (because in most ...
0
votes
0answers
82 views

How to create template for WYSIWYG editor magento 2

I have problem with template in wysiwyg editor on admin page. In Catalog > Products > Content tab we have wysiwyg editor, but I'm confused were I need to create templates for selecting. It ...
25
votes
5answers
18k views

Magento 2 - How to get the extension's configuration values in the phtml files?

I'm working with Magento 2 - beta. But cannot find how to get the configuration values in the phtml files. eg: I want to get my custom modules configuration values in Magento_Catalog/templates/...
0
votes
0answers
38 views

Magento 2: Refresh a widget at regular interval

I have developed an extension to provide a widget to list featured random products on CMS pages. The requirement is to refresh this list at regular interval without caching. Is there any option to ...

1
2
3 4 5
28