Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Email template update for Web Store 3.2.4

Gabriel Guzman edited this page Mar 3, 2015 · 1 revision

As part of Web Store 3.2.4 a small change was made to the email template markup code. This change fixes the header image aspect ratio bug that was introduced with the release of 3.2.2.

Only themes that were copied between the release of 3.2.2 and 3.2.4 will need to be updated manually.

The mail-layout file is located in your copied theme directory. Typically any theme that was copied can be found under the following path:

/themes/{name of the copied theme}copy
  1. So for a copy of brooklyn2014 you would go under:

    /themes/brooklyn2014copy
    
  2. Then navigate to:

    /views/layouts/mail-layout.php
    
  3. Find references to (around line 47 to line 63):

    <td align="left" height="54" bgcolor="#eeeeee" style="padding-top: 20px;padding-bottom: 20px;">
        <?= CHtml::link(
    		CHtml::image(
    			$this->pageAbsoluteHeaderImage,
    			Yii::t('email','{storename}',
    			array('{storename}' => _xls_get_conf('STORE_NAME'))
    		),
    		array(
    			'width' => '300',
    			'height' => '54',
    			'style' => 'display:block;'
    		)
    	), $this->createUrl("site/index"));
        ?>
    </td>
    
  4. And replace with:

    <td align="left" bgcolor="#eeeeee" style="padding-top: 20px;padding-bottom: 20px;">
        <?= CHtml::link(
    		CHtml::image(
    			$this->pageAbsoluteHeaderImage,
    			Yii::t('email','{storename}',
    			array('{storename}' => _xls_get_conf('STORE_NAME'))
    		),
    		array(
    			'style' => 'display:block;'
    		)
    	), $this->createUrl("site/index"));
        ?>
    </td>
    
Clone this wiki locally