Skip to main content
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
Results tagged with
Search options not deleted user 29731

General questions about the Magento 2.2.x versions

0 votes
Accepted

How to override collect() in magento2?

Instead of return $subject return $result use Magento\SalesRule\Model\Quote\Discount as Source; class Discount { public function afterCollect(Source $subject, $result, \Magento\Quote\Model\Quot …
Murtuza Zabuawala's user avatar
0 votes

Event in Magento-2?

in this case you can use following event <event name="controller_action_predispatch_customer_section_load" > No need to check that condition
Murtuza Zabuawala's user avatar
0 votes

Can't create directory

If you have created cron using crontab -e Then remove cron from their and add cron using below command crontab -e -u www-data
Murtuza Zabuawala's user avatar
0 votes

Product data update inconsistency

The diffrence that I can see is for reindexing, In updateAttributes method this indexer will reindex if you set update on save for reindexing `catalog_product_attribute` and for product save it w …
Murtuza Zabuawala's user avatar
2 votes

How send order confirmation mail after only Payment success?

I am just extending @anime answer and writing order email code In your module create events.xml in etc folder <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" …
Murtuza Zabuawala's user avatar
4 votes
Accepted

Magento 2 - product collection filtered with custom attribute

You can make preference of this class Magento\Catalog\Block\Product\ListProduct and go to its _getProductCollection() method and put your attribute filter condition after this line $this->_productC …
Murtuza Zabuawala's user avatar
10 votes
Accepted

Different product layout based on product

Yes you can achieve this thing by writing small code What you need to do is add layout via event layout_load_before, you can use this event to add your dynamic layout. Here is sample code for you, …
Murtuza Zabuawala's user avatar
0 votes

Error Upgrade from Magento 2.2.5 to Magento 2.3.3

In my case I find out one of my module has this code "require": { "magento/framework": "101.*.*" }, and due to this dependency I am not able to update, so I contact extension vendor and tell them …
Murtuza Zabuawala's user avatar
4 votes

How to update customer address using custom Api in magento2?

check below code that helps you somewhat /** * @var \Magento\Customer\Api\CustomerRepositoryInterface */ protected $customerRepository; protected $addressRepository; protected $addressData; /** * …
Murtuza Zabuawala's user avatar