Last active
August 29, 2015 13:57
-
-
Save markshust/9499534 to your computer and use it in GitHub Desktop.
OnePica AvaTax - fix for hash key serialization error in app/code/community/OnePica/AvaTax/Model/Avatax/Estimate.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Generates a hash key for the exact request | |
| * | |
| * @return string | |
| */ | |
| protected function _genRequestKey() { | |
| $request = @(string)(array)$this->_request; | |
| $hash = sprintf("%u", crc32(serialize($request))); | |
| Mage::getSingleton('avatax/session')->setLastRequestKey($hash); | |
| return $hash; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment