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

Ordre mail uden produkter
 
Jesper Schneider
Jr. Member
 
Total Posts:  7
Joined:  2008-07-29
 

Hej

Jeg har fået sat en shop op, og lagt nogle produkter ind. Problemet opstår på ordre mailen, der ikke indeholder nogle produkter.

Jeg har brugt den engelske template og ud fra den lavet en dansk.

Billede er vedhæftet og her ses den nuværende kode:

<style type="text/css">
    
body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
</style>

<
div style="font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;">
<
table cellspacing="0" cellpadding="0" border="0" width="98%" style="margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;">
<
tr>
    <
td align="center" valign="top">
        <!-- 
[ header starts here] -->
        <
table cellspacing="0" cellpadding="0" border="0" width="650">
            <
tr>
                <
td valign="top"><a href="{{store url=""}}"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="Magento"  style="margin-bottom:10px;" border="0"/></a></td>
            </
tr>
        </
table>
        <!-- 
[ middle starts here] -->
        <
table cellspacing="0" cellpadding="0" border="0" width="650">
            <
tr>
                <
td valign="top">
                    <
p><strong>Hej {{var order.getCustomerName()}}</strong>,<br/>
                                
Vi takker for din ordre {{var order.getStoreGroupName()}}. </p>
                            <
p><font size="3" color="#333333" face="Arial">Du har nu gennemført et køb i klubbens Shop.<br/>
                                    
Det samlede beløb for købet bedes overført via din webbank til klubbens bankkontohelst i dag: <strong><font face="Arial"9819 4567869100 (Spar Nord).<br/>
                                            </
font></strong><strong><font face="Arial"Angiv venligst ordrenummer for at lette kassererens arbejde.</font></strong></font></p>
                            <
p>Du har bestilt:{{var product_name}}</p>
                            <
h3 style="border-bottom:2px solid #eee; font-size:1.05em; padding-bottom:1px; ">Dit ordre nummer{{var order.increment_id}} <small>(placed on {{var order.getCreatedAtFormated('long')}})</small></h3>
                    <
table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <
thead>
                        <
tr>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">Betalings information:</th>
                            <
th width="3%"></th>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">BetalingsmÃ¥de:</th>
                        </
tr>
                        </
thead>
                        <
tbody>
                        <
tr>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var order.getBillingAddress().format('html')}}
                            
</td>
                            <
td>&nbsp;</td>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var payment_html}}
                            
</td>
                        </
tr>
                        </
tbody>
                    </
table>
                    <
br/>
                    <
table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <
thead>
                        <
tr>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">Leverings information:</th>
                            <
th width="3%"></th>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">LeveringsmÃ¥de:</th>
                        </
tr>
                        </
thead>
                        <
tbody>
                        <
tr>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var order.getShippingAddress().format('html')}}
                            
</td>
                            <
td>&nbsp;</td>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var order.getShippingDescription()}}
                            
</td>
                        </
tr>
                        </
tbody>
                    </
table>
                    <
br/>
                    
{{var items_html}}
                    
<br/>
                    
{{var order.getEmailCustomerNote()}}
                    
<p>Tak for din ordre,<br/><strong>{{var order.getStoreGroupName()}}</strong></p>
                </
td>
            </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
div>

Hvad skal man gøre for at få produkterne med i kundens mail?

Mvh
Jesper Schneider Christensen

Image Attachments
ordre_mail.gif
 
Magento Community Magento Community
Magento Community
Magento Community
 
Roy Andre
Sr. Member
 
Avatar
Total Posts:  209
Joined:  2007-08-31
 

Har du funnet ut noe løsning på dette? Vi har samme problem, men det ser ut til å fungere for andre.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jesper Schneider
Jr. Member
 
Total Posts:  7
Joined:  2008-07-29
 

Ja, jeg indsatte denne kode før betalingsinformationen:

<h3 style="border-bottom:2px solid #eee; font-size:1.05em; padding-bottom:1px; ">Din ordre #{{var order.increment_id}} <small>(bestilt den {{var order.getCreatedAtFormated('long')}})</small></h3>
                    
<table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <
thead>
                        <
tr>

Og det indholdet af ordren frem cheese

 
Magento Community Magento Community
Magento Community
Magento Community
 
Roy Andre
Sr. Member
 
Avatar
Total Posts:  209
Joined:  2007-08-31
 

Jeg la inn dette og da fikk jeg opp varelinjene smile

{{layout handle="sales_email_order_items" order=$order}}

                {{var items_html}}
 
Magento Community Magento Community
Magento Community
Magento Community
 
velorbis
Jr. Member
 
