Questions tagged [template]

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

303 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
41 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....
0
votes
1answer
322 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
1answer
412 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 ...
0
votes
1answer
312 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 /** * ...
0
votes
0answers
59 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 ...
0
votes
2answers
54 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.
0
votes
1answer
171 views

Add to cart custom template

I want to know how to add the link to add the product to the card. I get all my product from magento, but I only display "add to card" but without link. On my template, I display several products, ...
0
votes
0answers
434 views

Magento 2 EE : Override Layered Navigation Template

I want to override layered navigation template in my module(layer/view.phtml). I created catalog_category_view_type_layered.xml file in Companyname/Modulename/view/frontend/layout/ ...
0
votes
0answers
89 views

How can I determine why the pager is not working for the category view in my template?

I have installed a templatemonster template and the pager will not display in the toolbar in the category view. The product_list_toolbar_pager block appears to be correct in the layout/catalog.xml ...
0
votes
0answers
103 views

Magento1.9: Not able to send newsletter template to all subscribers

Recently I created a new newsletter template. Then sent it out to all my subscribers. According to newsletter subscribers count, I have 430 subscribers, but when put in the queue, it only sent out the ...
0
votes
1answer
54 views

Error loading Magento in localhost after install a new template (solved)

I'm trying to install a template in a local server using Magento. My Admin Panel is functioning but I face a problem when I access localhost. I'm working in developer mode. Here's my output of the ...
0
votes
1answer
448 views

Magento1.9: Customer Account Information Edit Form Admin Dashboard

Where can i find the template form for this account information Tab magento 1.9?
0
votes
1answer
415 views

Magento 2 : Getting CMS Custom Field in Template

I've managed to successfully add a new image upload field to the CMS edit form. I have it saving to the media folder, etc, so everything works in that area, but I'm having trouble conceptualized how ...
0
votes
1answer
191 views

Magento 2 Invalid Template File - Weird Template File Issue Product View Only

I have a really weird issue I hope someone can help with. It's difficult to even explain because it's so strange, but I will try to be concise. This is the error message: 1 exception(s): ...
0
votes
1answer
263 views

The template can't render images and blocks

In the frontend, the images URLs and blocks are not rendered. only show strings like this, and I don't know how to modify a template to render that. {{media url="wysiwyg/1S-Shine-2.png"}}
0
votes
1answer
376 views

Add class to input element if field is required

In UIs ko template for an input field... theme\Magento_Ui\web\templates\form\element\input.html I would like it to have the class "required" depending on if the field's input actually IS required. ...
0
votes
1answer
931 views

Failed to call function “on click” in magento 2

I have created the add button using the below block file. On button click I have called return FilterControl.addItem() from my template file seo.phtml. But it shows error like below Uncaught ...
0
votes
1answer
505 views

Render minicart without dropdown dialog

I want to move the minicart to an offcanvas sidebar (foundation 6). I was able to move the minicart vial layout. But it keeps rendering as a dropdown dialog (magento ui) so I would like the cart's ...
0
votes
1answer
28 views

Which of these Magento statements is correct?

I am doing some M2 fundamentals online training, the system is telling me that one of these answers is incorrect... Question 1: Which of these directives will assign a template to a block in a layout ...
0
votes
1answer
367 views

How to disable slider only in home page?

I have an slider in home page and this slider show 5 product in every line everything all right but, when a user's page is small the number of products decreases and the slide starts to move. How can ...
0
votes
4answers
2k views

Custom magento 2 theme not showing up up on content/design/configuration

I have been trying for two day to figure out how I can customize my magento template. Recently I have become stuck on being able to pull up my new magento theme in the backend admin panel. I have ...
0
votes
0answers
77 views

Find referenceContainer in Magento 2.1 module

This is my first attempt to write a Module for Magento 2.1 I have read the documentation for referenceContainer that is not very helpful, I would like to know how can I access and apply my change in ...
0
votes
1answer
1k views

Magento 2 Credit Memos : Template override doesn't work after clicking “Update Qty's” button

I am creating a custom module to simplify the Credit Memo creation for admin users. One of the features is hiding the "Return to Stock" column. I have overwritten 2 files for this: vendor/magento/...
0
votes
0answers
48 views

CE 1.9 - If Category Layered Navigation has 0 Filters changed to One Page Column template

Currently using the 2-column-left template for category pages. The layered navigation shows up on the left (with attribute filters) but when there is nothing to show (no attributes for that specific ...
0
votes
1answer
395 views

Override a Design Template in a Magento 2 Module

When two layout files that reference the same Layout name come into a merge - it would seem to me that the design folder always takes preference. Folder Structure code [vendorNameSpace] [...
0
votes
1answer
447 views

Display custom template file in Magento 2.2

I want create a template file for sales->order->create new order. In layout file(Xxx/Order/view/adminhtml/layout/sales_order_create_index.xml): <?xml version="1.0"?> <page xmlns:xsi="...
0
votes
2answers
429 views

Invalid template file: 'Magehit_Bestsellerproducts::html/bestsellerblock.phtml'

After upgrading to Magento 2.2.0, the Magehit bestseller module is causing the following exception. Can someone please help solving it? Thanks 1 exception(s): Exception #0 (Magento\Framework\...
0
votes
0answers
71 views

Custom email sent with template empty in observer after order

I have an observer that sends an email after order is placed to another email adress depending on a custom attribute. I have the following in config.php <...
0
votes
1answer
62 views

Magento 2 - Changing “enter coupon here” to “Enter coupon or voucher here”

I'd like to change placeholder on the coupon field from "enter coupon here" to "enter coupon or voucher here". I've enabled template hints but couldn't find out what template it's pulling from.
0
votes
1answer
168 views

How do I edit checkout page to add note under Shipping Methods header?

How do I edit the checkout page and add a <p> under the Shipping Methods title? What templete file do I edit to get this Something like this.. <li id="......"> <div class="...
0
votes
0answers
26 views

How to find current xml loaded in product page

I understand the magento 2 template engine but I have difficulties in find the current xml loaded in the product page. I have searched in the template folder for catalog_product_view.xml, I have ...
0
votes
0answers
130 views

Can I add to the list of templates available for the new product widget

Is it possible to add to the list of available templates for the new products widget? I would like to custom render a view for my homepage. I have gone into Content->Pages->homepage and have ...
0
votes
1answer
20 views

Is it possible to add a template to a theme in magento 2?

Current situation: I have created a custom theme that extends from the Magento blank theme. Requirement: I need to add a section that contains some small images to the footer for the whole site. ...
0
votes
1answer
96 views

How do I use and implement getModuleDir to echo view directory in template file?

I'd like to use getModuleDir to get my module's view directory and use it in my template file. Which file do I add the getModuleDir function to, and how do I call this function in my template? Vendor ...
0
votes
2answers
341 views

How do I set scandir to list the module web/images directory

How do I set scandir to list the module web/images directory? getViewFileUrl generates the file path but what I need is the directory path, so scandir can read the folder contents. Vendor > Module > ...
0
votes
1answer
380 views

How to add product video to custom carousel / gallery on product page

The below code is how my product page gallery/carousel is pulling in images, how can I include product videos in this? <div class="pdp-gallery__carousel"> <?php foreach($images as $image)...
0
votes
1answer
370 views

Change media template for single product

I am trying to update the media template via XML in Magento. Somehow my method is not working: First I included <?php var_dump($this->getNameInLayout()); ?>in the template to get the correct ...
0
votes
1answer
284 views

Magento 2 load phtml file through Ajax in admin panel

I am trying to load phtml file though ajax in admin panel. Can one please suggest right way to approach that. $resultPage = $this->resultPageFactory->create(); $block = $resultPage->...
0
votes
0answers
712 views

Magento 2, template changes only show when static folder is removed

I'm new to Magento 2, but it's really inconvenient and time taking that every time I edit something in my template file, I need to do the following to make the changes displays on the web browser. I ...
0
votes
0answers
1k views

Magento 2 : How to Hide all messages after certain time

Hi i have extended the messages.js by adding the following code define([ 'jquery', 'uiComponent', 'Magento_Customer/js/customer-data', 'underscore', 'jquery/jquery-storageapi' ], function ($, ...
0
votes
0answers
17 views

Assign a template from a place other than local.xml

I'm creating a custom page for some categories, I'm filtering the different blocks that I need to use in the catalog/category/view.phtml, but in some categories I wanna use a template with 1 column, ...
0
votes
1answer
711 views

Magento Execute custom block from CMS Page in PHP (template file)

I am planning to show a product list on the front page that can be sorted by category with a drop-down box. Previously I was loading my products with the static category ids in a CMS-Page and ...
0
votes
1answer
18 views

Report.phtml and store not loading

I'm using Magento 1.7 on WAMP server. I can't access my store. I can't access the admin panel neither. Instead of loading the store, the page shown is the content defined under /error/CUSTOM_THEME/...
0
votes
0answers
216 views

Custom module's template not rendering in frontend in magento 2

I am using magento 2.1.7 with default luma theme(fresh magento installation). I am using a custom module which show call for price option on product details page and category page. Module's ...
0
votes
2answers
241 views

Layout is not calling correctly

I am creating a custom module, everything is working fine but on view page, My phtml file calling first and then header is coming. I am calling and setting data like this : IndexController.php ...
0
votes
2answers
539 views

Template not loading on checkout/cart page

I've installed a module which explicitly describes that the layout should be updated in order to see the template file. I've done this, but it's still not showing and I can't figure out why. Here is ...
0
votes
0answers
179 views

Assign template of block via virtualType in Magento 2?

It's possible to assign template of the block via virtualType? app/code/Vendor/Module/etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
1answer
281 views

can't override “modal-slide.html”

I'm trying to override modal-slide.html in my base theme so I place that file at: app/design/frontend/<vendor>/base/Magento_Ui/web/templates/modal/modal-slide.html But Magento just won't pick ...
0
votes
1answer
265 views

Over ride the catalog product template in magento 2 not working

I am trying the magento 2 and over ride the product details template as follows: app\design\frontend\Vendor\oppo\Magento_Catalog\templates\product\view/details.phtml and added some code there but it ...
0
votes
1answer
1k views

Product Page Layout

I'm trying to find a way to add a new custom layout for some products so I can just go to the Design Tab and choose the "Page Layout" from the dropout. I can only find CMS Layout pages in google. Also ...

1
3 4
5
6 7