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
1answer
35 views

How to change this magamenu logo image?

So, I've been trying my best to remove this menu from my magento2 megamenu but I am unable to do so. Can't change the logo image either. This thing started to suck now. Can you help me with it? The ...
0
votes
1answer
33 views

Magento 2 - adding custom.phtml file

I'm trying to add a custom phtml file in the Product Page before Product Name/Title. For that I've created a custom.phtml file in the path- "...> Magento_Catalog > templates > custom.phtml". ...
1
vote
1answer
58 views

How to call product new.phtml in admin cms home page magento 2.2.6

How to call new.phtml file in the home page admin Magento 2.2.6 version? Please check my screenshot link here http://prntscr.com/lapiu7. And also check my theme default.xml code. <referenceBlock ...
0
votes
2answers
96 views

web html template not able to overwrite

I'm trying to overwrite below html template file but not working. I have already run commands. vendor\magento\module-sales-rule\view\frontend\web\template\payment\discount.html to app\design\...
0
votes
1answer
278 views

Magento 2 - Move Button from Middle Column to Side Bar Section

Hello I need help moving my finance button from the middle column of the product page over to the fixed right side bar of my product page below Add to Cart button. The finance button is a module ...
0
votes
3answers
278 views

Magento 2: Adding a template file before the page footer (invalid template file error)

I am trying to add a template file above my footer to show a subscribe form. In my template I have created a file app/design/frontend/<vendor>/<theme>/Magento_Theme/layout/default.xml. ...
0
votes
1answer
50 views

Magento 1 Set Template Doesnt work

I'm new to M1. I'm trying to add a new custom option type in product My Config <?xml version="1.0"?> <config> <modules> <CompanyName_ModuleName> <version>0....
0
votes
1answer
85 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
1k 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
559 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
1answer
39 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
40 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
35 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
175 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
427 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
32 views

How to add lists brand under footer

I want to add brands list under footer: Can anyone help?
0
votes
2answers
254 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
586 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
189 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
27 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
268 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
23 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
571 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
31 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
35 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
21 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 achieve that?
2
votes
1answer
563 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
3answers
2k 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
39 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 ...
2
votes
3answers
59 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
21 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
263 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
169 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
2answers
137 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
161 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
158 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
63 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
850 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
967 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
3answers
444 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
414 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
65 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
217 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
51 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
239 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
1answer
301 views

Product Catalog Search By Category Id

How to catalog search by category id? Magento 2.x PHP 7.x
0
votes
2answers
80 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
49 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 ...
2
votes
1answer
600 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
37 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.