Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
11 views

Add template below price info in product grid

I would like to add a new template file below price info in product grid. I found the widget used for product grid:vendor/magento/module-catalog-widget/etc/widget.xml:36 Is there any method to add a ...
0
votes
1answer
26 views

Block filter is output to category page

A block filter is output only for a specific category page. I do not know the cause. Is there something wrong with the following templates? app/design/frontend/vendor/theme/Magento_LayeredNavigation/...
2
votes
1answer
35 views

Magento 2: How to change the error/validation message in the customer login page?

I'm trying to override the error message that shows when a user inserts a wrong password/ wrong email. You did not sign in correctly or your account is temporarily disabled. Where and how i can ...
1
vote
1answer
22 views

Magento2: Fatal error: Uncaught Error: Cannot instantiate interface

Got the error below: Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Config\DataInterface in /var/www/html/public_html/vendor/magento/framework/ObjectManager/Factory/...
0
votes
0answers
13 views

$block->escapeJs replacing hyphen with \u002D

On the Send Friend page, under Invitee the label for the email form should be 'E-Mail' on the German store, but because of $block->escapeJs it looks like this: This is the relevant code in the ...
0
votes
1answer
27 views

Wrong template location after overwrite

I have overwritten the _beforeToHtml() method in the class Magento\CatalogWidget\Block\Product\ProductsList. After doing this, I received the following error: Invalid template file: 'product/widget/...
1
vote
1answer
15 views

Magento2: Object DOMDocument should be created

I have installed the Tigren_Ajaxcompare extension. Got the error message below Object DOMDocument should be created. Block <?php /** * @copyright Copyright (c) 2017 www....
0
votes
1answer
24 views

Magento 2 - two language version, where is global css?

I have two language version, where is global css? I changed file \htdocs\mgnt2\app\design\frontend\TemplateMonster\framework\web\css\style.css But my changes are visible only one language ...
1
vote
2answers
54 views

Magento 1 - action method setTemplate is ignored

I try to overwrite a template file with another one which I provide with my extension. I also noticed that other action methods are working just fine, e.g. <action method='addLink'... successfully ...
1
vote
1answer
29 views

Magento 2 jsonParse() does not receive data, Unexpected token '

I'm creating a js template in Magento 2. When I call js, I get an Uncaught SyntaxError: Unexpected token 'in JSON at position 96. Why jsonParse () does not get the value? Can somebody help me? file ....
0
votes
1answer
21 views

How to add lists brand under footer

I want to add brands list under footer: Can anyone help?
0
votes
0answers
6 views

Add payment code as class name in Checkout Payment Methods

In Checkout page, available Payment Methods are listed through this file: vendor/magento/module-payment/view/frontend/web/template/payment/free.html I'd like to add a class name on each payment ...
0
votes
2answers
69 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 ...
0
votes
3answers
29 views

Is it possible to include a phtml file from another module in my template in Magento 2?

I'm making a Megamenu Module, where I want to include the phtml of a file in my MailChimp module (Signup Form). Is there a way I can call on this template from within another module?
3
votes
1answer
105 views

Overriding template for a specific language

I would like to override a template but only for a specific language (ar_SA) The template I want to override is: Magento_Catalog/templates/product/list.phtml I have tried putting it in the following ...
1
vote
0answers
22 views

Not adding in cart magento 2

I installed this template http://magento2.flytheme.net/themes/sm_shop4u/default/ and i am facing this error when triyng to add in cart please help
0
votes
2answers
19 views

Split array in ko template

I have a array with following structure in ko template styleBasedProductsDetails = {{ "image_url": "media/images/home-page/1.jpg", "link_url": "push-up-bra-online/" ...
0
votes
0answers
21 views

How to get the block of new template magento 2

i installed this theme http://magento2.flytheme.net/themes/sm_shop4u/default/ and i miss many block in my home page such as featured products , Deals of the week so how can i get them back or i have ...
1
vote
1answer
50 views

Magento2 - Override Template order summary in sales email order

I have the template that is using the following to render order summary {{layout handle="sales_email_order_items" order=$order area="frontend"}} it is taking the code from the following template ...
0
votes
2answers
24 views

I am getting an error as invalid template file when i tried to add a custom payment method in custom module file

Invalid template file: 'RW_CustomPaymentMethod::info/custompaymentmethod.phtml' in module: 'RW_CustomPaymentMethod' block's name: 'info\custompaymentmethod_0' Should we declare this template ...
0
votes
1answer
25 views

home page in magento2

I have created home.js file using require-config.js for HomePage. And init that home.js file in home.phtml file for Home Page. But i need to get the function that inside the home.js file into size....
1
vote
0answers
19 views

Magento 1.9 Can I override the registration page only for one of the stores?

I have multiple stores. I need to override the existing registration page, but only for 1 store? How can I achive that?
1
vote
1answer
27 views

Magento 2 Adding a custom block template to CMS page

I'm struggling including my custom module/block template into a static CMS page. Here's my block code: <block class="Magento\Framework\View\Element\Template" name="custom_slider_block" template="...
2
votes
2answers
49 views

Magento 2 remove Gift Cards Cart Summary

Working to remove the Gift Card feature on Magento 2 Cart summary section. Having issue getting this working. Have created the following file: .../app/design/frontend/***/***/Magento_Checkout/layout/...
2
votes
1answer
25 views

M2: What's the difference between the view/frontend/email and the view/frontend/templates/email directory?

I get frequently confused with those directories. Yesterday, I copied an email template file in the wrong one of the two folders, - and a colleague was quite upset. How can I avoid making such ...
1
vote
3answers
42 views

