Order invoice after form submission?

etemorom

Avatar: etemorom

2007-05-28 07:30

After de order form is submitted the next page that appears is with the message : $lang['Order_finished'] “ , and down is a link with a print order option.

If I click on the print link a pop-up page appears with an invoice of the order.
How can I make that this page with the invoice appears after order form is submitted instead of the page with the message?

» Quick.Cart v1.x

merci

No avatar

2007-05-28 10:06

etemorom - try in file actions_client/orders.php replace this line:

$content .= $tpl->tbHtml'messages.tpl''ORDER_SAVED' );

with this code

if( isset( $iOrder ) && is_numeric$iOrder ) ){
          
$aData throwOrder$iOrder );
          if( isset( 
$aData ) && is_array$aData ) && $aData['iClient'] == $_SESSION['iCustomer'] &&       $aData['iStatus'] > ){
            
$aData['sComment']  = ereg_replace'\|n\|'"<br />" $aData['sComment'] );
            
$content .= $tpl->tbHtml'orders_print.tpl''SHOW' );
            if( 
checkOrderProducts$iOrder ) === true ){
              
$content .= listBasket$iOrder'orders_print.tpl' );
              
$aData['fSummary'] = tPrice$aData['fCourierPrice'] + $aList['fSummary'] );
              
$content .= $tpl->tbHtml'orders_print.tpl''COURIER' );
            }
          }
          else{
            
$content .= $tpl->tbHtml'messages.tpl''ERROR' );
          }
        }
        else
          
$content .= $tpl->tbHtml'messages.tpl''ERROR' );

idaryl

Avatar: idaryl

2007-05-29 12:44

I tried this, but all I got was a blank (empty) page.....

idaryl

Avatar: idaryl

2007-05-30 08:41

Hello etemorom,

did you get this working - if so, how?

idaryl

Avatar: idaryl

2007-06-05 07:45

Any info on this?

etemorom

Avatar: etemorom

2007-06-05 11:01

no idaryl...it;s not working

Back to top
about us | contact