Total Posts:  17
Joined:  2008-11-01
 

Hi Guys,

I have been struggeling with this for a couple of days now, and I have tried your suggestions below, but I just cant get the order details to show in my email. My code is:

<p>Din ordre information kan ses herunderTak for
din handel.</p>
            <
h3
 style
="border-bottom: 2px solid rgb(238, 238, 238); font-size: 1.05em; padding-bottom: 1px;">Din
Ordre 
#{{var order.increment_id}} <small>(d. {{var
order.getCreatedAtFormated('long')}})</small></h3>
            <
table border="0" cellpadding="0"
 
cellspacing="0" width="100%">
              <
thead>
              <
tr>
                <
th
 style
="border-style: solid solid none; border-width: 1px 1px medium; padding: 5px 9px 6px; line-height: 1em;"
 
align="left" bgcolor="#d9e5ee" width="48%"><small>Fakturerings
Information
:</small></th>
                <
th width="3%"></th>
                <
th
 style
="border-style: solid solid none; border-width: 1px 1px medium; padding: 5px 9px 6px; line-height: 1em;"
 
align="left" bgcolor="#d9e5ee" width="48%"><small>Betalings
Metode
:</small></th>
              </
tr>
              </
thead>
              <
tbody>
                <
tr>
                  <
td
 style
="border-style: none solid solid; border-color: -moz-use-text-color rgb(190, 188, 183) rgb(190, 188, 183); border-width: 0pt 1px 1px; padding: 7px 9px 9px; background: rgb(248, 247, 245) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"
 
valign="top">
{{var order.getBillingAddress().format('html')}}
                  
</td>
                  <
td>&nbsp;</td>
                  <
td
 style
="border-style: none solid solid; border-color: -moz-use-text-color rgb(190, 188, 183) rgb(190, 188, 183); border-width: 0pt 1px 1px; padding: 7px 9px 9px; background: rgb(248, 247, 245) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"
 
valign="top">
{{var payment_html}}
                  
</td>
                </
tr>
              </
tbody>
            </
table>
            <
br>
            <
table border="0" cellpadding="0"
 
cellspacing="0" width="100%">
              <
thead>
              <
tr>
                <
th
 style
="border-style: solid solid none; border-width: 1px 1px medium; padding: 5px 9px 6px; line-height: 1em;"
 
align="left" bgcolor="#d9e5ee" width="48%"><small>Forsendelses
Information
:</small></th>
                <
th width="3%"></th>
                <
th
 style
="border-style: solid solid none; border-width: 1px 1px medium; padding: 5px 9px 6px; line-height: 1em;"
 
align="left" bgcolor="#d9e5ee" width="48%"><small>Forsendelses
Metode
:</small></th>
              </
tr>
              </
thead>
              <
tbody>
                <
tr>
                  <
td
 style
="border-style: none solid solid; border-color: -moz-use-text-color rgb(190, 188, 183) rgb(190, 188, 183); border-width: 0pt 1px 1px; padding: 7px 9px 9px; background: rgb(248, 247, 245) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"
 
valign="top">
{{var order.getShippingAddress().format('html')}}
                  
</td>
                  <
td>&nbsp;</td>
                  <
td
 style
="border-style: none solid solid; border-color: -moz-use-text-color rgb(190, 188, 183) rgb(190, 188, 183); border-width: 0pt 1px 1px; padding: 7px 9px 9px; background: rgb(248, 247, 245) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"
 
valign="top">
{{var order.getShippingDescription()}}
                  
</td>
                </
tr>
                
              </
tbody>
            </
table>
            <
br>
            <
table border="0" cellpadding="0"
 
cellspacing="0" width="100%">
              <
thead>
                <
tr>
                  <
th
 align
="left" bgcolor="#d9e5ee"
 
style="border-style: solid solid none; border-width: 1px 1px medium; padding: 5px 9px 6px; line-height: 1em;"><small>Bestilling</small><small>:</small></th>
                  </
tr>
              </
thead>
              <
tbody>
                <
tr>
                  <
td
 valign
="top"
 
style="border-style: none solid solid; border-color: -moz-use-text-color rgb(190, 188, 183) rgb(190, 188, 183); border-width: 0pt 1px 1px; padding: 7px 9px 9px; background: rgb(248, 247, 245) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"{{var items_html}} 
{{var order
.getEmailCustomerNote()}} </td>
                  </
tr>
              </
tbody>
            </
table>
            <
br>
            
{{var items_html}} <br>
              
{{var order.getEmailCustomerNote()}}           
<p>Tak,</p>

Can you think of anything else I can try, or where I might have an error in my email.

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
velorbis
Jr. Member
 
