Questions tagged [custom-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

How to include order summery section on a phtml page?

How can we include the order summary section on a custom .phtml page?
Mehar's user avatar
  • 205
0 votes
1 answer
41 views

Magento 2 - What's the current way to print the ProductID in Template during Product View?

I need to print the ProductID in my phtml template, and the easiest way to do this seems to be use Magento\Framework\Registry; use Magento\Framework\View\Element\Template; class MyTemplate extends ...
Stiegi's user avatar
  • 103
0 votes
1 answer
24 views

How to change an image used in template for magento 2.2.6

My template includes a background image on the front page that's unnecessarily huge. I've created a resized, tinyfied version of the same image but I can't figure out how to change it. Can anyone help?...
Bella's user avatar
  • 51
0 votes
3 answers
308 views

Override review summary.phtml under custom template

I want to override vendor/magento/module-review/view/frontend/templates/helper/summary_short.phtml under my custom template. I created the phtml file under app/design/frontend/XXX/XXX/Module_Review/...
Efex's user avatar
  • 73
0 votes
1 answer
33 views

Block in reference root not loaded but loaded in reference header

Magento CE 1.9.4.5 I created a module and successfully had it loaded. The xml is below: <?xml version="1.0" encoding="UTF-8"?> <layout> <default> <...
ptree's user avatar
  • 3
0 votes
1 answer
52 views

How to do use a different theme on search result page instead of default?

How do I make the search results page use a different theme like you can on category pages? As, I'm using a different theme for a catalog on my store, but when you use the mini search it pulls the ...
joe young's user avatar
-2 votes
1 answer
46 views

I am getting this error in magento 2.3.5

error is template file invalid in Magento 2.3.5, so can anyone have idea then please share with me. Invalid template file: 'Product_SizeChart::size.phtml' in module: 'Product_SizeChart' block's name: '...
Deep Shah's user avatar
  • 555
0 votes
0 answers
93 views

Custom email template, use user id. Magento 2.3.4

I want to use user id/name in custom emails, when i use {{trans "% name," name = $ user.name}} , i get empty field. Do I have to create custom variables for this data?
mac_mod's user avatar
0 votes
1 answer
31 views

I want to display my products in my own template

First, I am new to Magento 2. My aim is to achieve when products added in the backend I want it to show in my custom template. Can anyone suggest some methods to do it?
jithin 's user avatar
2 votes
1 answer
859 views

Magento 2.3 - How to pass array from controller to template

I am working on a custom module. I am getting array of attribute values in my custom controller and I want to pass these values in my template to list in a select dropdown. Please provide a solution - ...
chanchal's user avatar
  • 417
0 votes
0 answers
69 views

Magento 2: Get store information in frontend files

I'm completely new (like 3 days in) to Magento Development so I apologise in advance if i'm asking a silly question! I've really struggled to find a good magento course online so now i'm at the stage ...
S_R's user avatar
  • 101
1 vote
0 answers
255 views

How Do I Locate the Order Confirmation Email Item Renderer?

I'm having difficulty updating the order confirmation emails that our site is sending. I can find and modify the template in the admin interface and I can find the corresponding items.phtml file in on ...
Thor's user avatar
  • 11
1 vote
1 answer
3k 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->...
Ajwad Syed's user avatar
  • 1,591
3 votes
1 answer
76 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 ...
Mithi Techie's user avatar
1 vote
1 answer
2k 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 $...
Howliee's user avatar
  • 153
0 votes
1 answer
68 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 ...
Mahi M's user avatar
  • 2,540
2 votes
0 answers
388 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-&...
jekabs's user avatar
  • 308
0 votes
1 answer
275 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 ...
Bart's user avatar
  • 13
1 vote
1 answer
1k 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'...
Nuno Sousa's user avatar
6 votes
1 answer
6k 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-...
ASHWINI MURTHY's user avatar
0 votes
1 answer
361 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: /...
Jack's user avatar
  • 1
1 vote
2 answers
222 views

Flush cache in particular template

It is not working in .phtml template $types = array('full_page'); foreach ($types as $type) { $cacheTypeList->cleanType($type); }...
Vamsi's user avatar
  • 107
1 vote
0 answers
90 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 ...
gh darvishani's user avatar
2 votes
1 answer
2k 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....
Magento Learner's user avatar
0 votes
3 answers
2k 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="...
Dipak Solanki's user avatar
0 votes
0 answers
30 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 ...
digijay's user avatar
  • 123
0 votes
1 answer
2k 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 ...
Jaisa's user avatar
  • 2,596
0 votes
1 answer
3k 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 ...
Jaisa's user avatar
  • 2,596
1 vote
1 answer
3k 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 ...
Leon's user avatar
  • 35
0 votes
1 answer
110 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: ...
user1988065's user avatar
0 votes
1 answer
608 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> <...
Sartaj's user avatar
  • 1
1 vote
0 answers
40 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 ...
Raj's user avatar
  • 21
0 votes
1 answer
808 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
Suresh Chikani's user avatar
0 votes
1 answer
73 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 ...
willy's user avatar
  • 140
0 votes
1 answer
1k 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 ...
Zinat's user avatar
  • 2,049
0 votes
1 answer
841 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 ...
Muckee's user avatar
  • 699
2 votes
2 answers
1k 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 ...
P S's user avatar
  • 1,983
1 vote
1 answer
1k 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/...
Mujahidh's user avatar
  • 2,791
5 votes
1 answer
672 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/...
Shell Suite's user avatar
  • 1,702
1 vote
1 answer
313 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 ...
Abhilash Narayan's user avatar
2 votes
1 answer
3k 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 ...
liani.kismet's user avatar
2 votes
1 answer
3k 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-...
simple guy's user avatar
  • 2,484
1 vote
1 answer
740 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 ...
Nikolai Silin's user avatar
2 votes
1 answer
2k 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 &...
inrsaurabh's user avatar
  • 1,676