Questions tagged [inheritance]
The inheritance tag has no summary.
27 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
165
views
is it possible to extend the block class in model
Is it possible to extend block class in model? if so, how to do it. please provide me with example. I have inherited model a class from model and i want to inherits class in block using the class i ...
0
votes
0
answers
54
views
how to inherit account_new_no_password.html in magento 2
I have tried this:
var config = {
map: {
'*': {
'Magento_Payment/template/payment/cc-form.html':
'Namespace_Module/template/payment/cc-form.html'
}
}
};
1
vote
3
answers
2k
views
Magento 2 di.xml Parameter configuration inheritance explanation with example
I read about the Parameter configuration inheritance in Magento documentation but not able to understand the concept properly!
https://devdocs.magento.com/guides/v2.4/extension-dev-guide/build/di-xml-...
1
vote
0
answers
38
views
Custom Magento theme not extending from custom parent theme
So I'm working on creating a custom parent theme I can reuse for a bunch of different projects and then a child theme for custom styles for a client to extend from that theme.
I had the custom child ...
2
votes
1
answer
444
views
Inheriting CSS in child theme's child theme
I'm relatively new to this, so i hope someone can help me out.
In my store i have a child theme of blank. The changes in this child theme get properly displayed on the store front and everything not ...
2
votes
0
answers
77
views
How to add fields to new custom module page in magento 2
Here the registration fields
i need this fields to new custom module pages
how to do ??
can i inherit this all fields
need fields
1.phone no
2.company
3.street address
note:
this all fields ...
0
votes
1
answer
2k
views
How i can extend more than one class in magento 2? [duplicate]
<?php
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\App\RequestInterface;
use ...
1
vote
2
answers
475
views
Inherit Widgets from Theme Parent
[[ TLDR: I'm looking for info about (or a module) that would allow me to have child themes inherit widgets from their parents. For widgets that were created on the backend. ]]
This is for Magento 1....
1
vote
1
answer
189
views
Magento 2 Luma Theme inherence error 2.2.1 CE
I have a problem when I add a new theme in my new Magento 2.2.1 CE from scratch, and I try to inherent Luma theme. I sow to many examples but nothing work for me. If I put as parent blank work well ...
0
votes
2
answers
125
views
Theme Inheritance
I have installed Magento 2.1.7, and theme Luma.
I then created a custom theme to inherit from Luma.
I was wondering if the content (blocks and widgets) are also inherited from the parent theme. In my ...
0
votes
1
answer
94
views
Inheritance from 3rd party template
I'm trying to create my own template and inheritance from another that I bought on themestore. I think it's a good practice, just for change some things, doing this way the 3rd party template is ...
0
votes
2
answers
453
views
new block for Customer Account - preferable inheritance
I want to add custom block with custom logic to customer account. Is there any preferable inheritance in this case fro new block?
3
votes
1
answer
15k
views
Call a parent's parent method without calling the parent's method. parent::parent::method()? [duplicate]
I have an extension that has a block class that extends
Mage_Catalog_Block_Product_List_Toolbar
The extension has its own getPagerHtml(), which calls parent::getPagerHtml() at the end.
I need ...
1
vote
2
answers
235
views
How do I not repeat code while not being able to extend multiple blocks?
I've created a new custom module to store manufacturers, which links to products via a custom attribute on products.
There are 2 places I want to use the manufacturer details. One is on the product ...
0
votes
1
answer
323
views
Extending class not working unless you copy all methods
In my module I want to overwrite the method
public function collect(Mage_Sales_Model_Quote_Address $address) in
Mage_Sales_Model_Quote_Address_Total_Abstract.
If I copy only that method in my class:
...