Total Posts:  17
Joined:  2008-11-01
 

Ok, just wanted to let all know that it worked after I re-created the email from scratch, using the code above.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Torben G
Jr. Member
 
Total Posts:  1
Joined:  2008-09-08
 

Hej, slås lidt med samme problem og kan simpelthen ikke se hvor den går galt.

har følgende template: app/locale/da_DK/template/email/sales/order_new.html

<!--@subject {{var order.getStoreGroupName()}}: New Order # {{var order.increment_id}} @-->

<style type="text/css">
    
body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
</style>

<
div style="font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;">
<
table cellspacing="0" cellpadding="0" border="0" width="98%" style="margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;">
<
tr>
    <
td align="center" valign="top">
        <!-- 
[ header starts here] -->
        <
table cellspacing="0" cellpadding="0" border="0" width="650">
            <
tr>
                <
td valign="top"><a href="{{store url=""}}"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="MyBook"  style="margin-bottom:10px;" border="0"/></a></td>
            </
tr>
        </
table>
        <!-- 
[ middle starts here] -->
        <
table cellspacing="0" cellpadding="0" border="0" width="650">
            <
tr>
                <
td valign="top">
                    <
p>
                        <
strong>Hej {{var order.getCustomerName()}}</strong>,<br/>
                        
Tak for din ordre hos {{var order.getStoreGroupName()}}.
                        
NÃ¥r pakken er sendt af sted vil du modtage en email med link til Track and Trace af din ordre.
                        
Du kan tjekke ordre status ved at <a href="{{store url="customer/account/"}}" style="color:#1E7EC8;">logge pÃ¥ din konto</a>.
                        
Hvis du har spørgsmÃ¥l vedrdin ordrekontakt os da venligst via e-mail pÃ¥  <a href="mailto:salg@mybook.dk" style="color:#1E7EC8;">salg@mybook.dk</aeller telefonisk pÃ¥  <span class="nobr">70 13 11 11</spanmandag til torsdag fra 10.00 til 16.00 og fredag fra 10.00 til 15.00.
                    </
p>
                    <
p>Du kan se din bekræftelse nedenstÃ¥endeEndnu en gang tak for ordren.</p>

                    <
h3 style="border-bottom:2px solid #eee; font-size:1.05em; padding-bottom:1px; ">Ordrenr{{var order.increment_id}} <small>(placed on {{var order.getCreatedAtFormated('long')}})</small></h3>
                    <
table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <
thead>
                        <
tr>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">Fakturerings adresse:</th>
                            <
th width="3%"></th>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">Betalings metode:</th>
                        </
tr>
                        </
thead>
                        <
tbody>
                        <
tr>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var order.getBillingAddress().format('html')}}
                            
</td>
                            <
td>&nbsp;</td>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var payment_html}}
                            
</td>
                        </
tr>
                        </
tbody>
                    </
table>
                    <
br/>
                    
{{depend order.getIsNotVirtual()}}
                    
<table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <
thead>
                        <
tr>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">Leverings adresse:</th>
                            <
th width="3%"></th>
                            <
th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">Betalings metode:</th>
                        </
tr>
                        </
thead>
                        <
tbody>
                        <
tr>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var order.getShippingAddress().format('html')}}
                                
&nbsp;
                            </
td>
                            <
td>&nbsp;</td>
                            <
td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
                                
{{var order.getShippingDescription()}}
                                
&nbsp;
                            </
td>
                        </
tr>
                        </
tbody>
                    </
table>
                    <
br/>
                    
{{/depend}}
                    {{layout handle
="sales_email_order_items" order=$order}}

                    {{var items_html}} 
                    

                    
                    
<br/>
                    
{{var order.getEmailCustomerNote()}}
                    
<p>Mange tak,<br/><strong>{{var order.getStoreGroupName()}}</strong></p>
                </
td>
            </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
div>

da jeg kører med modern theme, har jeg kontrolleret at sales.xml i: app/design/frontend/default/modern/layout har blokken med sales_email_order_items, hvilket også ser korrekt ud:

<sales_email_order_items>
        <
block type="sales/order_email_items" name="items" template="email/order/items.phtml">
            <
action method="addItemRender"><type>default</type><block>sales/order_email_items_order_default</block><template>email/order/items/order/default.phtml</template></action>
        </
block>
    </
sales_email_order_items>
ligeledes har jeg fulgt op på om de andre templates som der henvises til, er at finde.. også her ser jeg ingen problemer.

SÃ¥, nogen der har gode ideer til hvordan jeg kommer videre her ??

På forhånd tak.

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