Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout confirmation - checking which payment ...


detriMENtal

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...