Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help - modification in checkout procedure


Gsmtronix

Recommended Posts

Posted

Hi,

 

I don't want to use billing in my checkout procedure, so I've passed that step.

 

The payment and shipping options are selected in the shipping page at the same time. I have bank transfer and COD modules installed, bank transfer has a fixed fee, meanwhile COD is by table rate.

 

What I can't get to work is to display the bank transfer details in the checkout confirmation and send them in the e-mail also.

 

I'm not a PHP expert, but I was wondering if that can't be made with something like an if clause (in very general way):

 

If "shipping" = "bank transfer" then echo bank transfer details and send e-mail

 

Any help is welcome.

 

Thank you in advance.

Posted

Edit your catalog/includes/modules/payment/banktransfer.php file, and in the confirmation() member function return the appropriate information.

 

Take a look at the moneyorder.php file for an example.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

I'm not using payment modules, only shipping.

 

I'm using flat shipping as bank transfer payment and I want that the bank details show up in the confirmation page when this "shipping" is selected, and send it in the e-mail also.

 

I've check the confirmation() function from bank transfer module,

 

function confirmation() {

global $HTTP_POST_VARS;

 

$confirmation = array('title' => $this->title . ': ' . $this->check,

'fields' => array(array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_DESCRIPTION)));

 

return $confirmation;

}

 

How do I use it with the shipping module? Where do I put the bank details?

Posted

It won't work as a shipping module, only as a payment module.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...