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
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.
1
vote
0answers
101 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
2k 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 ...
2
votes
1answer
44 views

How to include CMS page in the phtml page in magento 2.2

I want to include the CMS Page in a phtml template. How can I achieve this? Can anyone help me over here?
1
vote
3answers
1k views

Add product name in product view within a new phtml?

I copied catalog_product_view.xml and pasted it into app\design\frontend\Mytheme\DreamShop\Magento_Catalog\layout folder and code is added before the default.phtml <block class="Magento\Catalog\...
0
votes
2answers
3k views

Magento2 | How to call Template from a Controller

I got this controller: <?php namespace clas extends \Magento\Sales\Controller\Adminhtml\Order { public function execute() { echo "TEST"; } } ?> I want it to ...
0
votes
1answer
102 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
298 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/ ...
1
vote
1answer
262 views

How to disable SKU from product page Magento 1.9

How to hide SKU in product page in Magento 1.9?
1
vote
1answer
214 views

Override form.phtml in own module

I want to override following file in my custom module: module-sales/view/adminhtml/templates/order/create/shipping/method What I did so far: magento/app/code/view/adminhtml/layout/...
1
vote
2answers
81 views

How to override button.phtml from Module_Backend in own module

I want to override following file in my custom module: module-backend/view/adminhtml/templates/wiget/button.phtml How can I do that?
1
vote
1answer
425 views

override admin .phtml file in my design

I got this file: /magento/vendor/magento/module-backend/view/adminhtml/templates/widget/button.phtml I have put it there: /magento/app/design/adminhtml/UV/bgn_medienshop_2017_admin/...
0
votes
0answers
70 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 ...
1
vote
2answers
358 views

magento 2 addtocart.phtml template file can not override

I need little help,I am trying to override vendor\magento\module-catalog\view\frontend\templates\product\view\addtocart.phtml but no luck I am using Magento 2.1 version. I tried below code in my ...
2
votes
2answers
712 views

Magento2 backend sales_order_view.xml not able to override template file

I want to override the template file for backend Order view I've checked template path and found that this file is called. vendor/temando/module-shipping-m2/view/adminhtml/templates/sales/order/view/...
2
votes
1answer
469 views

Overwrite third party template file in my custom module

I have done some research to this subject but couldn't seem to find a detailed answer. What I need To overwrite a template file from a third party module in my case: Amasty One Step Checkout ...
2
votes
1answer
458 views

Call CMS Block with Category name as Identifier

The goal is to call a static cms block at the bottom of the category page, with block identifier == category name (so that I can make a block in the admin backend for every category). So I first ...
1
vote
1answer
73 views

Translate magento template from en_US to pt_PT

I tried the follow: rm -rf vendor/mageplaza/core-m2 rm -rf app/code/Mageplaza/Core composer remove mageplaza/core-m2 composer dump-autoload composer require mageplaza/magento-2-portuguese-language-...
0
votes
2answers
1k views

Magento 2 | Send email from observer

