Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

RUN A SCRIPT AFTER CONFIRM ORDER


jcromero

Recommended Posts

I need your help

 

I want to run a script and display a new screen after pulse the button Confirm Order when select a type of pay.

 

How I can do this?

 

Thanks!

 

The script is:

 

<?

$rch = $total; /* I need the variable of Total or order */

$sto = $nameofcustomer; /* I need the name of customer */

$ter = $customeraddress; /* I need customer address */

 

$cist=function1($rch,$sto,$ter);

?>

<HTML>

<HEAD>

<script language="JavaScript">

function sendform(){

if(self.name.length == 0) {

self.name = "gotoss";

}

var twnd = window.open("","wnd","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhisto

ry=0,width=760,height=750");

document.form1.return_target.value=self.name.toString();

document.form1.target = "wnd";

document.form1.submit();

}

</script>

 

<TITLE>Purchase Emulation</TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">

</HEAD>

 

<BODY>

 

Valor=<?echo $cist?> <BR>

<a href="#" onClick="sendform();">

Test </a>

<FORM METHOD="POST" NAME ="form1" ACTION="https://test.sa.com:9090/ass/qw7e.jsp">

<input type="hidden" name="total" value="<?php echo $rch; ?>">

<input type="hidden" name="sto" value="<?php echo $sto; ?>">

<input type="hidden" name="ter" value="<?php echo $ter; ?>">

<input type="hidden" name="return_tart" value="">

<input type="hidden" name="urlBack" value="http://www.xxx.xxx:8080/demo/ccion.php">

</FORM>

 

</BODY>

</HTML>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...