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

Created by Support Agent, Modified on Tue, 7 Apr at 9:24 AM by Support Agent

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


Who are we? BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


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