Questions tagged [custom-template]

The tag has no usage guidance.

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
117 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 - ...
2
votes
0answers
177 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-&...
1
vote
1answer
612 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 $...
1
vote
2answers
123 views

Flush cache in particular template

It is not working in .phtml template $types = array('full_page'); foreach ($types as $type) { $cacheTypeList->cleanType($type); }...
1
vote
0answers
77 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 ...
1
vote
0answers
30 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 ...
1
vote
1answer
713 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/...
0
votes
0answers
7 views

Custom module phtml file for custom table data list and view like product in magento 1.9

I want to create a module example: manufacturer. I want to give a link on the site when a user click on that a url will open like manufcaturer.php and it will show all the list of manufacturer later ...
0
votes
0answers
29 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?
0
votes
0answers
23 views

Magento 2 show availability date and time

I am trying to create a page with a calendar and show time where customers can pick. https://github.com/Roomify/bat I was looking here but wasn’t sure how to implement it. Is there any other way or ...
0
votes
0answers
40 views

Magento 2.3: Custom template override not showing on first load

I have override sales_order_create_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
0answers
37 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 ...
0
votes
0answers
73 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 ...
0
votes
1answer
28 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 ...
0
votes
0answers
24 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
267 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: /...