Giter VIP home page Giter VIP logo

dhl-module-rates-express-m1's Introduction

DHL Express - Rates Express Module

The DHL Express Rates at Checkout extension for Magento® 1 integrates the DHL Express Rates API into the Magento® 1 checkout process.

Facts

  • version: 1.0.2
  • extension key: Dhl_ExpressRates

Requirements and Compatibility

  • PHP >= 5.4.0
  • Magento CE >= 1.9

Installation Instructions

  1. Install the extension via Magento Connect with the key shown above or install via composer / modman.
  2. Clear the cache, logout from the admin panel and then login again.

Uninstallation

  1. Remove all extension files from your Magento installation

Setup and Usage

Please refer to the Setup and User documentation in PDF format in the "doc" directory of this package for detailed installation and usage instructions.

Developer

Netresearch DTT GmbH

Licence

See file LICENSE.md for licensing details.

dhl-module-rates-express-m1's People

Contributors

andreasmueller75 avatar magicsunday avatar mam08ixo avatar powli avatar sebastian80 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

magecommerce

dhl-module-rates-express-m1's Issues

Using WebsiteID instead of StoreID

In app/code/community/Dhl/ExpressRates/Model/Webservice/Rate/RequestDataMapper.php Line 127 is the WebsiteID used, but it must be the StoreID used instead. Using WebsiteID ends in Store Exception. This problem exists if store IDs differ from website IDs!

Patch is:

--- "a/app\\code\\community\\Dhl\\ExpressRates\\Model\\Webservice\\Rate\\RequestDataMapper.php"
+++ "b/app\\code\\community\\Dhl\\ExpressRates\\Model\\Webservice\\Rate\\RequestDataMapper.php"
@@ -124,7 +124,7 @@ class Dhl_ExpressRates_Model_Webservice_Rate_RequestDataMapper
     protected function calculatePackageWeight(Mage_Shipping_Model_Rate_Request $request)
     {
         $itemWeight      = (float) $request->getPackageWeight();
-        $packagingWeight = $this->moduleConfig->getPackagingWeight($request->getWebsiteId());
+        $packagingWeight = $this->moduleConfig->getPackagingWeight($request->getStoreId());
 
         return $itemWeight + $packagingWeight;
     }

Same problem exists in app/code/community/Dhl/ExpressRates/Model/Webservice/Rate/ResponseDataMapper.php Line 55
Patch is:

--- "a/app\\code\\community\\Dhl\\ExpressRates\\Model\\Webservice\\Rate\\ResponseDataMapper2.php"
+++ "b/app\\code\\community\\Dhl\\ExpressRates\\Model\\Webservice\\Rate\\ResponseDataMapper.php"
@@ -52,7 +52,7 @@ class Dhl_ExpressRates_Model_Webservice_Rate_ResponseDataMapper
         $result = array();
 
         $isCheckoutDeliveryTimeEnabled = $this->moduleConfig->isCheckoutDeliveryTimeEnabled(
-            Mage::app()->getStore()->getWebsiteId()
+            Mage::app()->getStore()
         );
 
         /** @var Rate $rate */

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.