tanks for correcting the syntax. In fact i am not used to the zencart core functions, but it seems important to stick to using them.
I have an issue with another core function
the zen_redirect() function makes the process button disappear,
although the "URL" is correctly formatted with all the query params.
(displays correctly with echo)
PHP Code:
// Build the data and actions to process
// when the "Submit" button is pressed on the order-confirmation screen.
//PROCESS BUTTON **********************************************************
Some LINES are SKIPPED for UNCLUTTERED OVERVIEW
***********
function process_button() {
if($amount) {
if($transactions_id = $db->Insert_ID()) { // Generates reference
if(fields){ // Verifies parameters in form
$redirect_params = array();
} // endif (Verifies parameters in form)
} //endif (transactions_id = $db->Insert_ID)
} // end if amount
// Redirect to payment page
echo $redirectit = $url.'?'.implode('&', $redirect_params);
zen_redirect($redirectit);
return false;
// exit();
} // end function(processbutton);
Also, i am a bit confused by the fact that the echo (zen_redirect) happens,
without having displayed the button nor clicked it.
i tried, but i can't find the
my next try ... include application_top if the redirect function is declared within that one.
Bookmarks