Jump to content

imop

Members
  • Content count

    385
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by imop


  1. Try to replace your code with this:

     

    tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array);{
    ($action == 'update_product')
    tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "' and language_id = '" . (int)$language_id . "'");
    }
    
    
    if (USE_CACHE == 'true') {
    tep_reset_cache_block('categories');
    tep_reset_cache_block('also_purchased');
    }

     

    1 - was your code line (wrong):

    2 - is is how it should be (right):

     

    1) tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "' and language_id = '" . (int)$language_id . '");

    2) tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "' and language_id = '" . (int)$language_id . "'");


  2. try this code, it must help:

     

    if ( tep_not_null($file['tmp_name']) && ($file['tmp_name'] != 'none') && is_uploaded_file($file['tmp_name']) ) {
           if (sizeof($this->extensions) > 0) {
             if (!in_array(strtolower(substr($file['name'], strrpos($file['name'], '.')+1)), $this->extensions)) {
               if ($this->message_location == 'direct') {
                 $messageStack->add(ERROR_FILETYPE_NOT_ALLOWED, 'error');
    // BOF: Additional Images
               } elseif ($this->message_location == 'session') {
     // EOF: Additional Images
                 $messageStack->add_session(ERROR_FILETYPE_NOT_ALLOWED, 'error');
               }

     

    give us feedback if this is ok! ;)


  3. It is currently shown in the invoice that opens through the admin panel

    At the moment I cannot send out the fancy html invoice to customers but invoice and packingslip look ok in the admin panel...customers still get the regular text based email with info about their order

    I am also trying to receive a copy of the order summary email to my store email address but I cant seem to get that either...but I think that's another problem

    Just trying to fix one thing at the time

    Any help please?

     

    1) The words:

     

    INVOICE_TEXT_INVOICE_NR 163

    INVOICE_TEXT_INVOICE_DATE 06/17/2010

     

    add this the code in catalog/admin/includes/languages/english/invoice.php:

     

    define('INVOICE_TEXT_INVOICE_NR', 'Number:');
    define('INVOICE_TEXT_INVOICE_DATE', 'Invoice date: ');
    

     

    * is u need it also in packing slip add the same code to - catalog/admin/includes/languages/english/packingslip.php

    ** if u have other languages do the same to them copy/paste the code

     

    2) About the email sending, yes it seems to be a small, but u can fix it:

     

    so open

     

    find this: catalog/includes/modules/email_invoice/email_invoice.php

     

    if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
    	$ei_message->send(STORE_OWNER, SEND_EXTRA_ORDER_EMAILS_TO, $order2->customer['name'], $order2->customer['email_address'], EMAIL_TEXT_SUBJECT . ' ' . $insert_id);
    

     

    replace with this:

     

    if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
    	$ei_message->send('', SEND_EXTRA_ORDER_EMAILS_TO, $order2->customer['name'], $order2->customer['email_address'], EMAIL_TEXT_SUBJECT . ' ' . $insert_id);
    

     

    * don`t forget to input the extra e-mail adress in Admin panel for extra e-mail to be sent!!!

     

     

    Hope it helps!


  4. Installed the contrib and it looks fine but I need to fix the text on top where the invoice number and date are...right now I am showing it like this:

     

    INVOICE_TEXT_INVOICE_NR 163

    INVOICE_TEXT_INVOICE_DATE06/17/2010

     

    can someone point me to where I can fix this?

     

     

    This is shown in invoice sent to customer or in customers account "Print Invoice"?


  5. Thank you! It did work, however the top border on all the boxes is duplicated breaking the format of the box. When you tested your html_invoice did you find the all the boxes were perfect or was the top border slightly broken?

     

     

    Actually i have my own design for the invoices, less images only the company logo, all other CSS, and my invoice is is heavy modified so it won`t work for u!

     

    But i suggest you to use less images eg. JPG , GIF, PNG etc. use CSS/HTML for your invoice design it means less problems and the invoice will look 99,99% the same in different e-mail clients (outlook, Thunderbird web - Gmail / Yahoo mail / etc.)


  6. Hi

     

    Could you post the contents of your catalog/includes/modules/email_invoice/templates/html_invoice.php so that I could compare it with mine? I think the problem must just be in that file.

     

     

    Actually i use - box_invoice.php but i have modified it for my own needs so it wont be the same, but it dose not mater the code is the same!

     

    but here is my html_invoice.php original that works fine for me, just tested!

     

    <?php
    /*
     $Id: html_invoice.php,v 6.1 2005/06/05 00:37:30 PopTheTop Exp $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2003 osCommerce
    
     Released under the GNU General Public License
    */
    
     class objectInfo {
    
    // class constructor
       function objectInfo($object_array) {
         reset($object_array);
         while (list($key, $value) = each($object_array)) {
           $this->$key = tep_db_prepare_input($value);
         }
       }
     }
     $order2 = new order($oID);
    ?>
    <html>
    <head>
    <title><?php echo STORE_NAME; ?><?php echo INVOICE_ORDER_CONFIRMATION; ?><?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?></title>
    <style type="text/css">
    BODY {
    background: #ffffff;
    color: #000000;
    margin: 0px;
    }
    A {
    color: #000000;
    text-decoration: none;
    }
    A:hover {
    color: #AABBDD;
    text-decoration: underline;
    }
    A.headerNavigation {
    color: #FFFFFF;
    }
    A.headerNavigation:hover {
    color: #ffffff;
    }
    TD.main, P.main {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    }
    TD.smallText, SPAN.smallText, P.smallText {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    }
    .dataTableContent {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    color: #000000;
    }
    .dataTableHeadingRow {
    background-color: #C9C9C9;
    }
    .dataTableHeadingContent {
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    color: #ffffff;
    font-weight: bold;
    }
    .dataTableRow {
    background-color: #F0F1F1;
    }
    </style>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
     <td align="left"><?php echo '<img src="' . INVOICE_IMAGE . '" border="0" alt="' . INVOICE_IMAGE_ALT_TEXT . '" width="' . INVOICE_IMAGE_WIDTH . '" height="' . INVOICE_IMAGE_HEIGHT . '" hspace="10">'; ?></td>
     <TD ALIGN="right" VALIGN="top" NOWRAP><FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_ORDER_CONFIRMATION; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?><BR>
       <?php echo $date; ?></strong></font><br>
       <br>
       <span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span></TD>
    </tr>
    <tr>
     <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <TD><table width="100%" border="0" cellspacing="0" cellpadding="2">
               <tr>
                 <td colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="2">
                     <tr>
                       <td width="10%"><hr size="2"></td>
                       <td align="center" class="pageHeading" NOWRAP><em><b><?php echo INVOICE_TEXT_INVOICE; ?></b></em></td>
                       <td width="100%"><hr size="2"></td>
                     </tr>
                   </table></td>
               </tr>
               <tr>
                 <td colspan="4"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="5" alt=""></td>
               </tr>
               <tr>
                 <td width="3"></td>
                 <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                     <tr>
                       <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td>
                       <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td>
                     </tr>
                     <tr>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif" width="11" height="21" alt=""></td>
                       <td align="center" bgcolor="#F2F2F2"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="main">
                           <tr>
                             <td align="left" valign="top"><b><?php echo ENTRY_SHIP_TO; ?></b></td>
                           </tr>
                           <tr>
                             <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                           </tr>
                           <tr>
                             <td NOWRAP>    <?php echo tep_address_format($order2->delivery['format_id'], $order2->delivery, 1, '', '<br>    '); ?></td>
                           </tr>
                           <tr>
                             <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
                           </tr>
                           <tr>
                             <td>    </td>
                           </tr>
                           <tr>
                             <td>    </td>
                           </tr>
                           <tr>
                             <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                           </tr>
                         </table></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td>
                     </tr>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td>
                       <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td>
                     </tr>
                   </table></td>
                 <td width="45"></td>
                 <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                     <tr>
                       <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_01.gif" width="11" height="16" alt=""></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_02.gif" width="24" height="16" alt=""></td>
                       <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_03.gif" width="19" height="16" alt=""></td>
                     </tr>
                     <tr>
                       <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_04.gif" width="11" height="21" alt=""></td>
                       <td align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                           <tr>
                             <td align="left" valign="top"><b><?php echo ENTRY_SOLD_TO; ?></b></td>
                           </tr>
                           <tr>
                             <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                           </tr>
                           <tr>
                             <td NOWRAP>    <?php echo tep_address_format($order2->customer['format_id'], $order2->customer, 1, '', '<br>    '); ?></td>
                           </tr>
                           <tr>
                             <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
                           </tr>
                           <tr>
                             <td NOWRAP>    <?php echo $order2->customer['telephone']; ?></td>
                           </tr>
                           <tr>
                             <td NOWRAP>    <?php echo $order2->customer['email_address']; ?></td>
                           </tr>
                           <tr>
                             <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                           </tr>
                         </table></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_06.gif" width="19" height="21" alt=""></td>
                     </tr>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_07.gif" width="11" height="18" alt=""></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_08.gif" width="24" height="18" alt=""></td>
                       <td><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_09.gif" width="19" height="18" alt=""></td>
                     </tr>
                   </table></td>
               </tr>
             </table></TD>
         </tr>
         <tr>
           <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="15" alt=""></td>
         </tr>
         <tr>
           <TD COLSPAN="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
               <tr>
                 <td width="9"></td>
                 <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                     <tr>
                       <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td>
                       <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td>
                     </tr>
                     <tr>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif" width="11" height="21" alt=""></td>
                       <td align="center" bgcolor="#F2F2F2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                           <tr>
                             <td width="50%" NOWRAP> <b><?php echo INVOICE_TEXT_ORDER; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_COLON; ?></b> <?php echo tep_db_input($oID); ?></td>
                             <?php
     if (tep_not_null($order2->info['cc_number'])) {
       $this->cc_card_number_less_middle_digits = substr($order2->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order2->info['cc_number']) - 8)) . substr($order2->info['cc_number'], -4);
    ?>
                             <td width="50%" NOWRAP> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order2->info['payment_method']; ?> (<?php echo $order2->info['cc_type']; ?>)<br>
                               <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100%" height="6" alt=""><br>
                                <b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b> <?php echo $this->cc_card_number_less_middle_digits; ?></td>
                             <?php
     } else {
    ?>
                             <td width="50%" NOWRAP> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order2->info['payment_method']; ?></td>
                             <?php
     }
    ?>
                           </tr>
                           <tr>
                             <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                           </tr>
                         </table></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td>
                     </tr>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td>
                       <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td>
                       <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td>
                     </tr>
                   </table></td>
               </tr>
             </table></td>
         </tr>
         <tr>
           <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="15" alt=""></td>
         </tr>
         <tr>
           <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
         </tr>
         <tr>
           <TD COLSPAN="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
               <tr class="dataTableHeadingRow">
                 <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
                 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
                 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td>
                 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td>
                 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td>
                 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>
                 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td>
               </tr>
               <?php
      for ($i = 0, $n = sizeof($order2->products); $i < $n; $i++) {
       echo '		        <tr class="dataTableRow">' . "\n" .
         	  '	   		     <td class="dataTableContent" valign="top" align="right">' . $order2->products[$i]['qty'] . ' x</td>' . "\n" .
         	  '	   		     <td class="dataTableContent" valign="top">' . $order2->products[$i]['name'];
    
         if (isset($order2->products[$i]['attributes']) && (($k = sizeof($order2->products[$i]['attributes'])) > 0)) {
           for ($j = 0; $j < $k; $j++) {
             echo '<br><nobr><small> <i> - ' . $order2->products[$i]['attributes'][$j]['option'] . ': ' . $order2->products[$i]['attributes'][$j]['value'];
             if ($order2->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order2->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order2->products[$i]['attributes'][$j]['price'] * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . ')';
             echo '</i></small></nobr>';
           }
         }
    
         echo '	   		     </td>' . "\n" .
              '	   		     <td class="dataTableContent" valign="top">' . $order2->products[$i]['model'] . '</td>' . "\n";
         echo '	   		     <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order2->products[$i]['tax']) . '%</td>' . "\n" .
              '	   		     <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order2->products[$i]['final_price'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" .
              '	   		     <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order2->products[$i]['final_price'], $order2->products[$i]['tax']), true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" .
              '	   		     <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order2->products[$i]['final_price'] * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" .
              '	   		     <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order2->products[$i]['final_price'], $order2->products[$i]['tax']) * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n";
         echo '		        </tr>' . "\n";
      }
    ?>
               <tr>
                 <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
                     <?php
     for ($i = 0, $n = sizeof($order2->totals); $i < $n; $i++) {
       echo '      			<tr>' . "\n" .
            '      				<td align="right" class="smallText">' . $order2->totals[$i]['title'] . '</td>' . "\n" .
            '      				<td align="right" class="smallText">' . $order2->totals[$i]['text'] . '</td>' . "\n" .
            '      			</tr>' . "\n";
     }
    ?>
                   </table></td>
               </tr>
             </table></td>
         </tr>
       </table>
       <?php
    $order2s_status_history_query = tep_db_query("select * from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added");
    if (tep_db_num_rows($order2s_status_history_query)) {
    	  $has_comments = false;
    ?>
       <br>
       <br>
       <table width="100%" border="0" cellpadding="0" cellspacing="0">
         <tr>
           <td width="9"></td>
           <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
               <tr>
                 <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td>
                 <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td>
                 <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td>
               </tr>
               <tr>
                 <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif" width="11" height="21" alt=""></td>
                 <td align="center" bgcolor="#F2F2F2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                     <tr>
                       <td width="95%" NOWRAP> <b><?php echo TABLE_HEADING_COMMENTS; ?></b><br>
                         <br></td>
                     </tr>
                     <?php
        while ($order2s_comments = tep_db_fetch_array($order2s_status_history_query)) {
        	 if (tep_not_null($order2s_comments['comments'])) {
          $has_comments = true; // Not Null = Has Comments
          if (tep_not_null($order2s_comments['comments'])) {
              $sInfo = new objectInfo($order2s_comments);
    ?>
                     <tr>
                       <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0">
                           <tr>
                             <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                                 <tr>
                                   <td width="150" align="left" valign="top" class="smallText"><strong><u><?php echo TABLE_HEADING_DATE_ADDED; ?></u></strong></td>
                                   <td align="left" valign="top" class="smallText"><strong><u><?php echo TABLE_HEADING_COMMENT_LEFT; ?></u></strong></td>
                                 </tr>
                               </table></td>
                           </tr>
                         </table></td>
                     </tr>
                     <tr>
                       <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0">
                           <tr>
                             <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                                 <tr>
                                   <td width="150" align="left" valign="top" class="smallText"><?php echo tep_date_short($sInfo->date_added); ?></td>
                                   <td align="left" valign="top" class="smallText"><?php echo nl2br(tep_db_output($order2s_comments['comments'])); ?><br>
                                     <br></td>
                                 </tr>
                               </table></td>
                           </tr>
                         </table></td>
                     </tr>
                     <?php
          }
          }
        }
        if ($has_comments == false) {
    ?>
                     <tr>
                       <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0">
                           <tr>
                             <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                                 <tr>
                                   <td width="100%" align="left" valign="top" class="smallText"><?php echo INVOICE_TEXT_NO_COMMENT; ?></td>
                                 </tr>
                               </table></td>
                           </tr>
                         </table></td>
                     </tr>
                     <?php
        }
    ?>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                     </tr>
                   </table></td>
                 <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td>
               </tr>
               <tr>
                 <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td>
                 <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td>
                 <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td>
               </tr>
             </table></td>
         </tr>
       </table>
       <?php
    }
    ?>
       <br>
       <CENTER>
         <span class="smallText"><FONT FACE="Verdana" COLOR="#006699"><strong><?php echo INVOICE_TEXT_THANK_YOU; ?><BR>
         <?php echo STORE_NAME; ?><BR>
         <?php echo STORE_URL_ADDRESS; ?></strong></font></span>
       </CENTER>
    </body>
    </html>
    


  7. Thanks for your help anyway. In the code I posted I don't see anything about shipping, is that normal? What piece of code should display the shipping cost?

     

    This code:

     

    <?php
    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
      echo '         <tr>' . "\n" .
           '          <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" .
           '          <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" .
           '         </tr>' . "\n";
    }
    ?>
    

     

    but this is the same as in admin or sending to client!


  8. yellow!

     

    Did your client receives an email with HTML?

     

    If the answer is yes, u are almost there!

     

    As i understood the received e-mail / invoice dose not show shipping costs?

     

    Can u copy/paste the code of your - cataloge/includes/modules/email_invoice/templates/your_template.php

     

     

    So i can take a look!


  9. Greeting friends!

     

    1) HeaderTags_SEO_V_3.2.2

    2) Sort order by drop down menu for the product listing - LINK

     

     

    I got this problem:

     

     

    in cataloge/index.php when i open one of categories the SEO header tags are blank, but on all other pages they are working good!

     

    product listing is controlled from cataloge/includes/modules/product_listing.php

     

     

     

    Can someone help on this?


  10. I just tried to install this add-on, but I got stuck on 2_files_to_compare. I used Notepad++ to compare side by side, but I wasn't sure what to add in my original file :|

     

    Please make some changing guide, like is for Featured Products , in this way will be more users happy with this add-on.

     

    Here is a printscreen with one of many ambiguities: http://img689.imageshack.us/img689/9822/compared.jpg

     

    What I need is a way to upload an additional (different !) image to show it on mouse over. Maybe is a more simple add-on for this? I really don't need everything what Additional Images Module offers.

    I just installed Featured Products with tooltip.

     

    Thank you.

     

    If i did all right this might be a solution for you!

     

    here is a LINK for step by step instalation, i think i haven`t make any mistakes! ;) Cheers!


  11. I have found time for testing your theory, but i have an error when i try make an PDF

     

    this is the error:

     

    TCPDF ERROR: Could not include font definition file: arial

     

    But cant find any arial in new fpdf.php

     

     

    Stuid me! :P

     

    Got it solved, i did not have any arial fonts on my server, so i made them and then it all worked perfectly!

     

    p.s. for thous who are asking about the last command of making font - php -q makefont.php myfont.ttf myfont.ufm

     

    This is need to be executed from Telnet client such as Putty! just copy your files to the server and have fun! (This took a while for me to understand!)

     

    Cheers!


  12. I don't think that there is anything that is not working at all. What do you mean?

     

    Regarding buggy, it would be very constructive if you could report what bugs exactly you found

     

    Installation step by step

    Step 1 Run the sql file

    Step 2 Upload all files from folder files to upload

     

    Step 2 you open your file comparisson program

    Step 3 you load your file to the left

    Step 4 you load the addon file to the right (from folder files to compare)

    Step 5 You merge from right to left whatever is marked with BOF EOF

    Step 6 Save and upload you file

    Repeat steps for all files in folder "files to compare"

     

    If you think the "find this" replace that" way easier, or "normal", maybe you could write such a installation file after you are done, just an idea

     

    I was thinking about that, but can`t get it run property... otherwise i would not ask... and Yes i was thinking about that - "find this" "replace that"


  13. Shows on the admin panel. How to remove tax and sku?

    Thanks

     

    OPEN THIS FILE: cataloge/admin/invoice.php

     

    ad make changes

     

    for shipment:

    after this:

     

    <tr>
    <td align="left" valign="top"><b><?php echo ENTRY_SHIP_TO; ?></b></td>
    </tr>
    

    add this:

    <tr>
    <td>    <?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>    '); ?></td>
    </tr>
    

     

    for invoice adress:

     

    aftres this:

     

    <tr>
    <td align="left" valign="top"><b><?php echo ENTRY_SOLD_TO; ?></b></td>
    </tr>
    

     

    add this:

     

    <tr>
    <td>    <?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>    '); ?></td>
    </tr>
    

     

    and this (for phone and e-mail)

    <tr>
    <td>    <?php echo $order->customer['telephone']; ?></td>
    </tr>
    <tr>
    <td>    <?php echo $order->customer['email_address']; ?></td>
    </tr>
    

     

    and for tax and sku

     

    comment out this lines

     

    find this:

    <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
    <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td>
    

     

    change to this:

    <td class="dataTableHeadingContent"><?php // echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
    <td class="dataTableHeadingContent" align="right"><?php // echo TABLE_HEADING_TAX; ?></td>

     

    and find this:

     

    this is for sku or model

    <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";

     

    and change to this:

     

    <td class="dataTableContent" valign="top"></td>' . "\n";

     

    and find this:

     

    this is for tax

     

    <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" .

     

     

    change to this:

     

    <td class="dataTableContent" align="right" valign="top"></td>' . "\n" .

     

     

    ok this should to this!


  14. Installed Fancier_invoice_6.2_Fixed_2009-15-09

     

    Phone number and email show up. Ship to bill to is missing however it is store in the db.

     

    Also is this how it is supposed to look? What is missing? Thanks!

     

     

    Greetings!

     

    Is this invoice what is send to customer or this is printed at admin panel or customer prints it at users account invoice?


  15. After two sleepless nights (and a ton of smoked cigarettes - just kidding) I finally came up with a solution.

     

    I had installed PDF invoice and Pslip with FPDF. I downloaded TCPDF. I copied tcpdf.php in fpdf directory and renamed it in fpdf.php. I copied all the .php files in tcpdf directory to fpdf dir. I also copied the config and the fonts directory to fpdf directory. Then I changed the pdfinvoice.php (around line 125)

     

    class PDF extends FPDF

    in

    class PDF extends TCPDF

     

    then I Setting up a Verdana font for usage with TCPDF (described in the Utils folder) [if you need help with changing the fonts, just ask]. upload it to the fonts directory.

     

    in tcpdf.php (or now renamed fpdf.php) I replaced all the source codes courier with verdana. and that's it...now I have Croatian special characters [šđč枊ĐČĆŽ]

     

     

    This is really fantastic!!

     

    Can send me thous fonts u used - Verdana?


  16. ['quote']

     

    don`t put your answer in the quote`s but under or above ok!

     

    ['/quote']

     

     

    U can put your files on the server and give me a link.

     

    example:

    www.youradress.com/textfile1.txt

    www.youradress.com/textfile2.txt

    ...

     

    ok email them to me if it`s not possible to copy them on server!

×