Bugs in EMThemes and how it should be fixed

Bugs in EMThemes and how it should be fixed

vBSSO has a conflict with a Magento EMThemes, as a result vBSSO does not work properly.

Hard-coded links from the header of the Magento EMThemes are causing the influence on some vBSSO actions (login, register, logout). This hard-coded method does not allow to override vBSSO redirects. To resolve this issue we recommend to contact theme`s vendor, meantime you can fix the bug by yourself (note: the fix will not be working after theme upgrade!). 

To fix it, you need to replace hard-coded references. Find a theme folder and its file via your FTP (note: the file name can be different!):

ROOT_MAGENTO\app\design\frontend\em0131\technexion\template\page\html\em_header\em_header_style08.phtml

1. Paste next code in the header of the file (in the beginning of the file):


//****************************************
<?php /* * Fix for vBSSO */ $helper = Mage::helper("customer"); $signUpUrl = $helper->getRegisterUrl(); 
$accountUrl = $helper->getAccountUrl();
$logoutUrl = $helper->getLogoutUrl();

?>
//****************************************

2. Find these links:


<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) . 'customer/account/create/'; ?>
<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) . 'customer/account/'; ?>
<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) . 'customer/account/logout'; ?>

and replace them with:

<?php echo $signUpUrl; ?>
<?php echo $accountUrl; ?>
<?php echo $logoutUrl; ?>

3. Find next code of the login form :




<li>
	<label for="mini-login"><?php echo $this->__('Email Address') ?>
		<em><?php echo $this->__('*') ?></em>
	</label>
	
	<input type="text" name="login[username]" id="mini-login" class="input-text required-entry validate-email"/>
</li>





<li>
	<label for="mini-password"><?php echo $this->__('Password') ?>
		<em><?php echo $this->__('*') ?></em>
	</label>
	
	<input type="password" name="login[password]" id="mini-password" class="input-text required-entry validate-password"/>
</li>


replace it with this one:

 


<li>
	<label for="username" class="required">
		<em>*</em><?php echo $this->__('Username or Email Address') ?>
	</label>
	


<div class="input-box">
		<input type="text" name="vb_login_username" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="username" class="input-text required-entry"
			title="<?php echo $this->__('Username or Email Address') ?>"/>
	</div>


</li>




<li>

<label for="pass" class="required">
	<em>*</em><?php echo $this->__('Password') ?>
</label>


<div class="input-box">
		<input type="password" name="vb_login_password" class="input-text required-entry" id="pass" title="<?php echo $this->__('Password') ?>"/>
		<input type="hidden" name="do" value="login"/>
	</div>


</li>


	

4. Check the results and have fun with vBSSO!


Comments are closed.