This topic is locked

Bank transfer instead of PayPal

8/8/2008 4:18:43 AM
Shopping Cart Template general questions
S
shoppy author

Hi all,
Here in the Netherlands we don't use PayPal that often.

When I buy something inside of Holland we use a bank tranfer.
When you pllace an order and want to pay we get an option that alows us to pay by bank.

Is this possible in Shopping Cart also?
If a costumer wants to pay he just gets an email with the order-number and the info of how to pay.

I would like that option.
Please help
Regards,
John

S
shoppy author 8/21/2008

Hi all,

Here in the Netherlands we don't use PayPal that often.

When I buy something inside of Holland we use a bank tranfer.
When you pllace an order and want to pay we get an option that alows us to pay by bank.

Is this possible in Shopping Cart also?
If a costumer wants to pay he just gets an email with the order-number and the info of how to pay.

I would like that option.
Please help
Regards,
John


Nobody?

J
Jane 8/25/2008

John,
you need to create new option to the pay_types table. Then check selected pay type and send email if needed in the AfterAdd event.

Here is a sample:

if ($values["pay_type"]=="BT") //BT - bank transfer

{

//**send email to customer***

$select = "select * from emails where email='BT'";//BT - bank transfer

$rs_email = db_query($select,$conn);

$data_email = db_fetch_array($rs_email);

$email=$_SESSION["UserID"];

$message = $data_email["email_body"];

$subject=$data_email["email_subject"];

mail($email, $subject, $message);

}



Don't forget to create email template for Bank Tranfer payment in the emails table.

S
shoppy author 8/25/2008

Thanks Jane,
This works.

But the emails are not sended in html.

How can we solve this?
John

J
Jane 8/26/2008

John,
to send email in HTML you need to add additional headers to the mail() function:

// To send HTML mail, the Content-type header must be set

$headers = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

...

// Mail it

mail($email, $subject, $message, $headers);

S
shoppy author 8/26/2008

Nope, don't work.
Trying to send you the whole lot but keep getting the max. 5 MB warning %&%$#^@#%!@

S
shoppy author 8/27/2008

Nope, don't work.

Trying to send you the whole lot but keep getting the max. 5 MB warning %&%$#^@#%!@


Ok, got it to work.
But if I change the status (the item is shipped) it does not send an email. (the email SHIPPED)

Howcome?
John

J
Jane 9/3/2008

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.