Extensions‎ > ‎Cash On Delivery‎ > ‎

Troubleshooting



Cannot Load Configuration For Payment Method "CashOnDelivery"


If you see this error (full trace route below) it means you have removed the files for the payment method cash on delivery supplied by another extension provider. The WebShopApps cash on delivery code is "cod" rather than "cashondelivery".

To fix this you need to open phpMyAdmin or similar and navigate to core_config_data.

Then click on search and in the "path" field enter %cashondelivery% and click search.

Carefully look through the results and remove them.

You will also need to navigate to the table sales_flat_quote_payment (if using Magento 1.4) and perform the same search and remove the entries.

Refresh/Disable cache and the error should no longer be present.

We can perform this service for you, please contact us for a quote.

Full Trace

a:5:{i:0;s:61:"Cannot load configuration for payment method "cashondelivery"";i:1;s:3313:"#0 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Payment/Helper/Data.php(48): Mage::throwException('Cannot load con...')
#1 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Payment/Model/Info.php(74): Mage_Payment_Helper_Data->getMethodInstance('cashondelivery')
#2 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Sales/Model/Quote/Payment.php(163): Mage_Payment_Model_Info->getMethodInstance()
#3 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Payment/Block/Info/Container.php(60): Mage_Sales_Model_Quote_Payment->getMethodInstance()
#4 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Payment/Block/Info/Container.php(45): Mage_Payment_Block_Info_Container->_getInfoBlockName()
#5 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Block/Abstract.php(218): Mage_Payment_Block_Info_Container->_prepareLayout()
#6 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#7 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Model_Layout->createBlock('checkout/onepag...', 'payment_info')
#8 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Model/Layout.php(238): Mage_Core_Model_Layout->addBlock('checkout/onepag...', 'payment_info')
#9 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Model/Layout.php(204): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#10 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#11 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Core_Model_Layout->generateBlocks()
#12 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Controller/Varien/Action.php(270): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#13 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Checkout/controllers/OnepageController.php(179): Mage_Core_Controller_Varien_Action->loadLayout(false)
#14 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->progressAction()
#15 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('progress')
#16 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 /homepages/11/d342171996/htdocs/xx/xx/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#18 /homepages/11/d342171996/htdocs/xx/xx/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#19 /homepages/11/d342171996/htdocs/xx/xx/index.php(80): Mage::run('', 'store')
#20 {main}";s:3:"url";s:58:"/xx/xx/index.php/checkout/onepage/progress/";s:11:"script_name";s:31:"/xx/xx/index.php";s:4:"skin";s:7:"default";}


Translations


It is possible to have translations of the default text in Cash on Delivery.

You can configure this through the translations/locale CSV file.

An example will be found in your installation under: app\locale\en_US\webshopapps_cod


Setting up Tax


If you want the extension to consider COD prices inclusive of tax you will need setup a new tax rule in Magento by following these steps:

  1. Navigate to Sales > Tax > Product Tax classes and create a new tax class called COD or similar
  2. Navigate to Sales > Tax > Manage Tax Zones and Rates and create a new rate for COD.
  3. Navigate to Sales > Tax > Manage Tax Rules and create a (or modify existing) tax rule called COD Tax or similar choosing the tax class COD that you created in step 1.
  4. Navigate to System > Configuration > Sales > Tax > Tax Classes and you will see an option "Tax Class for COD". Choose the class you created in step 1.
  5. Navigate to the tab below Tax Classes called "Calculation" and decide if your prices are including or excluding tax.









Shipping Method Field In CSV



You need to put the Shipping Method title, followed by a dash, then the Shipping Method name you want e.g.

United Parcel Service - Ground

Please ensure the dash is a short en dash, not a long em dash e.g. -, not —


Sweet Tooth Rewards - Wrong Totals on Checkout


If you're using Sweet Tooth Rewards and our Cash on Delivery extension you will notice issues with the totals on checkout. Sweet Tooth have written a great article on how to fix this here:

https://support.sweettoothrewards.com/entries/21128147-cash-on-delivery-compatibility