Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Print Invoice From Checkout Success


Guest

Recommended Posts

Posted

I'm having problems getting my customer invoice to work. I've followed and re followed the instructions but when I click on the invoice button on checkout_success.php all that comes up is a standard catalog webpage with nothing in the center field but a blank.

 

I'm using STS template system so I think that this may be causing an issue.

 

Has anyone got a Print Invoice or a Print Reciept working with sts?

 

If so could someone please let me know how you went about it.

 

Regards

 

Fred

Posted

Well I've managed to get something to come up in the empty space now, but instead of the invoice.php its account_history.php :angry:

 

I'm having problems getting my customer invoice to work. I've followed and re followed the instructions but when I click on the invoice button on checkout_success.php all that comes up is a standard catalog webpage with nothing in the center field but a blank.

 

I'm using STS template system so I think that this may be causing an issue.

 

Has anyone got a Print Invoice or a Print Reciept working with sts?

 

If so could someone please let me know how you went about it.

 

Regards

 

Fred

Posted

Try the "Print Order Reciept" contribution, that should do it for you.

 

Bob G.

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Posted

Nope I've tried that contribution,

All I get when I click print reciept is my standard page layout with a blank space in the center. Im sure that my normal page layout shouldn't come up at all, and that it should be just a popup window with the invoice in it that is printable.

 

:(

 

Try the "Print Order Reciept" contribution, that should do it for you.

 

Bob G.

Posted

Ok Ok, I'm now sure it has something to do with this code at the top of Invoice.php that came witht the print invoice contribution.

  require('includes/application_top.php');
 
 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

 if (!isset($HTTP_GET_VARS['oID']) || (isset($HTTP_GET_VARS['oID']) && !is_numeric($HTTP_GET_VARS['oID']))) {
   tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }
 
 $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['oID'] . "'");
 $customer_info = tep_db_fetch_array($customer_info_query);
 if ($customer_info['customers_id'] != $customer_id) {
   tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }
 require('includes/languages/english/invoice.php');

 

And thats why I keep getting redirected to account history rather than being able to print the invoice.

 

But the big question is how do I fix it? Any clues? :blink: Anyone?

 

For some reason Oid isn't getting passed over

 

Nope I've tried that contribution,

All I get when I click print reciept is my standard page layout with a blank space in the center. Im sure that my normal page layout shouldn't come up at all, and that it should be just a popup window with the invoice in it that is printable.

 

:(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...