Skip to main content
1 vote

Magento 2 : Check if method exist in class

class A{ public function foo(){ echo "foo"; } public function bar(){ if(method_exists($this, 'foo')){ echo "method exists"; }else{ ...
Nilesh Dubey's user avatar
  • 1,087
1 vote

quote not get saved after changing grand total and decrease store credit from grand total

You should work with $total instead of $quote. The reason is you are inside the collectTotals function, it's all about the totals. For more logic, you can start working with collect/fetch methods. ...
Jimmy's user avatar
  • 457
1 vote
Accepted

Magento2.3.3 - Where can I see the Store Credit amount of an user?

The documentation you are referencing is for credit memos, you'll see in that same doc the definition of a credit memo: A credit memo is a document that shows the amount that is due the customer ...
Andrew Kett's user avatar
  • 3,518
1 vote
Accepted

How to use store credit for a cart in magento 2 api

Customer balance(store credit) operations rest/V1/carts/mine/balance/apply method - POST
Aditya Shah's user avatar
  • 7,627
1 vote

JoinField Show error same id is already exists

$collection->getSelect()->group('id_field_name_here') is probably a bit more efficient than using a select sub query. It's also how Magento deals with this issue.
Shawn Abramson's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible