Fix the issue of Magento 2 Order Delivery Date for compatibility with Magento 2.2.10

Created by Rosa Truong, Modified on Mon, 23 Dec, 2019 at 10:05 AM by Rosa Truong

Issue: 


We are using the Magento 2 Order Delivery Date version 1.2.6 on Magento 2.2.10. 

When compiling code with php bin/magento setup:di:compile, we got an error:

       Bss\OrderDeliveryDate\Model\Plugin\Quote\QuoteManagement

              Incompatible argument type: Required type: \Magento\Quote\Model\SubmitQuoteValidator. Actual type: \Magento\Quote\Model\QuoteValidator; File:

/var/www/vhosts/magento.dev.richersounds.com/app/code/Bss/OrderDeliveryDate/Model/Plugin/Quote/QuoteManagement.php


The root of the issue:


The issue is caused due to the class Bss\OrderDeliveryDate\Model\Plugin\Quote\QuoteManagement 

This class has function extend from the class \Magento\Quote\Model\QuoteManagement, but it does not follow the form of argument type on Magento 2.2.10


Incompatible argument type:  \Magento\Quote\Model\SubmitQuoteValidator


Actual type: \Magento\Quote\Model\QuoteValidator


File: /xampp/htdocs/magento2210/app/code/Bss/OrderDeliveryDate/Model/Plugin/Quote/QuoteManagement.php



Solution:


Sincere this class Bss\OrderDeliveryDate\Model\Plugin\Quote\QuoteManagement has no function in our module's version 1.2.6, please remove it on your site.


Please check and follow our guide to make our module support on Magento 2.2.10.


If you need any further assistance, please feel free to contact us

Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html




 



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article