Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Improved Order Number


samantha_Scor

Recommended Posts

Posted

hi, I need a help fixing the eMail that sent out with new "Improved Order Number"

The instruction to change the email that sent out using the "Improved Order Number" is no working, any1 fix before?

 

Could some one please help me to edit the eMail that sent out when some one place a order???

Posted

I think you can find an answer @ contributions support forum.

  • 3 weeks later...
Posted
where is the link?i searched but no, please tell me if you know

 

I am having the same problem.... The file in the contrib section does not help... If you leave out the $order = new order($insert_id); From the checkout_process.php you will get a the following in the email:

Order Number:

Detailed Invoice: https://server2.hostingplex.com/~...............?order_id=40

Date Ordered: Saturday 11 February, 2006

 

Still missing the order number but this is better than :

 

ObjectProducts

 

 

If anyone knows how to fix this please help...... I dont know if the PWA contribute has anything to do with this not working 100% or not......

  • 2 months later...
Posted
I am having the same problem.... The file in the contrib section does not help... If you leave out the $order = new order($insert_id); From the checkout_process.php you will get a the following in the email:

Order Number:

Detailed Invoice: https://server2.hostingplex.com/~...............?order_id=40

Date Ordered: Saturday 11 February, 2006

 

Still missing the order number but this is better than :

 

ObjectProducts

If anyone knows how to fix this please help...... I dont know if the PWA contribute has anything to do with this not working 100% or not......

 

I justed install the dist. w/ emails and having exactly the same problem.

Would appreciate if anyone out there can advise. Thanks.

  • 2 months later...
Posted

I have the same problem. The order number in the email still appears in the old format. how can i fix this?

 

Besides, my admin order page does work! i get this error instead of the order Id:

 

Fatal error: Call to undefined function: tep_trans_id() in .../htdocs/shop/admin/orders.php on line 377

 

have checked but doesn't make sense. reviewed the changed i have made but cannot solve the issue.

 

any help will be appreciated.

Did you try? Did you fail? No matter! Try again. Fail again! But fail better!

  • 5 months later...
Posted
I have the same problem. The order number in the email still appears in the old format. how can i fix this?

 

Besides, my admin order page does work! i get this error instead of the order Id:

 

Fatal error: Call to undefined function: tep_trans_id() in .../htdocs/shop/admin/orders.php on line 377

 

have checked but doesn't make sense. reviewed the changed i have made but cannot solve the issue.

 

any help will be appreciated.

 

The reason why you will be receivingn the above error messasge, is because you did not put the following code in BOTH the /catalog/includes/functions/general.php AND the /catalog/admin/includes/functions/general.php

// Output Transaction_ID = YYMMDD-SSmmHH-0001
// $raw_date needs to be in this format: YYYY-MM-DD HH:MM:SS
// $order_id is passed from the customer order
 function tep_trans_id($raw_date,$order_id) {
if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false;

$year = (int)substr($raw_date, 2, 2);
$month = (int)substr($raw_date, 5, 2);
$day = (int)substr($raw_date, 8, 2);
$hour = (int)substr($raw_date, 11, 2);
$minute = (int)substr($raw_date, 14, 2);
$second = (int)substr($raw_date, 17, 2);

$cart_id=sprintf("%02d%02d%02d-%02d%02d%02d-%04d",$year,$month,$day,$second,$minute,$hour,$order_id);

return $cart_id;
 }

////

  • 4 weeks later...
  • 1 month later...

Archived

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

×
×
  • Create New...