Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reference number


songbird

Recommended Posts

Posted

Hello geniuses!

 

Ok a little more help needed here please. How do I get my shop to give my customers their reference number for banking purposes, so that they can use that as a reference when transferring their money?

 

Thanks

 

Song

Posted

Ok, I just saw that it sends an order number on the email it sends to the person, sooooooooooo I assume that would be the reference?

Posted

ok let me rephrase my question....where do I edit the wording that goes out on the email? I would need guidance to the directory and file pretty please

 

:D

Posted

I think that the order confirmation email is cobbled together in catalog/checkout_confirmation.php , using elements defined in catalog/includes/languages/english/checkout_confirmation.php. I can't saw for sure, it's a bit unclear to me, the way it's set up.

 

Jeremy

Posted

Thank you Jeremy!

 

Can you tell me how I can get the email that goes out to add the order number at the bottom where it gives the banking details for them to add as their reference when transferring?

 

Regards

 

Song

Posted

Does your payment module already add the text about the bank transfer? Do you want the order number on top where it normally is, and add an extra copy down at the bottom?

 

If these are both the case, then in the .../languages/english/modules/payment/... file that defined the text for your payment module you should be able to add a sentece at the end stating that the order number is also your bamking reference number. Then you can copy the line from the beginning of that section in order_process.php and paste it in again after the payment method code. I think this should do it, but I haven't tested it.

 

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
                   EMAIL_SEPARATOR . "\n";
   $payment_class = $$payment;
   $em  if (is_object($$payment)) {
   ail_order .= $payment_class->title . "\n\n";
   if ($payment_class->email_footer) { 
     $email_order .= $payment_class->email_footer . "\n\n".
                EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n";
   }
 }

 

Only the very last line was added, and the semicolon on the line above it was changed to a period.

 

Jeremy

  • 4 weeks later...

Archived

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

×
×
  • Create New...