Skip to main content

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
0 answers
18 views

How to create a custom form template from admin panel?

I had used web-forms extension which was a very good solution but my main problem is it is only allowing to create 10 fields whereas my form contains 18 fields... please provide a solution for this... ...
Eyelash Technologies's user avatar
0 votes
2 answers
32 views

magento 2.4.5 set checked default checkbox

We have the following module in the vendor extending html vendor/GB/module-payment view/frontend/requirejs-config.js const config = { config: { mixins: { 'VndorPayment_Magento2/js/view/...
Geovan Brambilla's user avatar
0 votes
0 answers
30 views

Display Stock on product widget

I am using magento 2.4.6 with martfury theme. I want to display stock level on product that's displayed via widget. Also, I have MSI enabled for the store. I am using the below code to display the ...
Yukti Dogra's user avatar
0 votes
1 answer
47 views

error filtering templat: Template file 'header.html' is not found in mail in magento 2.4.6

Send invoice email to custom mail address in magento 2 but create custom email template but face this issue in magento 2.4.6 app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template....
Ravindrasinh Zala's user avatar
0 votes
1 answer
57 views

Magento2: How to update/change Welcome/Subscription email?

Where I can change my welcome email or subscription email? And also I need to translate them to different languages. Maybe you can send tutorials how to do that.
Veronika Petkeviča's user avatar
0 votes
1 answer
114 views

How to render default Magento registration form in popup?

I have a button "Registration for dealer" on customer/account/create/ page that outputs a popup. My goal is to render in the popup the default customer registration form that's fully ...
Dramorian's user avatar
0 votes
1 answer
37 views

return special price to blank value

I am trying to return the special price that some products have to the value that they had by default "blank value" or eliminating the value that these have, I want to do it loading template ...
Erick Vernaza's user avatar
0 votes
0 answers
57 views

Laminas Uncaught exception

I am facing this issue: Uncaught exception 'Laminas\View\Exception\RuntimeException' with message 'Laminas\View\Renderer\PhpRenderer::render: Unable to render template "error"; resolver ...
Rana Zain's user avatar
  • 678
0 votes
2 answers
647 views

Minicart: failed to load template

I'm using a custom template and having an issue with the minicart rendering. The minicart pop-up renders, but does not gather any data with 2 errors in the console. So the popup does open when you ...
BroodjeBE's user avatar
1 vote
2 answers
404 views

Insert a custom block into the $block->getChildHtml('customer.form.register.extra') placeholder in register.phtml

I want to insert a custom block into the $block->getChildHtml('customer.form.register.extra') placeholder in the customer registration form - called in the Magento_Customer::form/register.phtml ...
David Lightman's user avatar
0 votes
1 answer
39 views

What are the security risks associated with a Magento 2

What are the security risks associated with a Magento 2 website, and how can you mitigate them?
Noor Mohamed's user avatar
2 votes
1 answer
183 views

Magento 2 community edition

What are the key differences between Magento 2 Community Edition and Magento 2 Enterprise Edition, and which one is the best fit for your business needs?
user avatar
1 vote
1 answer
75 views

INSTALLATION ENCOUNTER "WHITE SCREEN OF DEATH"

Why do some Magento 2 installations encounter "white screen of death" errors, where the site appears blank with no error messages displayed?strong text
Ansari's user avatar
  • 437
4 votes
1 answer
70 views

causing error and conflicts with modifications

How can I troubleshoot issues with Magento 2 customizations and modifications that are causing errors or conflicts so please s0lve the error
Noor Mohamed's user avatar
2 votes
2 answers
455 views

How can I enable developer mode in Magento 2? [duplicate]

How to enable developer mode function in magento2 please check the solution for me
Noor Mohamed's user avatar
0 votes
2 answers
150 views

Block that doesn't explicitly declare template?

I recently followed a tutorial to add a custom fee to the checkout summary of my Magento store and after getting everything working, I realized that the block I created didn't need to have an ...
A. Andersen's user avatar
0 votes
2 answers
120 views

attribute on category page don´t show in second store view

I show a few attributes in my categories(list view) on my default store view and that is working well. Magento ver. 2.4.3 Now I created a second store view but unfortunately the attributes didn´t show ...
guest123's user avatar
0 votes
1 answer
245 views

The way to overwrite list.phtml

A bit new to Magento but need to do next thing: Hierarchial catalog(HC) [Category > Subcategory('s) > Products] I found on the web that i can rewrite app/design/frontend/Vendor/theme/...
Mykola Kikets's user avatar
0 votes
1 answer
121 views

how to pass javascript variable to php in template

I am creating admin form using template I have multiple select dropdown. I want to filter dropdown based on the value of other but problem is how i can assign the javascript value to php variable so ...
Syed Hassan Zamir's user avatar
0 votes
2 answers
101 views

Unable to display product name in catalog_product_view.xml

I am new at Magento, I would like to render the product name to catalog_product_view.xml (product page) from a custom phtml but it didn't work. May I know where did I go wrong? Thanks! app/code/...
hill2011's user avatar
1 vote
2 answers
38 views

Custom Page Module with existing theme template?

Is there a way to use a template from a third-party theme, that is already installed, with a newly created custom page module?
A. Andersen's user avatar
2 votes
0 answers
217 views

Getting value of text field in controller?

Magento 2.3 I added a new text field to review.phtml, it looks like that: <input type="text" id="tel" name="pptel" /> Now in my controller I am trying to get that ...
user4095519's user avatar
1 vote
0 answers
39 views

Disallow Comma Validation Rules

I am using this mixin for the custom validation rules in the below template for the first and last name Template: /vendor/magento/module-customer/view/frontend/templates/widget/name.phtml require js :...
Rana Zain's user avatar
  • 678
1 vote
1 answer
581 views

Pages are scrollable after reaching a footer

Just noticed that Responsive Web Design doesn't work correctly for a desktop version of website. After reaching a footer with page scrolling, pages of website can be scrolled far further (just ...
slavikusq75's user avatar
1 vote
2 answers
182 views

how to pass js window varibles from templates to template files in magento? I want to get system config values in the web folder

I want to pass js window variables from view/frontend/templates/form.phtml to view /web/template/shipping-information.html and view/web/js/shipping-information.js How can I do it? it is because I want ...
Mohmad Ashik M A's user avatar
0 votes
1 answer
805 views

Best Way To Set / Override uiComponent Template Via Layout XML or Otherwise?

I'm trying to override the template used by vendor/magento/module-checkout/view/frontend/web/js/view/summary/item/details/thumbnail.js:13 return Component.extend({ defaults: { ...
Kevin Chavez's user avatar
1 vote
1 answer
268 views

Magento 2: performance issue with Magento\Framework\View\TemplateEngine\Php::render

I have enabled the new relic log to check the performance of the Magento 2 website. On home page I am rendering 5 blocks with 5 template files. In new relic logs, it shows homepage takes time to ...
Niraj Patel's user avatar
0 votes
1 answer
672 views

change jsLayout html template

How can i change the jslayout html template to be phtml so i can call other blocks in it? first i have requirejs-config.js below code var config = { "map": { "*": { ...
Bayzel's user avatar
  • 187
0 votes
1 answer
318 views

How to get media path from magento backend

I want to get the media URL from the Magento backend template. Can anyone guide me to sort out this?
Jaisa's user avatar
  • 2,626
0 votes
2 answers
553 views

Double curly brace problem

I created a frontend template page, my page has embedded some javascript. For some lines, I need to use the double curly brace. one of the line <a class='media' data-media-index='{{> ...
Paul Fan's user avatar
  • 658
0 votes
1 answer
152 views

How do I hide "Search engine Optimization" from product add/edit admin panel?

As the question states, im simply trying to hide the "Search Engine Optimization" from the admin panel, how would I do that? Im not sure whether there's somewhere where id be able to place ...
Zyzzx's user avatar
  • 81
0 votes
1 answer
778 views

Magento 2 layout XML reference block added in CMS page

I have a CMS page, and in certain place it references a custom block from my module as such: {{block class="My\Notification\Block\NotificationForm" name="notification.form" ...
Jan Zikmund's user avatar
0 votes
4 answers
429 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,611
0 votes
1 answer
116 views

Can't add block below add to cart button

I am new to Magento and would like to add a custom block underneath the 'Add to Cart' button. Here is my catalog_product_view.xml file: <?xml version="1.0"?> <page xmlns:xsi="...
Peter Stuart's user avatar
0 votes
1 answer
2k views

Magento2 : Call phtml file to other phtml file

I want to add new phtml file to existed phtml file. It is working fine, but I want to know reference block and class names. My code in layout file <page xmlns:xsi="http://www.w3.org/2001/...
User0434's user avatar
  • 1,155
0 votes
1 answer
509 views

Magento 2: Problem overriding product/view/form.phtml in custom module

I tried using this in my catalog_product_view.xml: <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -->...
mechanic's user avatar
  • 440
0 votes
0 answers
129 views

Access initialize function's variable in other function

I have a JS file where I am getting .phtml variable dates like: initialize: function (config) { dates = config.dates; this.test(); } test: function(){ //get variable dates } another: ...
Pawan's user avatar
  • 5,906
0 votes
0 answers
62 views

How to add color name before product name in mini-cart and right sidebar of checkout page in Magento 2

I want to show the color with the product name in Minicart and Checkout Page in Magento 2. So i have got the color value by <!-- ko if: options.length --> <!-- ko foreach: { ...
Prits's user avatar
  • 625
0 votes
4 answers
253 views

Override custom extension adminhtml template in my module

I want to over ride following tramplete: app/code/Mageplaza/EditOrder/view/adminhtml/templates/order/edit/shipping/method/list.phtml Declared in : app/code/Mageplaza/EditOrder/view/adminhtml/layout/...
Hassan Ali Shahzad's user avatar
0 votes
1 answer
20 views

Override skip.phtml results on langage switcher disappear

I'm trying to override template skip.phtml file (in the top of Magento) with this layout default.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
tarek fellah's user avatar
0 votes
1 answer
294 views

override adminhtml template

I would like to overide the following admin template src/vendor/magento/module-sales/view/adminhtml/templates/order/view/history.phtml This is what I made module.xml <config xmlns:xsi="http://...
Claims's user avatar
  • 1,211
0 votes
1 answer
130 views

override html/skip.phtml template's block file

In layout default.xml, i found this <block class="Magento\Framework\View\Element\Template" name="skip_to_content" template="Magento_Theme::html/skip.phtml"> So ...
tarek fellah's user avatar
0 votes
1 answer
107 views

if condition question in Magento for email template

I need help to verify my if statement, I am not sure in Magento of using "$block->escapeHtml($label)" in if condition is correct or not does my if statement correct for only showing "...
Paul Fan's user avatar
  • 658
0 votes
0 answers
90 views

How to overwrite the files in the "template" folder that contains the html files

How to overwrite a file in the "template" folder that contains html files? I'm not talking about the "templates" folder that contains the phtml files. I tried overwriting the same ...
lucas's user avatar
  • 309
1 vote
4 answers
1k views

How to pass variable to $block->getChildHtml('form_additional_info')

I need to pass the customer object from the edit.phtml template to a child template: I have this but it does not work: <?php $block->getChildBlock('form_additional_info')->setData('customer', ...
jstuardo's user avatar
  • 609
0 votes
2 answers
330 views

I want to call phtml file from Magento_Theme to static block. but it is giving some error

PHTML file is located in Magento_Theme/templates/html/breadcrumbs.phtml. I tried with the code {{block class="Magento\Framework\View\Element\Template" template="Magento_Theme::html\...
vinaysirige's user avatar
1 vote
1 answer
356 views

Magento 2 Invoice Emails: Tax row alignment in subtotals

So I wanted to change the layout of my invoice emails, especially order totals. I wanted labels to align right. I copied my totals.phtml file in my theme and added my styling. <?php /** * ...
Shivani Singh's user avatar
0 votes
1 answer
1k views

Adding Meta tags to the head of a CMS page Magento 2.3.6

In order to add the following meta tags to the home page I have done the followings: <meta property="og:image" content="https://example.com/media/wysiwyg/abc.png"> <meta ...
Reshad Zazai's user avatar
1 vote
1 answer
155 views

Calling the welcome message in different template?

Is it possible to call the default welcome message when user is logged in ("Welcome, customer.fullname") in a different .phtml? I'd need this message in my Magento_Customer/templates/account/...
zlep's user avatar
  • 168
1 vote
2 answers
2k views

How to add Custom Step on Checkout and move Shipping methods in that step In Magento 2.3.5

In this i want one custom checkout step can having only shipping methods inside the step means shipping address and Shipping methods are on different steps on checkout page. So, Please can anyone have ...
Deep Shah's user avatar
  • 567

1
2 3 4 5
29