detriMENtal Posted June 20, 2005 Posted June 20, 2005 hi, on the checkout_confirmation.php page, which gives you as print out of your delivery address, billing address and it prints out the relevant payment option depending what you selected on the previous page (payment infomration). I was wondering, how i could alter this code, so i could do a check to see which payment module is being used. for example. If paymate was selected, i want to print out another buttons, but if other payment options are selected, i dont want this button. I know it could be added to the payment module function which prints out each payment option. However, i specifically want to be able to 'check' which payment type was selected, in the checkout_confirmation page. if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } This code above prints the payment module correct, so how can i do a check to see which payment module is being selected. Thank you guys in advance. Quote
RL2000 Posted June 20, 2005 Posted June 20, 2005 well, I have modified my code to much to know the exact name, but you can get the payment something like this: $order-info['payment_medthod'] Quote Insert clever remark here
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.