All Questions
4 questions
0
votes
0
answers
145
views
Block is not getting called in custom module - Magento 2.3
I created a custom module to list all categories in a custom page. But the associated block is not getting called in the layout file. I can see the controller function is getting executed and page ...
2
votes
1
answer
2k
views
Magento 2: Use Custom Variable in Layout File
We can use Magento default variables in layout file using
<item name="link" xsi:type="string">{{baseUrl}}</item>
I would like to create one variable in Block File & Use it. Like
...
0
votes
1
answer
5k
views
Custom add to cart form
I would like to create my own custom add to cart form which is the same as original but with custom retrived products. How would I do that in a custom block?
the block class
<?php
namespace ...
1
vote
3
answers
12k
views
Magento custom block shows Fatal error: Call to a member function setTemplate() on a non-object
I have created one block inside my custom module but it's not working. My module is working fine but my block is not working when I call my block from footer.phtml file it shows 'Fatal error: Call to ...