wider Posted January 21, 2003 Posted January 21, 2003 Dear Colleagues, today, I've spend 10 hrs trying to sort out a weired problem. I am using a mid december 2002 snapshopt, the 'Must Agree to Terms' contribution and TWO payment modules. When the tickbox to agree with the terms is not ticked in checkout_confirm, the value fals is sent on the checkout_process, where we're redirected back to checkout_confirm and an error SHOULD be displayed. This works with just ONE payment module active. Once there are two or more, a if-clause in checkout_confirm seems to kick_in an redirects us to checkout_payment, where I DON'T want to go. It seems the selected payment methods are being lost somewhere on the way. // load the selected payment module require(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment($payment); if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); } if (is_array($payment_modules->modules)) { $payment_modules->pre_confirmation_check(); } I've tried to set the '(sizeof($payment_modules->modules) > 1)' to 2, but I guess there is a good reason for it being '1'. Is there anything I can do so that if-clause doesn't kick in, but the error message is being displayed as is should do? I am putting my last hopes on you guys! Thanks in advance! German
Guest Posted January 21, 2003 Posted January 21, 2003 one post will do fine.....no need for two posts on the same subject sounds like the checkbox value is not getting posted from the previous page. make sure it is within the form. cheers barry
Guest Posted January 21, 2003 Posted January 21, 2003 additionaly a url may help your case a little also the code you posted, what file is it from? cheers barry
wider Posted January 22, 2003 Author Posted January 22, 2003 Thanks, Barry, the code is from the file 'checkout_confirmation.php' as outlined in the text. The URL is http://looks.seligmanfox.de but as I go on, the code of that page will obviously change. So it's not totally representative of my problem. Yes, the checkbox is inside, the form, but the value of of the 'selected payment method' seems to get lost. In my defense: My two postings were totally independend problems. They concerned the same process but have totally different causes. :wink: Thanks for your input! Greetings from Lake Constance. German
Recommended Posts
Archived
This topic is now archived and is closed to further replies.