News:

Looking for documentation? Take a look on our wiki

Main Menu


	 in Invoice footer

Started by welrachid, July 07, 2015, 12:10:39 PM

Previous topic - Next topic

welrachid

VM3.0.6.4
J!3.3.6

Invoice footer
i get a lot of

	
in the HTML output..


I happens on new lines out of what i can see.
Is this expected behavior?

Best regards,
Wel

Milbo

First, test with the latest vm, it may be fixed already (this is always valid)
Second your joomla is also old, you should use j3.4.3.
third Do you use any 3rd party extension for your invoices?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

welrachid

#2
Hi Milbo
I've tried to update to latest version. actually im running production with latest version and i still get those 
etc..

This is the content of a testemail i get..

i've filteret out the real URLS

--b1_ebbd7c6db5e858c66be3fa875610d289
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
    <head>
   <style type="text/css">
            body, td, span, p, th {  }
       table.html-email {margin:10px auto;background:#fff;border:solid #dad8d8 1px;}
       .html-email tr{border-bottom : 1px solid #eee;}
       span.grey {color:#666;}
       span.date {color:#666; }
       a.default:link, a.default:hover, a.default:visited {color:#666;line-height:25px;background: #f2f2f2;margin: 10px ;padding: 3px 8px 1px 8px;border: solid #CAC9C9 1px;border-radius: 4px;-webkit-border-radius: 4px;-moz-border-radius: 4px;text-shadow: 1px 1px 1px #f2f2f2;font-size: 12px;background-position: 0px 0px;display: inline-block;text-decoration: none;}
       a.default:hover {color:#888;background: #f8f8f8;}
       .cart-summary{ }
       .html-email th { background: #ccc;margin: 0px;padding: 10px;}
       .sectiontableentry2, .html-email th, .cart-summary th{ background: #ccc;margin: 0px;padding: 10px;}
       .sectiontableentry1, .html-email td, .cart-summary td {background: #fff;margin: 0px;padding: 10px;}
       .line-through{text-decoration:line-through}
       .vendor-image img{max-width:300px;} .sectiontableheader td{border-bottom: 1px black solid;}
       /* Firefox has a hard-coded font-size style for tables, so it won't by default inherit the surrounding div's font-size! */
       #vmdoc-footer table, #vmdoc-header table, .vmdoc-footer table, .vmdoc-header table { font-size: inherit; }
       #vmdoc-header h1, #vmdoc-footer h1, #vmdoc-header p, #vmdoc-footer p { margin-top: 0; margin-bottom: 0; }
       .vmdoc-header-image { padding: 0; vertical-align: top; }
       .vmdoc-header-vendor { width: 100%; }
       td.vmdoc-header-separator, td.vmdoc-header-separator hr { padding: 0; margin-top: 0; margin-bottom: 0; }
       td.vmdoc-header-separator { padding: 0; }
   </style>

    </head>

    <body style="background: #F2F2F2;word-wrap: break-word;">
   <div style="background-color: #e6e6e6;" width="100%">
       <table style="margin: auto;" cellpadding="0" cellspacing="0"  ><tr><td>
         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="html-email">
      <tr>
               <td class="vmdoc-header-image"><img src="http://TESTSITE/images/stories/virtuemart/vendor/TESTSITE_faktura_a4_v2_small.png" style="width: 60mm;" /></td>
         <td colspan=1 class="vmdoc-header-vendor">
               <div id="vmdoc-header" class="vmdoc-header" style="font-size: 6pt;">
         <div style="float: right;" align="right"><div class="vendor-image"><img src="/images/stories/virtuemart/vendor/TESTSITE_faktura_a4_v2_small.png" alt=""  /></div></div>         </div>
      </td>
   </tr>
            
      <tr>
      <td colspan="2">
         <strong>Hej  WEL TEST ,</strong><br/>
      </td>
   </tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="html-email">

  <tr>
    <td width="30%">
      Dit ordrenummer: <br />
      <strong>10121</strong>

   </td>
    <td width="30%">
   </td>
    <td width="40%">
       <p>
         <a class="default" title="TESTSITE" href="http://TESTSITE/index.php?option=com_virtuemart&view=orders&layout=details&order_number=b84c07916&order_pass=p_2927b">
         se din ordre online</a>
      </p>
   </td>
  </tr>
  <tr>
    <td colspan="3"><p>
            <p><b>Total for din ordre: kr 239.88</b></p></p></td>
  </tr>
   <tr>
  <td colspan="3"><p>
            Din ordrestatus er Klar til afhentning</p></td>
  </tr>
      <tr>
    <td colspan="3">
      Din kommentar: <br /> TESTER!
   </td>
  </tr>
  </table>
<table class="html-email" cellspacing="0" cellpadding="0" border="0" width="100%">  <tr  >
   <th width="50%">
       <strong>Faktureringsadresse</strong>   </th>
   <th width="50%" >
       Leveringsadresse   </th>
    </tr>
    <tr>
   <td valign="top" width="50%">

       <!-- span class="titles">Email</span -->
              <span class="values vm2-email" >WRATWSY.DK</span>
                      <br class="clear" />
             <!-- span class="titles">Kundetype</span -->
              <span class="values vm2-Kundetype" >Privat</span>
                      <br class="clear" />
             <!-- span class="titles">Navn</span -->
              <span class="values vm2-first_name" >WEL TEST</span>
         <!-- span class="titles">Adresselinje 1</span -->
              <span class="values vm2-address_1" >WEL TEST</span>
                      <br class="clear" />
             <!-- span class="titles">Postnr.</span -->
              <span class="values vm2-zip" >8210</span>
         <!-- span class="titles">By</span -->
              <span class="values vm2-city" >aarhus V</span>
                      <br class="clear" />
             <!-- span class="titles">Land</span -->
              <span class="values vm2-virtuemart_country_id" >Denmark</span>
                      <br class="clear" />
             <!-- span class="titles">Telefon</span -->
              <span class="values vm2-phone_1" >61777662</span>
                      <br class="clear" />
             <!-- span class="titles">Betalingsfrist</span -->
              <span class="values vm2-Betalingsfrist" >14</span>
                      <br class="clear" />
            
   </td>
   <td valign="top" width="50%">
       <!-- span class="titles">Adresse</span -->
             <span class="values vm2-address_type_name" >Shipment</span>
                              <br class="clear" />
            <!-- span class="titles">Navn</span -->
             <span class="values vm2-first_name" >WEL TEST</span>
             <!-- span class="titles">Adresselinje 1</span -->
             <span class="values vm2-address_1" >WEL TEST</span>
                              <br class="clear" />
            <!-- span class="titles">Postnr.</span -->
             <span class="values vm2-zip" >8210</span>
             <!-- span class="titles">By</span -->
             <span class="values vm2-city" >aarhus V</span>
                              <br class="clear" />
            <!-- span class="titles">Land</span -->
             <span class="values vm2-virtuemart_country_id" >Denmark</span>
                              <br class="clear" />
            <!-- span class="titles">Telefon</span -->
             <span class="values vm2-phone_1" >61777662</span>
                              <br class="clear" />
               </td>
    </tr>
</table>

<table class="html-email" width="100%" cellspacing="0" cellpadding="0" border="0">
   <tr align="left" class="sectiontableheader">
      <td align="left" width="65"><strong>Varenummer</strong></td>
      <td align="left" colspan="2"  ><strong>Produktnavn</strong></td>
      <td align="center" width="65"></td>
            <td align="right" width="65" ><strong>Pris: </strong></td>
            <td align="right" width="45"><strong>Antal</strong></td>
                  <td align="right" width="65" ><strong>Moms</strong></td>
              <td align="right" width="65"><strong>Rabat</strong></td>
      <td align="right" width="65"><strong>Total</strong></td>
         </tr>

      <tr valign="top">
         <td align="left">
            Billetter         </td>
         <td align="left" colspan="2" >
            <div float="right" ><a href="http://TESTSITE/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=&virtuemart_product_id=148&Itemid=131">Billetter</a></div>
            <div class="vm-customfield-cart"> <span class="product-field-type-E"><div>PAPIRTYPE 250g GreenCycle genbrugspapir</div><div>Vælg type 4+0 (farveprint pÃ¥ én side)</div><div>Ekspres Ordre (+200 kr) Nej</div><div>Størrelse 55 x 140 mm</div><div>Perforering Nej</div><div>Variabel Data (Løbenummer eller navne) Nej</div></span><br /> <span class="product-field-type-E"><style>
.photoupload_thumbnail{
   height:80px !important;width:auto !important;
}
</style>
         <img src="http://TESTSITE/tmp/nx_65912vq0lfbfmimr9fvekflhq3/148/nx_cart_55a611b959b15/90erfest.jpg" class="photoupload_thumbnail" />
         </span><br /></div>         </td>
         <td align="center">
         </td>
               <td align="right"   class="priceCol" >
            <span >kr 1.60</span><br />         </td>
               <td align="right" >
            120         </td>
                           <td align="right" class="priceCol"><span  class='priceColor2'>kr 47.98</span></td>
                                         <td align="right" class="priceCol" >
            kr 0.00         </td>
         <td align="right"  class="priceCol">
            kr 239.88         </td>
            </tr>

<tr><td colspan="8"></td></tr>
<tr class="sectiontableentry1">
         <td colspan="6" align="right">Varer i alt</td>

                                 <td align="right"><span  class='priceColor2'>kr 47.98</span></td>
                                 <td align="right"><span  class='priceColor2'>kr 0.00</span></td>
         <td align="right">kr 239.88</td>
        </tr>


      <tr>
      <td align="right" class="pricePad" colspan="6"><span class="vmshipment_name"></span><span class="vmshipment_description">TESTSITE</span></td>

            <td align="right"><span class='priceColor2'>kr 0.00</span> </td>
            <td align="right"></td>
      <td align="right">kr 0.00</td>
   </tr>

   <tr>
      <td align="right" class="pricePad" colspan="6">Betalingskort


</td>

            <td align="right"><span class='priceColor2'>kr 0.00</span> </td>
            <td align="right"></td>
      <td align="right">kr 0.00</td>
   </tr>

   <tr>
      <td align="right" class="pricePad" colspan="6"><strong>Total</strong></td>

            <td align="right"><span class='priceColor2'>kr 47.98</span></td>
            <td align="right"><span class='priceColor2'>kr 0.00</span></td>
      <td align="right"><strong>kr 239.88</strong></td>
   </tr>

</table>
<br/><br/>Tak fordi du handlede hos <a href="http://TESTSITE/index.php?option=com_virtuemart">TESTSITE</a><br/>TESTSITE<br /> TESTSITE<br /> <br />   

<hr/><div id="vmdoc-footer" class="vmdoc-footer" style="font-size: 5pt;">
<table class="html-email grey-background" border="0" width="100%" cellspacing="0" cellpadding="0">&#13;&#10;<tbody>&#13;&#10;<tr>&#13;&#10;<td align="" valign="top" width="33%">TESTSITE<br /> <br /> 8000 Aarhus C<br /> Danmark<br /> http://TESTSITE</td>&#13;&#10;<td align="" valign="top" width="33%">Banknavn: <br /> Kontonummer: <br /> Bankkode: <br /> IBAN: </td>&#13;&#10;<td align="" valign="top" width="33%">CVR: <br /> Telefon: <br /> Mail: info@TESTSITE</td>&#13;&#10;</tr>&#13;&#10;</tbody>&#13;&#10;</table>&#13;&#10;<p class="" align="center">Venligst benyt faktura nr. ved overførelsen. Ved betaling efter forfald beregnes p.t. 2.50% rente pr. måned og kr. 150,- pr. rykker medd. | www.TESTSITE </p>&#13;&#10;<p></p></div>

          </td></tr>
       </table>
   </div>
    </body>
</html>


--b1_ebbd7c6db5e858c66be3fa875610d289
Best regards,
Wel

Milbo

What is your original entry in the vendor footer? It is strange, cant find the entity for
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

welrachid

This is the content of the footer.
Again here i have filteret out real urls and company name

<table class="html-email grey-background" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="" valign="top" width="33%"><br /> <br /> 8000 Aarhus C<br /> Danmark<br /> http://TESTSITE</td>
<td align="" valign="top" width="33%">Banknavn: <br /> Kontonummer: <br /> Bankkode: <br /> IBAN: </td>
<td align="" valign="top" width="33%">CVR: <br /> Telefon: <br /> Mail: info@TESTSITE</td>
</tr>
</tbody>
</table>
<p class="" align="center">Venligst benyt faktura nr. ved overførelsen. Ved betaling efter forfald beregnes p.t. 2.50% rente pr. måned og kr. 150,- pr. rykker medd.  |<br /> Århus C, Danmark | Telefon  | CVR  | www.TESTSITE Reg | Konto | IBAN </p>
<p>{vm:vendorlegalinfo}</p>
Best regards,
Wel

Milbo

So the problem is the | ?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

welrachid

Quote from: Milbo on July 21, 2015, 12:30:18 PM
So the problem is the | ?

i dont think so. Can i send you a PM with the real content. I just dont want my customers data be indexed in this forum, so thats why i filter out manually.
Best regards,
Wel

welrachid

FYI. the &#13;&#10; is also stored in the DB.. So somewhere in between the editor and the save action
Best regards,
Wel

Milbo

that is intended. The problem is, that I cant find the symbol for
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

welrachid

Is there anything i can do that can help check something?

like if you send me a long textstring i can paste in, and we can see how it responds?
can you recreate the same characters if you put my footer in the place of your own? maybe its something only related to MY server / MY installation etc..
Best regards,
Wel