Jump to content
codochi

Change Order Reference to Number order ID

Recommended Posts

Hi!

 

How can I change exist record (order reference: UADEWMKLD) to number order ID?

Please help :(

 

post-707850-0-78945600-1437322089_thumb.png

Share this post


Link to post
Share on other sites

Thank you for your sharing.

I used that module but older order reference have not changed.

Please see image in my post

Share this post


Link to post
Share on other sites

References only change after the time you've installed the module, from what I remember. So olnly for new orders it will change like module is coded for. For any problem with the module, please write on the module topic, as the developer is answering there.

Edited by selectshop.at (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
$query = 'select id_order from '._DB_PREFIX_.'orders where reference = "'.$reference.'"';

$order = Db::getInstance()->getRow($query);

var_dump($order);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More