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{
...
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. ...
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 ...
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
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
store-credit × 36magento2 × 15
creditmemo × 7
magento-1.9 × 5
grand-total × 3
refund × 3
checkout × 2
customer × 2
sales-order × 2
magento-enterprise × 2
payment-methods × 2
rest-api × 2
magento2.4 × 2
payment × 2
magento-1.7 × 1
php × 1
magento-1.8 × 1
database × 1
admin × 1
orders × 1
cart × 1
event-observer × 1
onepage-checkout × 1
customer-account × 1
invoice × 1