Skip to content

Instantly share code, notes, and snippets.

@markshust
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save markshust/9499534 to your computer and use it in GitHub Desktop.

Select an option

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
/**
* 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