Michal Siman :: ITServis.![]() 2007-05-12 09:13 | After edit some categories or products, i wanna go back to the same page in list as beferore edit. I think it is easy for doing and it will be BIG help for everybody. » Quick.Cart v2.x |
Michal Siman :: ITServis.![]() 2007-05-12 09:14 | ... i spoke about admin section ... |
treewood (OpenSolution)2007-05-12 10:15 | Michal Siman :: ITServis.
} // end function saveProduct
paste
return $aForm['iProduct'];
saveProduct( $_POST ); to
$iProduct = saveProduct( $_POST );
|
vaikis![]() 2007-05-12 14:07 | yes this will help for me too. but after editing product the page is not returning back to previous page. |
treewood (OpenSolution)2007-05-14 10:55 | Michal Siman :: ITServis., vaikis - ah ... i understand not correctly what You want :/ i thought that You want to go back to edit page not to list. If You want go back to list then it will be harder.
<input type="hidden" name="sPageToReturn" value="$_SERVER[HTTP_REFERER]" />
header( 'Location: '.$_SERVER['PHP_SELF'].'?p='.$aActions['g'].'List&sOption=save' );
to this:
header( 'Location: '.$_POST['sPageToReturn'] );
|
vaikis![]() 2007-05-14 11:19 | yes it works perfect . |