Post by HAO » Tue Dec 18, 2018 4:14 pm

The payment module I use, Only accept non-repeating Order ID.

Two years ago I deleted all records of orders and recalculate, A few days ago the order number to reach the same number I used two years ago, For this reason, an error message appears repeat orders.

So I have to find a way to add text prefixes in front of ['order_id'], What should I do?

E.g: AA (Order ID Prefix) 26769 (Order ID)
Order ID: AA 26769 (Order ID that can be sent to the payment gateway company website)

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm

Post by grgr » Mon Jan 07, 2019 12:40 pm

You can't. the order id is an auto incrementing number.

Not quite sure of the error you are getting as you've not really said, on the face of it it seems a bit odd.

You could alway alter the table and increasw the starting number for the auto increment value to something new and far above older orders, but I suspect that is not the actual problem here.

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by kestas » Mon Jan 07, 2019 3:58 pm

By default you can't. But if you are familiar with php coding you can. If no, you can place request for custom job in commercial forum.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am
Who is online

Users browsing this forum: No registered users and 92 guests