I want to overwrite validateMinimumAmount function that is available in Magento\Quote\Model\Quote class.
Below is my di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Quote\Model\Quote" type="Myname\Minamount\Model\Quote" />
</config>
below is my preference class:
namespace Myname\Minamount\Model;
class Quote extends Magento\Quote\Model\Quote
{
public function validateMinimumAmount($multishipping = false)
{
// here my logic is going
}
}
At the time of di compile it is showing below error:
Class 'Myname\Minamount\Model\Magento\Quote\Model\Quote' not found#
Magento version : 2.4.3-p1
Thanks