Elevate Web Cardiff

Magento Cardsave Module and IWD One Step Checkout

If you have tried installing the Cardsave Magento module and IWD one step checkout modules together you will find that the customer is notified of failure, even though the transactions are successful

You may see a message similar to “Your payment attempt has been declined by your issuing bank. Please check your credit/debit card details and try again.”

This is due to the modules both trying to extend the same class
/app/Code/Local/Cardsave/Sales/Model/Service/Quote.php

<?php
class Cardsave_Sales_Model_Service_Quote extends Mage_Sales_Model_Service_Quote

/app/code/local/IWD/OnepageCheckout/Module/Service/Quote.php

<?php
 class IWD_OnepageCheckout_Model_Service_Quote extends Mage_Sales_Model_Service_Quote

How to Fix

One of the ways this can be fixed is by changing the IWD Class to extend the cardsave class, this can be done easily by editing the following code

/app/code/local/IWD/OnepageCheckout/Module/Service/Quote.php

<?php
class IWD_OnepageCheckout_Model_Service_Quote extends Cardsave_Sales_Model_Service_Quote

Everything should work fine now.

This fix was tested in IWD Module Version 2.2.4, Cardsave Module Version 1.14.4, and Magento 1.8.0.1

Just remember, when upgrading extension, you need to make sure you test and solve conflicts again.

Share this post


Warning: count(): Parameter must be an array or an object that implements Countable in /domains/elevateweb.co.uk/http/pub/wp-includes/class-wp-comment-query.php on line 405
  • Steve

    well thanks for that 🙂 I had same issue with TemplateMaster FireCheckout Module!
    class TM_FireCheckout_Model_Service_Quote in local/FireCheckout/Model/service/Quote.php