Questions tagged [custom-template]

The tag has no usage guidance.

0
votes
0answers
18 views

magento 2.3 product page layout not showing features

I have upgraded magento from 2.1.8 EE to 2.3.1 Ee. After upgrade the product page layout is not rendering features. Below is the code of my detail.phtml file - <?php /** * Copyright © Magento, ...
1
vote
1answer
44 views

Pass parameter to controller from template Magento 2

I am creating product programmatically on controller action. I want to send price value from template file. This is my controller: public function execute() { if (!$this->session->...
3
votes
1answer
41 views

Magento : Not able to set a custom template using an extension

I am creating a custom module to set a custom template for vendor/magento/module-catalog/view/frontend/templates/product/view/options/type/default.phtml but I am not able to override it. I have ...
0
votes
0answers
9 views

Custom template not applying the proper layout and appearing under menu

We have created a custom template to show some documents and download them. This template is located in the backend. You can access through the menu and the submenu of one of the options. "Dealer ...
5
votes
1answer
541 views

How to call phtml file from html in Magento 2?

I have included a custom button in checkout page on click of that I should get my phtml file as popup. I have created a button in my custom module. \view\frontend\web\template\checkout\custom-...
1
vote
1answer
170 views

Magento 2 Minicart content not displaying

I'm working on developing my own theme by extending the Magento Blank theme. I'm trying to add the minicart to my header.phtml file. I'm loading the minicart in my header like so: <?php echo $...
0
votes
1answer
21 views

Add custom template in footer in magento2

I have added the custom template in footer. It displayed in all page .But in view page its throwing 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid ...
1
vote
1answer
109 views

Invalid template file in a custom module

Issue: Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Toogas_Easypay::info/multibanco.phtml' in module: 'Toogas_Easypay' block's name: 'multibanco\info_0'...
1
vote
0answers
107 views

Getting a cutomer attribute value from a parent block inside child block

I am trying to get a value of my custom attribute linkedin_value to populate a form I have added to customer account edit page but I cannot get to it. As soon as I call $block->anything or $this-&...
0
votes
1answer
59 views

Magento 2.2: How to remove add_to_wishlist button from, and add SKU view in, recently viewed products widget in module

I want a extra tab on product page with 4 previously viewed products. Besides that I want to remove "add_to_cart,add_to_compare,add_to_wishlist" buttons and add SKU attribute to recently viewed ...
0
votes
1answer
139 views

Magento 2 new home page template not working

I can't get a custom page template to work in my custom theme. All I'm getting is a blank page. No header, footer, page content, nothing. I have created the following files in my custom theme: /...
1
vote
1answer
46 views

Flush cache in particular template

It is not working in .phtml template $types = array('full_page'); foreach ($types as $type) { $cacheTypeList->cleanType($type); }...
0
votes
0answers
19 views

Use form mini instead of user menu

I want to wrap the user menu in a drop down menu, similar to the user menu when the site is visited in a mobile (responsive user menu). Using the debug I saw that the responsive user menu is a ...
1
vote
0answers
70 views

Magento 1 get all checkout child's block on ajax request

I create an action that will return to checkout page when I called it. My code is, echo $this->getLayout()->createBlock('opc/wrapper')->setTemplate('opc/wrapper.phtml')->toHtml(); But it ...
0
votes
1answer
487 views

Magento 2. Call .phtml (modal) from observer

I have created a custom .phtml file that contains a modal popup. I can successfully call this .phtml by adding it to default.xml in layout. <?xml version="1.0"?> <page xmlns:xsi="http://www....
0
votes
3answers
181 views

custom theme: add template file in default.xml

here my default.xml <body> <referenceContainer name="header-wrapper"> <block class="Magento\Framework\View\Element\Template" name="customeline" template="...
0
votes
0answers
21 views

Howto Include Extension Template in Customer Account

We are trying to integrate the output of an extension into a customized phtml template: The extension is called Magetrend Newsletter Popup Pro which normally creates a pop that is being triggered by ...
0
votes
1answer
535 views

How to override the payment methods template while display in checkout page in magento 2

In Magento 1 /var/www/html/xxx/app/design/frontend/base/default/template/checkout/onepage/payment/methods.phtml. In Magento 2 What is the equivalent file for the above one in magento 2 and how to ...
0
votes
1answer
1k views

How to add a custom template for fieldset in ui-component form in magento 2

I have two filed sets in ui component form , Now I wish to Add custom template for one of the field set.Is it possible in uicomponent form to add custom template for a field set. Please provide me a ...
0
votes
1answer
342 views

Magento-2 : How to add custom template just before add to cart button on product detail page

I want to display my custom template just before add to cart button on product detail page. It should be display in all type of product like Bundle, Grouped, Configurable Product. Thanks
1
vote
1answer
1k views

Magento 2.2.1: How to override recently viewed template

I want to override recently viewed template that is currently located in vendor/magento/module-catalog/view/base/web/template/product/list/listing.html catalog_product_view.xml ...
0
votes
1answer
82 views

Login from PHTML template (1.9) [Resolved]

The problem was that the following: <?php echo $this->getBlockHtml('formkey') ?> Had to be added to: template/customer/form/register.phtml I am using the following inside a PTHML file: ...
0
votes
1answer
411 views

Display Custom Module Template After Product Title

I want to display my custom module template after Product title. here's the code which I'm using currently. <?xml version="1.0"?> <layout version="0.1.0"> <default> <...
1
vote
0answers
26 views

Custom template in sales (Magento2)?

I want to create a template file in sales->order->create new order for showing custom comment.so i create a template file set in sales_order_create_index layout.But It not displaying in admin order ...
0
votes
1answer
55 views

Overwrite list.phtml magento catalog

I have overwritten this template magento_catalog/templates/product/list.phtml in my own theme. I have the following code to show a random number. $number = mt_rand(1000,9999); I print this number ...
0
votes
1answer
306 views

Magento 2, issue with forgotpassword.phtml template override

In my custom module I have created app/code/myVendor/myModule/view/frontend/layout/customer_account_forgotpassword.xml . With below content I can see title is changing but form gets disappear instead ...
2
votes
2answers
344 views

Unable to load javascript

I'm trying to load javascript file in app/code/Anime/Shipping/view/frontend/web/template/shipping.html which overrides the core file Magento_Checkout/template/shipping.html. I can see that I'm able to ...
0
votes
1answer
256 views

Magento 2: Add border-radius to image on product page

Magento 2.2.1 using a custom theme which inherets from Magento/blank. I would like to add a border-radius to the main image on the product page. I have tried applying border-radius to parent ...
5
votes
1answer
451 views

Override Available shipping method template from custom module not working

I tried to override the core template file which located in app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml like this: app/code/local/Test/...
1
vote
1answer
387 views

Block is not calling properly in magento 2 custom module

I have a custom theme in magento 2 website. In home page i called a banner slider(Banner_slider is a custom module) I called the slider like this in home_content.phtml(design/frontend/company/...
1
vote
1answer
45 views

How can i add a template in all the pages except in category page

I have a template called test.phtml in \magento\app\design\frontend\rwd\newtheme\template\test\test.phtml In page.xml layout file I am not getting how to add my template to appear in all pages ...
2
votes
0answers
621 views

Magento 2: How to move the tier price table under the quantity input box on product view page

I am working on the product catalog page using my customized theme. Is it possible to insert my customized tier_prices.phtml inside my customized addtocart.phtml file? I need to put my tier prices ...
1
vote
1answer
682 views

Change product page layout and design for the bundle product, in Magento 1.9

What I did 1) Moved bundle folder from rwd to my active custom them template folder. 2) In app/design/frontend/rwd/ysv/layout addedd below code, <catalog_product_view> // under this &...
2
votes
1answer
2k views

Override customer sales order history template not working

I want to override sales order history for customer in frontend like this: app/code/Test/SuccessPage/view/frontend/layout/sales_order_history.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1answer
247 views

Combine Price and QTY in Magento 2

I want to combine block with price and block with quantity. QTY block without button "add to cart". I found in theme's catalog file : Magento_Catalog/templates/product/view/addtocart.phtml. I see ...