Magento override login template only for my brazilian shop

Can I override the login template only for my brazilian shop? The template that I want to override is located here: app/design/frontend/rwd/default/template/persistent/customer/form/login.phtml
1
vote
2answers
17 views

Using a custom block

I've created a simple module, purely for the block. I want to add it to the newsletter.phtml file that controls the customers newsletter subscriptions as I need to create custom functionality through ...
0
votes
1answer
97 views

Magento 2.2.5: Custom checkout

I'm working on Custom Checkout Module. I've Created a Custom module follow this devdocs: https://devdocs.magento.com/guides/v2.2/howdoi/checkout/checkout_customize.html and everything is working ...
0
votes
1answer
37 views

Not valid template file:frontend/base/default/template/catalog/category/page_header.phtml

This is caused by the following piece of code in app/design/frontend/smartwave/mango/layout/local.xml (such a template in such a location does not really exist in any of the themes): <action ...
0
votes
0answers
13 views

How to add an additional attribute value to the Order Information page in M2?

I want to add additional information about the customer in the Order View / Information Screen: I obviously found the file I can modify to make it come true: vendor/magento/module-sales/view/...
0
votes
2answers
39 views

Blank Page with Front End Template in Controller

I have a controller that needs to display text, but I get a blank page. Here is what I have: Controller/Index/Index.php namespace Veratad\AgeVerification\Controller\Index; use Magento\...
2
votes
1answer
53 views

how to add phtml file in custom tab on product view page

I have created a custom tab on product view page , but i don't know how to call a phtml file into custom tab.
0
votes
1answer
25 views

Magento 2 : Search query in magento search terms

What is Search Query On Magento search terms? How it affect the website ? I have over 3 million query on my website a lot of them have nothing to do with what I sell ? Do i need to delete it from ...
2
votes
3answers
53 views

Why do I need $this in template?

I have layout <block class="Magento\Framework\View\Element\Template" name="header" template="Vendor_Module::header/notice.phtml" before="-"/> In my template I do the following :...
1
vote
0answers
88 views

Error filtering template: Invalid block type

I'm trying to create my own widget in Magento 2 however I get this error: Error filtering template: Invalid block type: Inchoo1\CatalogWidget\Block\Product\ProductsList My code is identical to ...
2
votes
4answers
259 views

Magento 2: Templates are not working correctly

I'm attempting to create my own module with a custom template however in my browser, I am unable to view the 'hello world' output. Gregt/Hello/block - helloworld.php <?php namespace ...
0
votes
2answers
49 views

How to re-submit form data in custom module?

I want to get post data in phtml . In case form data not save then show error and already fill form . <form class="trail-register-form" action="<?php echo htmlspecialchars($this->...
0
votes
1answer
70 views

How can I change my account link?

I'm on developing a new theme. I replaced the cart and the Wishlist Links with icons. Now I wanted to do the same with My Account. But I'm not able to find the template file. I found this Question: ...
0
votes
1answer
33 views

How to set type when using setTemplate in action

I am rewriting the template of newsletter_manage_index like this: <newsletter_manage_index> <reference name="customer_newsletter"> <action method="setTemplate"> ...
0
votes
1answer
47 views

Review star issue

<div class="rating-summary"></div> The rating-summary div is not showing on product page and category page Only is showing the count of reviews. Magento 2.x <?php /** * ...
1
vote
2answers
30 views

How to use block from module on CMS page?

I have a block class called Fekete_Newsletter2Go_Block_Form. <?php class Fekete_Newsletter2Go_Block_Form extends Mage_Core_Block_Template { private $n2g; private $session; private $...
1
vote
1answer
39 views

Own Theme - Working with own icons

I want to add Icons for Cart, Wishlist and Account Links in the header. I placed them /app/design/frontend/vendor/theme/web/images/icons. I know I can set the icons like (example cart): .minicart-...
1
vote
0answers
17 views

Magento 2 FedEx shipping method issue

I have used sandbox account for FedEx. Magento 2 FedEx shipping method showing $0.00 is a lot of times.
1
vote
1answer
50 views

Product Catalog Search By Category Id

How to catalog search by category id? Magento 2.x PHP 7.x
0
votes
2answers
50 views

Magento Override frontend template in custom module file

I want to override the contact page frontend from my module file. To override the frontend template of contact form, i have created module and in that module i have created layout file mymodule.xml ...
0
votes
0answers
33 views

How to execute js code for a specific product?

I need to execute javascript code for one specific product on the product page. How can I do that? Magento version: 2.2.5 I found some answers on the web, but they don't work for me: 1) custom js ...
1
vote
1answer
37 views

Magento 2 : What's the best practice when it comes to escaping in templates?

This is a question about best practices when it comes to writing templates / block classes and security. When it comes to writing templates I know you need to escape everything that comes into the ...
0
votes
2answers
29 views

How to override .phtml files in Magento 2 without customising theme

I just want to override the customer account and login form for adding custom fields and external link. How do I do that using custom module please avoid creating the theme or customize the theme.
1
vote
0answers
29 views

Magento2 : How to change Grouped product child item template in cart?

I have grouped products made of several child products. I would like to change these childs template in cart. I tried to modify checkout_cart_item_renderers.xml, but the original default.phtml ...
2
votes
1answer
316 views

Magento 1.9 add layout and template to custom module in admin

I am new to Magento. When I try to create a custom module that shows two tabs on the main page with the option to change titles, backgrounds, and colors, I was successful in adding the module's tab ...