Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fancier Invoice & Packing Slip 6.1


HelleM

Recommended Posts

Installed the 621 version

 

Ehen a customer log on - i only want "account_history_info.php" to be default.

All i want is a PRINT button - and then the invoice turns up....

 

So I put in this in the top of the page:

 

<script language="javascript">

<!--

function popupPrintReceipt(url) {

window.open(url,'popupPrintReceipt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re

sizable=yes,copyhistory=no,width=750')

}

//-->

</script>

________________

 

and this

 

<a href="java script:popupPrintReceipt('<?php echo tep_href_link(FILENAME_PRINT_MY_INVOICE, tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'); ?>')"><?php echo tep_image_button('button_print_order.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?>

 

where the image Print should be

 

 

But it does not work

It want's this

 

FILENAME_PRINT_MY_INVOICE

 

 

Has anybody done this - I mean, kept the original "account_history_info.php" file and added a print out order button???

 

 

Helle :-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...