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
9 views

Error 503 when preview a template email with header_template or footer_template config_path

When I try to show the preview of my newsletter template I get error 503: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or ...
0
votes
1answer
21 views

One storeview error to many redirect

We have a multistore in multilanguage and as test we set one to connect the media and static url through static.domain.com to a CDN but that is not working. But now the template for that storeview ...
0
votes
1answer
43 views

Magento 2 include template with form in CMS Block

I have been struggling trying to put a template functionally working inside a CMS Block. When I put this code inside my CMS block the template is correctly implemented {{block class="Experius\...
2
votes
3answers
29 views

How to get the pub/media Url in Email Templates Magento2

Can anyone help me how to include Pub/medial url in email templates in magento2. Thanks
3
votes
1answer
43 views

Magento 2.3.0 - Can't set to production mode

I want to put my store on production mode, I use this command on ssh: php bin/magento deploy:mode:set production And I have this output: Enabling maintenance mode Config "dev/debug/debug_logging = ...
0
votes
1answer
20 views

restore the default checkout in magento 2.3 [duplicate]

I have a disaster in the template of a checkout, it is really bad!. I never used Magento but now I need to restore the default checkout layout/html/template of a web. I no have backups of changes and ...
0
votes
1answer
26 views

How to restore the default checkout template?

I never use Magento but, a friend uses it and a dev. broke their checkout page, how I can restore the TEMPLATE of the checkout to default? I don't see a backup of any of the files, and I no have clue ...
0
votes
0answers
17 views

Adding configurable product messes up all templates in Magento 2.3

When I add a configurable product to our site the template (Porto but also the Blank) totally messes up der print screen . What can be the reason for this. When I disable them template is working ...
2
votes
0answers
23 views

Magento 2.2.5 Newsletter (/newsletter/manage/ ) management generates blank page

Newsletter (/newsletter/manage/ ) management generates blank page
0
votes
1answer
15 views

Magento 2 - Get all team members on a page

I begin in Magento development and I try to do something but I don't know how to start. I want to display on a "about us" company page all team members of a company, for example in WordPress we have ...
1
vote
0answers
24 views

template is not working magento 2 admin customer_index_edit

I am calling a js function form this file current.phtml like this <script type="text/javascript"> require([ 'jquery', 'jquery/ui'], function($){ $(document).ready(function($) { updateAjax()...
2
votes
1answer
39 views

Magento 2 - How to replace a char on item title

I have succesfully used this trick to replace dash char "-" with "br" on CATEGORY VIEW: <?php echo str_replace(' - ', '<br />', $_helper->productAttribute($_product, $_product->getName(...
0
votes
0answers
10 views

How to add custom address of customer in new order or new shipment email template?

I want to add label before the address fields.I found that currenly customer address is rendered from backend->Configuration->Customers->Customer Configuration->Address Templates. But when i edit it ...
1
vote
1answer
32 views

Magento2 get ID of product in price template default.phtml

How can I get the ID of product in Magento 2, in tempalte vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml I copied it to my theme: /app/design/frontend/xxx/ddd/...
0
votes
0answers
24 views

Custom product template Magento1.9

I'm using Magento 1.9. If I add a custom option to a product, the thumbnail images for that product no longer appear on the product view page, and you cannot view images 2,3,4, etc Only the main ...
1
vote
4answers
37 views

Help with overwriting .phtml file in Magento 2.2.7

I need some advice on how to overwrite category description 'block?' from file /app/design/frontend/Mgs/mgsblank/Magento_Catalog/templates/category/description.phtml I want to use my own module ...
0
votes
0answers
39 views

Invalid template file in Magento 2.2.7

1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'MGS_Mmegamenu::active_menu.phtml' in module: '' block's name: 'active.megamenu.script' I'...
0
votes
0answers
15 views

Magento2: How to edit customer links (navigation) [duplicate]

I am trying to find a file that is responsible for links in the client's panel. https://prnt.sc/o2nbni Some links I want to delete/hide from navigation and I wanted to add some of the other elements. ...
0
votes
0answers
13 views

Edit Order return Guest form

I like to edit order return guest form. I edited in app/design/frontend/[theme]/Magento_Sales/templates/guest/form.phtml but form settings are in vendor/magento/module-sales/Helper/Guest.php. ...
0
votes
2answers
15 views

Add a class or id when changing the language magento 2.3.1

pls help me! How to Add a class or id to html or body when changing the language magento 2
0
votes
5answers
74 views

New order email template - price decimal place

we have amended our Magento 2.1 to use and store prices with 4 decimal places. But then used some JS to trim/round-up on the frontend to 2 decimal places. However, on the email templates, the price ...
0
votes
0answers
23 views

Template Path hints not showing (correct IP + cleared cache)

I am trying to find a section of code in Magento 1.7, so I turned template path hints on. It came up, I took a screenshot, and turned it off. Then, I realized it didn't have the section I was looking ...
0
votes
0answers
23 views

Where is content of <?php echo $this->getChildHtml('methods') ?>

<?php echo $this->getChildHtml('methods') ?> please help me in finding path
1
vote
1answer
45 views

Magento 2 blocks and templates

Following are the 4 conditions. Single block and multiple templates - I think this is possible and we use it frequently while customizing Magento. Multiple blocks and single template - Never seen ...
1
vote
0answers
25 views

Customizing template in magento2

I need help in 2 questions: 1 - Put a delay for the newsletter popup to open after the uploaded website + 10s 2 - I have 2 javascript (tidio and whatshelp.io) in the footer, the ...
0
votes
1answer
21 views

How to render a block/template after page load

I need to know whether we can render a block or a phtml template file after the page load. I have added the block and template file in the layout file and it works fine. But i dont want that data to ...
0
votes
1answer
22 views

Add content of static block as new tab to product detail page

I created 3 static blocks with just a random headline for now, where I want to add html content later. the ids of the blocks are: warranty instructions certificates I then created 3 .phtml files ...
0
votes
1answer
16 views

Where block template for email is located

I found in an old Magento 1.3 installation following code in an email template: {{block type="symmetrics_impressum/impressum" value="emailfooter"}} It works and this snippet implement my imprint in ...
0
votes
3answers
35 views

Layout - Pass variables from parent to child

How can I access variables defined in the parent template inside a child template? Example -> I added a new block with name product.info.grouped.news_flag as child of the block with name product.info....
0
votes
0answers
12 views

Magento2 In order email template display tax with 0% tax

In my site I have tax for product as GST (10%) which is displayed in order email template but when there are product with no tax it doesn't display GST (0%). In my email template I want to display GST(...
2
votes
2answers
71 views

Magento 2 pass data from template html to phtml file

So far I have created file MyModule/ProductAlert/view/frontend/email/stock.html - <!--@subject {{trans "Products back in stock alert"}} @--> <!--@vars { "var alertGrid|raw":"Alert Data Grid"...
0
votes
1answer
22 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/...
0
votes
1answer
13 views

Where body tag styles are defined in Magento 1.9

I have spent several hours trying to figure out this. The fact is that I have a site that has a BODY tag with certain classes for style. I need to change those classes, but I have not find where are ...
1
vote
1answer
161 views

Magento 2 - Override Swatches renderer.phtml

I would like to override file : app/code/Magento/Swatches/view/frontend/templates/product/layered/renderer.phtml In my own theme : app/design/frontend/[VendorName]/[theme]/Magento_Swatches/...
0
votes
1answer
17 views

Magento 1.9 template file calling from base and not from my custom theme

In Magento 1.9 I have created my custom theme. Also, I have created one new module in the 'local' code pool. Everything workes fine but the template files are loading from the base like frontend/...
0
votes
1answer
31 views

How to convert template variables to custom data in magento 2

I have configured a back-end screen where I will enter a string as {{price}} for guest user. click here {{sign_up}}. So after I fetch the field value I want to dynamically replace the {{price}} ...
1
vote
1answer
38 views

KnockoutJS Which Model does the Minicart use?

So, i'm very new when it comes to using KnockoutJS but i've been doing some reading around it and to my knowledge each template file has its own corresponding model. However, as i'm looking through ...
0
votes
1answer
18 views

How array set in email.html file

i make custom mail template. my template variables are $TemplateParameter=[ 'customerName'=>$getOrderParams['customerName'], 'orderItems'=>$getOrderParams['productinfo'] ...
0
votes
1answer
37 views

Magento 2 Error filtering template?

After installed module we are getting one error message called "Error filtering template: You cannot define a correlation name 'stock' more than once" Mentioned with below code. Can anyone ...
0
votes
1answer
93 views

How to use different page layouts depends on base layout specified?

I have to use different page layouts (<page>) depends on base layout (<layout>) specified for a product. For example, if I select a layout in product's 'Design' menu with the name ...
1
vote
1answer
98 views

Magento 2 - Override template files in module

What is the correct way to override a template file ? I need to display custom text in place of In Stock and Price on the product page. I want to override the template - Magento_Catalog/view/...
1
vote
2answers
99 views

Adding contents to default customer sign up / create account page - Magento 2

I would like to add a banner image and some contents to default create customer account page at www.domain.com/customer/account/create/, how do i do it? Or Can I add a CMS Page or static block to it?
1
vote
1answer
138 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
1answer
17 views

Incorrect behavior when sending email with use a block inside a template

When developing the module I encountered the following problem: inside the my controller (class Index extends \Magento\Framework\App\Action\Action) there is a method that calls a method to send email ...
2
votes
2answers
57 views

Best way to change block´s template?

I've been studing for the Magento certification and I came across a question in the swiftotter practice exam that said: Can someone explain me why the answer I chose is incorrect? I thought the way ...
3
votes
1answer
51 views

Is it possible to append a block to the footer in admin dashboard?

I'm trying to append a block to the footer but only on the dashboard page i.e. <footer> [New Template] [Core Content] </footer> How can I achieve this? I've tried a layout file with the ...
2
votes
2answers
284 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
0answers
13 views

How to add template for particular field which is present in admin grid in magento 2

How to add template for particular field which is present in magento 2 Grid.php $this->addColumn( 'expiry_link', [ 'header' => __('test'), 'type' =&...
2
votes
1answer
31 views

Magento does not show template

I can't figure out why magento is not loading my template: The template is located at app/design/frontend/base/default/template/fekete/Newsletter2Go/customer/account/dashboard/info.phtml I double ...
4
votes
3answers
585 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\...