Hot answers tagged

1

When you are passing array value in the addFieldToFilter function arguments, the system will do the OR condition. If you look at the function definition of addFieldToFilter function in \Magento\Framework\Data\Collection\AbstractDb::addFieldToFilter public function addFieldToFilter($field, $condition = null) { if (is_array($field)) { $conditions = ...


1

Probably, you need something like this: $collection->getSelect() ->where('DATE_FORMAT(created_at, "%Y-%m-%d") = ?', '2020-11-23') ->orWhere('DATE_FORMAT(created_at, "%Y-%m-%d") = ?', '2020-11-24') ->orWhere('DATE_FORMAT(created_at, "%Y-%m-%d") = ?', '2020-11-27') ->orWhere('...


1

Ok, I figured this one out :D So basically when we run the `execute` method on the refundInvoice object, we need to send some arguments with it also. We can set those arguments using the Magento\Sales\Model\Order\Creditmemo\CreationArgumentsFactory model. If we assign the model to a $creationArguments property We can then set the shipping amount in the ...


1

I've faced this problem. My case: Shipping method was disabled for selected store! Double check it.


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