Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Transactional email bug - Payment method text is huge! 
 
swilliamson
Jr. Member
 
Total Posts:  26
Joined:  2009-06-25
 

I upgraded to 1.4.1 and now under Payment Method the text is HUGE!  I have no idea how to correct this.  There doesn’t seem to be anything in the template to control this so how do I fix?

If you want to see how obnoxious it is, see the attached screenshot.

Anthony

Image Attachments
Screen shot 2010-08-08 at 8.55.11 PM.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
swilliamson
Jr. Member
 
Total Posts:  26
Joined:  2009-06-25
 

Can anyone help with this?  It seems to affect Apple Mail and Outlook, but GMail renders it fine.

I’d really like to get this solved so if anyone can point me to where this is controlled that would be great.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
DirectLowVoltage
Jr. Member
 
Total Posts:  30
Joined:  2009-02-19
 

same problem.. anyone figure this out?

 
Magento Community Magento Community
Magento Community
Magento Community
 
IrobBot
Jr. Member
 
Total Posts:  16
Joined:  2009-01-20
 

Here’s an example of what’s happening.  The first example works fine, the second is causing problems.  You can see that the field headers are now set inside a table with <th> instead of <td>.

These examples are simple “view source” snapshots that came by email from both versions of Magento.

Magento Version 1.3.2.4

Credit Card TypeMaster Card<br />
Credit Card Numberxxxx-9827<br />
Expiration Date08/2011

Magento Version 1.4.1.1

<table>
    <
tbody>
            <
tr>
            <
th>Credit Card Type:</th>
            <
td>Visa</td>
        </
tr>
            <
tr>
            <
th>Credit Card Number:</th>
            <
td>xxxx-1111</td>
        </
tr>
            <
tr>
            <
th>Name on the Card:</th>
            <
td>Rob Golfrick</td>
        </
tr>
        </
tbody>
</
table>

Does anybody know where this is located in the code so we can fix it manually? It’s pretty annoying and can’t be adjusted through the email templates.

 
Magento Community Magento Community
Magento Community
Magento Community
 
IrobBot
Jr. Member
 
Total Posts:  16
Joined:  2009-01-20
 

OK, I solved the problem using CSS.

1. Go to SYSTEM > TRANSACTION EMAILS and select “New Order” (You’ll need to do the same for other email templates)

2. At the top, between the STYLE tags add this style…
.payment_alteration th { font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; font-weight:normal; }

3. Scroll down until you find this…

<td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;" >
 
{{var payment_html}}
</td>
4. add this to the opening <td> tag, class="payment_alteration” to make it look like this…
<td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;" class="payment_alteration">
{{var payment_html}}
</td>

Then try it.  It worked for me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Binu_Sankaran
Jr. Member
 
Avatar
Total Posts:  10
Joined:  2008-08-08
India Kerala Cochin
 

Please edit the below file

app/design/frontend/base/default/template/payment/info/default.phtml

-------------------------------------------------------------------------

<p><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></p>

<?php if ($_specificInfo = $this->getSpecificInformation()):?>
<table>
<tbody>
<?php foreach ($_specificInfo as $_label => $_value):?>
<tr>
<td><?php echo $this->escapeHtml($_label)?>:</td> (change here from ‘th’ to ‘td’)
<td><?php echo nl2br(implode($this->getValueAsArray($_value, true), "\n"))?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif;?>

<?php echo $this->getChildHtml()?>

-----------------------------------------------------------------------------

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top