diff --git a/src/app/code/community/Queueit/Knownuser/Model/Observer.php b/src/app/code/community/Queueit/Knownuser/Model/Observer.php index e40c44e..8ced89c 100644 --- a/src/app/code/community/Queueit/Knownuser/Model/Observer.php +++ b/src/app/code/community/Queueit/Knownuser/Model/Observer.php @@ -3,6 +3,7 @@ class Queueit_Knownuser_Model_Observer { + const MAGENTO_SDK_VERSION = "1.2.0"; /** * Temporary storage of the cookie value, easier for validation. * @@ -54,15 +55,14 @@ public function handleRequest(Mage_Core_Controller_Request_Http $request, Mage_C if ($result->doRedirect()) { $response = $action->getResponse(); - if(!$result->isAjaxResult) { - $response->setRedirect($result->redirectUrl); + $response->setRedirect($result->redirectUrl .'&mg1sdkver='.Queueit_Knownuser_Model_Observer::MAGENTO_SDK_VERSION); } else { $response->setHeader('HTTP/1.0', 200, true); - $response->setHeader($result->getAjaxQueueRedirectHeaderKey() , $result->getAjaxRedirectUrl()); + $response->setHeader($result->getAjaxQueueRedirectHeaderKey() , $result->getAjaxRedirectUrl(). urlencode('&mg1sdkver='.Queueit_Knownuser_Model_Observer::MAGENTO_SDK_VERSION)); } $response->setHeader('Expires', 'Fri, 01 Jan 1990 00:00:00 GMT'); diff --git a/src/app/code/community/Queueit/Knownuser/etc/config.xml b/src/app/code/community/Queueit/Knownuser/etc/config.xml index 214e336..2bbf253 100644 --- a/src/app/code/community/Queueit/Knownuser/etc/config.xml +++ b/src/app/code/community/Queueit/Knownuser/etc/config.xml @@ -2,7 +2,7 @@ - 1.0.1 + 1.2.0