Questions tagged [custom-block]

The tag has no usage guidance, but it has a tag wiki.

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

Add custom block in transnational email

I am using Magneto 2.3.5-p1, I want to add some custom values in my New Order Transactional email template using block, for that, I have created a custom template from Marketing->Eamil Template and ...
  • 141
0 votes
1 answer
2k views

Magento 2.3 add custom block under each product in category page

I need to overwrite the product listing (category) page, a custom form needs to show after that product information. So I have found that already an extension is overwriting that page as below <...
  • 53
7 votes
3 answers
12k views

Custom Block "Invalid Block Type"

I have a custom Block which I'm now trying to break into two sepparate blocks. Here's my folder structure (on app/code/local/MyNamespace/CustomerDashboard): Since I want to break the functions of ...
  • 255
4 votes
1 answer
6k views

magento 2 - How to create a custom "admin" block and display it on an existing Admin page?

I need to create a custom "admin" block and display it on any admin "product edit" page in Magento 2.1.x. But I also want to be able to display it on any admin page, if I need. Which block classes ...
4 votes
1 answer
21k views

Add block in header layout

I have added my custom module block in header in layout like below pinsearch.xml <default> <reference name="header"> <block type="core/template" name="pinsearch" as="...
  • 855
3 votes
2 answers
7k views

Magento2 loading admin layout and template in a new page

I can't get my head wrap around this. I have this controller namespace Vendor\Gift\Controller\Adminhtml\Gift; use Magento\Backend\App\Action\Context; class Index extends \Magento\Backend\App\...
2 votes
2 answers
5k views

How do you add a custom block in checkout/cart page in magento2?

I am trying to create a custom block on the checkout/cart page so that I can show a countdown to free shipping. I keep getting Invalid block type as an error, though. checkout_cart_index.xml <?xml ...
  • 133
2 votes
3 answers
231 views

Create block between header and main

I am facing issue with creating a block between header.container and main. so that I can put the banner over there. And I need the banner in home page only please help me for the same.
1 vote
3 answers
2k views

How to add a custom block within checkout cart summary in magento 2

How to add a custom block within checkout cart summary in magento 2
  • 1,399
1 vote
3 answers
5k views

Magento2: How to call custom block in phtml file

I have created a custom block page. I want to call custom block to another phtml file. When I called custom block in xml file is working. But when I called custom block in phtml file is not working. ...
  • 1,137
1 vote
1 answer
2k views

Add custom block in Magento 2 admin dashboard

Is there any way to add a custom block in magento 2 admin dashboard? I have a requirement to add custom table in dashboard. Can anyone help me? My current magento version 2.2.1
  • 694