Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about overriding core features (class rewrites, local code pool, theme overrides). For URL rewrites, use the "url-rewrite" tag instead.
5
votes
How to Override Core Block, Model and controller in Magento2
Small correction but big usefull , we no need to create n number of file for each function in plugin concept.
For one module one plugin file is enough in that you can extend all module , all model a …
20
votes
How to Override Core Block, Model and controller in Magento2
Finally I got It !!!!
I follow below steps to override Block, Controller and Model I took Exmaple of Product Model and Product View Block and View Controller/Action
Create a file called di.xml in y …
52
votes
8
answers
45k
views
How to Override Core Block, Model and controller in Magento2
I'm stuck in overriding core model Blocks and Controllers in Magento 2.
Can any one help on this?
Let's take list toolbar as example where I need to add a new sort option called sort by most popular. …
29
votes
How to Override Core Block, Model and controller in Magento2
Magento2 gave very good concept called Plugin
we can do what ever after and before core function and also we have one more called around which will do both before and after below is code which will …
4
votes
How to override final_price.phtml in magento 2?
No need to write plugin for this, we have to do it in xml level
create a layout xml
app\code\MYNAME_SPACE\MY_MODULE\view\base\layout\catalog_product_prices.xml
<?xml version="1.0"?>
<!--
/**
* …
0
votes
Overriding Block issues?
use plugin to override the block or model
ex
in di.xml (i took ex of block, model and controller of product )
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi …
6
votes
Magento 2: rewrite controller
dont use preference use plugin to extend any core module
that is in di.xml
<type name="Magento\Catalog\Controller\Product\View">
<plugin name="product-cont-test-module" type="Sugarcode\Test\Mode …
0
votes
Magento 2 error occurs when using <preference> to override a model class
if you want to extend any thing extend using plugin dont use preference
if your using preference 1st thing you will miss magento core function or upgrade
the error which you mention will occur beca …
3
votes
1
answer
7k
views
How to Override or Extend protected or parent function in Magento 2 using Plugin
I need to override protected function or parent function ex
Magento\Checkout\Controller\Cart\Add is extended from Magento\Checkout\Controller\Cart
and getBackUrl() is a Magento\Checkout\Controller\ …