Hi all,

#1
Am i allowed to post my website here so you can seethe issue, or is that advertisng? Dont want to get a b*llocking on first post! ;)

2#
I have developed a cleaning website using the latest version of Zen and installed the pop-up invoice contribution.

http://www.zen-cart.com/index.php?ma...oducts_id=1613

The trouble i am having is the install works fine on the checkout success, and the link displays on the account history page, but it does not "pop-up" or work at all.

The pop-up address or url shows in the bottom left and the java script seems to display there!? It just will not pop-up.

I have checked both urls to see if theirs any difference. By that im mean i clicked on both "links" located in checkout & account history pages and both return the same address and displays the correct i.d etc .

Please could someone help me as we have a static website for our business at present, but im desperately trying to get this install working for my customers we currently have. I trying to skip manuel invoices for customers ad zen works at treat!

Thanks for looking and any advice may spare me some embarrasment

The code i am using for the tpl_account_history_info_default.php is below with the javascript at the bottom as instructed

PHP Code:
<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=account_edit.<br />
 * Displays information related to a single specific order
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_account_history_info_default.php 6247 2007-04-21 21:34:47Z wilt $
 */
?>
<div class="centerColumn" id="accountHistInfo">

<div class="forward"><?php echo HEADING_ORDER_DATE ' ' zen_date_long($order->info['date_purchased']); ?></div>
<br class="clearBoth" />

<table border="0" width="100%" cellspacing="0" cellpadding="0" summary="Itemized listing of previous order, includes number ordered, items and prices">
<caption><h2 id="orderHistoryDetailedOrder"><?php echo HEADING_TITLE ORDER_HEADING_DIVIDER sprintf(HEADING_ORDER_NUMBER$_GET['order_id']); ?></h2></caption>
    <tr class="tableHeading">
        <th scope="col" id="myAccountQuantity"><?php echo HEADING_QUANTITY?></th>
        <th scope="col" id="myAccountProducts"><?php echo HEADING_PRODUCTS?></th>
<?php
  
if (sizeof($order->info['tax_groups']) > 1) {
?>
        <th scope="col" id="myAccountTax"><?php echo HEADING_TAX?></th>
<?php
 
}
?>
        <th scope="col" id="myAccountTotal"><?php echo HEADING_TOTAL?></th>
    </tr>
<?php
  
for ($i=0$n=sizeof($order->products); $i<$n$i++) {
  
?>
    <tr>
        <td class="accountQuantityDisplay"><?php echo  $order->products[$i]['qty'] . QUANTITY_SUFFIX?></td>
        <td class="accountProductDisplay"><?php echo  $order->products[$i]['name'];

    if ( (isset(
$order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
      echo 
'<ul id="orderAttribsList">';
      for (
$j=0$n2=sizeof($order->products[$i]['attributes']); $j<$n2$j++) {
        echo 
'<li>' $order->products[$i]['attributes'][$j]['option'] . TEXT_OPTION_DIVIDER nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])) . '</li>';
      }
        echo 
'</ul>';
    }
?>
        </td>
<?php
    
if (sizeof($order->info['tax_groups']) > 1) {
?>
        <td class="accountTaxDisplay"><?php echo zen_display_tax_value($order->products[$i]['tax']) . '%' ?></td>
<?php
    
}
?>
        <td class="accountTotalDisplay"><?php echo $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true$order->info['currency'], $order->info['currency_value']) . ($order->products[$i]['onetime_charges'] != '<br />' $currencies->format(zen_add_tax($order->products[$i]['onetime_charges'], $order->products[$i]['tax']), true$order->info['currency'], $order->info['currency_value']) : ''?></td>
    </tr>
<?php
  
}
?>
</table>
<hr />
<div id="orderTotals">
<?php
  
for ($i=0$n=sizeof($order->totals); $i<$n$i++) {
?>
     <div class="amount larger forward"><?php echo $order->totals[$i]['text'?></div>
     <div class="lineTitle larger forward"><?php echo $order->totals[$i]['title'?></div>
<br class="clearBoth" />
<?php
  
}
?>

</div>

<?php
/**
 * Used to display any downloads associated with the cutomers account
 */
  
if (DOWNLOAD_ENABLED == 'true') require($template->get_template_dir('tpl_modules_downloads.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_downloads.php');
?>


<?php
/**
 * Used to loop thru and display order status information
 */
if (sizeof($statusArray)) {
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0" id="myAccountOrdersStatus" summary="Table contains the date, order status and any comments regarding the order">
<caption><h2 id="orderHistoryStatus"><?php echo HEADING_ORDER_HISTORY?></h2></caption>
    <tr class="tableHeading">
        <th scope="col" id="myAccountStatusDate"><?php echo TABLE_HEADING_STATUS_DATE?></th>
        <th scope="col" id="myAccountStatus"><?php echo TABLE_HEADING_STATUS_ORDER_STATUS?></th>
        <th scope="col" id="myAccountStatusComments"><?php echo TABLE_HEADING_STATUS_COMMENTS?></th>
       </tr>
<?php
  
foreach ($statusArray as $statuses) {
?>
    <tr>
        <td><?php echo zen_date_short($statuses['date_added']); ?></td>
        <td><?php echo $statuses['orders_status_name']; ?></td>
        <td><?php echo (empty($statuses['comments']) ? '&nbsp;' nl2br(zen_output_string_protected($statuses['comments']))); ?></td> 
     </tr>
<?php
  
}
?>
</table>
<?php ?>

<hr />
<div id="myAccountShipInfo" class="floatingBox back">
<?php
  
if ($order->delivery != false) {
?>
<h3><?php echo HEADING_DELIVERY_ADDRESS?></h3>
<address><?php echo zen_address_format($order->delivery['format_id'], $order->delivery1' ''<br />'); ?></address>
<?php
  
}
?>

<?php
    
if (zen_not_null($order->info['shipping_method'])) {
?>
<h4><?php echo HEADING_SHIPPING_METHOD?></h4>
<div><?php echo $order->info['shipping_method']; ?></div>
<?php } else { // temporary just remove these 4 lines ?>
<div>WARNING: Missing Shipping Information</div>
<?php
    
}
?>
</div>

<div id="myAccountPaymentInfo" class="floatingBox forward">
<h3><?php echo HEADING_BILLING_ADDRESS?></h3>
<address><?php echo zen_address_format($order->billing['format_id'], $order->billing1' ''<br />'); ?></address>

<h4><?php echo HEADING_PAYMENT_METHOD?></h4>
<div><?php echo $order->info['payment_method']; ?></div>
</div>
<br class="clearBoth" />
</div>

<!--bof added lines by popup_invoice_print_v1.1 module box -->

<div class="centerColumn" id="accountHistInfo" colspan="2" align="center">
<?php
         
echo '<br />  <br />';
         echo 
'<hr witdth=100%>';
         echo 
TEXT_ACCOUNT_INVOICE_PRINT;
         echo 
'<h4>';
         echo 
'<a href="javascript:popupWindow(\'' .
    
zen_href_link('popup_print_invoice&order_id=' $_GET['order_id']) .
'\')">' .
    
TEXT_PRINT_RECEIPT '</a> </h4>';
?>
    </div>
 
<!--eof added lines by popup_invoice_print_v1.1 module box -->