I am currently trying to send an email from an observer. This is the code: /app/code/UO/CustomerAdressChange/Observer if(!empty($isModified)) { //Liefer- oder Rechnungsadresse ist veraendert ...
0
votes
2answers
1k views

Magento 2: Meta-keywords and meta-description doesn't appear

I am using a payment template that unfortunately the support has already expired. Meta-keywords and meta-description do not appear in the source code. I've assigned to the different websites and ...
1
vote
1answer
366 views

How to overwrite UI Component XHTML files in a theme - Recently Viewed

How can I override vendor/magento/module-ui/view/base/ui_component/templates/listing/default.xhtml in a theme? In this instance it's for the recently viewed products widget. This is added here - ...
0
votes
1answer
208 views

Add FAQ tab to product page

I wanted to add a FAQ tab to the products page. I created an attribute called faq in the admin panel as textarea with wysiwyg. I also gave it a default value. Then I added the attribute to an ...
0
votes
0answers
100 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
62 views

Lost front end back templates after updating 1.9.3.6 to 1.9.6.8?

After updating from 1.9.3.6 to 1.9.6.8 the front and backend templates are gone. Also none of the product images are being shown. What could be the problem ? Thanks.
0
votes
1answer
40 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
2answers
665 views

Magento2: How to add a small Icon image on product image in product view page in magento 2

I wish to add small icon image on the product image in magento 2. From which template the product image is loaded in product view page. Please provide me a solution.
6
votes
1answer
3k views

Magento 2: How to make the phone number optional?

What is the right way to make the phone number not required during the checkout in Magento 2? I have read different opinions where people suggest editing the database, which as far as I know is not a ...
0
votes
1answer
315 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
2answers
95 views

How to override this block and template in my module?

I want to override these two files in a module: Block: /magento/vendor/magento/module-sales/Block/Adminhtml/Order/Create/Shipping/Method/Form.php Template: /magento/vendor/magento/module-sales/...
0
votes
4answers
89 views

Magento Pager is not showing custom attributes in product products-list.phtml

I'm facing a coding problem using Magento. I want to display the detail of a product in a recently bought template from TemplateMonster. I have created two numerical custom attributes in my product ...
0
votes
1answer
321 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
2answers
32 views

Magento 2 Best way to link images in a template file

I am building a module which needs to link an image. I have followed several resources on this, but none worked (example). Module is working fine, but I can't show the image. What goes wrong? Any ...
0
votes
1answer
174 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): ...
1
vote
3answers
2k views

Add custom template to existing widget (product_list)

I would like to make use of a product list widget but I need to use it with my own template file. I want to create a widget via content -> widgets. This is different from utilizing a widget from a ...
0
votes
2answers
1k views

Magento 2 - page.main.title below content

the page main title is below the content. You can see the problem in the picture. /magento/vendor/magento/module-theme/view/frontend/templates/html/title.phtml Magento\Theme\Block\Html\Title ...
1
vote
2answers
2k views

Magento 2.2.3 How to adjust date format?

The following piece of code: <?= $post->getCreatedAt() ?> Returns the following output: 2018-04-13 11:53:00 How to adjust that piece of code in a way that the output would be something ...
0
votes
1answer
176 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"}}
1
vote
1answer
33 views

Adding a preview product section on the product page

I am fairly new to the Magento platform so excuse my lack of knowledge! I'm working on a Magento 2 project. I need to add a preview section for my products. Ideally, it would be between the product-...
1
vote
1answer
88 views

Edit product list template

I need add block div into tag a like on image, it is desirable programmatically. Any help would be greatly appreciated
1
vote
1answer
272 views

Override the same file from two modules so that both of the edits are shown?

I have overridden a template file by specifying the path in requirejs-config.js file like so: var config = { map: { '*': { 'Magento_Checkout/template/form/element/email.html'...
1
vote
0answers
31 views

How to add new div section in ko template(Checkoutpage payment section) in magento 2

I wish to add one div section on the checkout page(payment section) to add a custom message. How do I add it in below KO template Magento/SalesRule/view/frontend/web/template/payment/discount.html. ...
1
vote
1answer
466 views

Magento 2.2.3 Minicart missing proceed to checkout text

I would like you help on this I have been reading and reading and cant find an answer. Magento 2.2.3 with a templatemonster theme This is my minicart.phtml, and the problem is the proceeed to ...
0
votes
1answer
286 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
507 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 ...
2
votes
2answers
54 views

Best pratices to update the module-checkout

I want to add some custom text test to my mini top cart in my theme header section. I see it is located here: public_html/m2/vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml ...
0
votes
1answer
291 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
3k views

Magento2 - How to get a custom attribute for catalog product?

I need to get a custom attribute for catalog products on the product page. I added code, <?php $_getMyAttr = $_product->getResource()->getAttribute('my_custom_attr'); ?> <?php if ($...
0
votes
2answers
313 views

How to Customize Order Details Page for Customers

I'm trying to customize the order detail page that the customer see in his/her account. What I did is that I copied: vendor/magento/module-sales/view/frontend/templates/order/view.phtml Into: app/...
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
254 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 ...