simberak Posted April 11, 2016 Share Posted April 11, 2016 Hi all, I am trying to change the id refs in mail New_order to normal number (order id). I found here on the forum, that I need to change {order_name} in PaymentModule.php in /classes from '{order_name}' => $order->getUniqReference(), to '{order_name}' => sprintf('#%06d', (int)$order->id), but it still doesnt work I am deseprate from it. I even tried $order->id only and other tips I found, but it looks like if I make whatever change in that {order_name} in PaymentModule.php, it still shows that damn GFXFHHHJGV in incoming mail instead of number like 11441. Can anybody pls help with that? Am I doing somethink wrong? Thank you very much... Link to comment Share on other sites More sharing options...
tuk66 Posted April 11, 2016 Share Posted April 11, 2016 Try sprintf('%06d', (int)$order->id) Link to comment Share on other sites More sharing options...
simberak Posted April 11, 2016 Author Share Posted April 11, 2016 Thank you, I tried that and still nothing... It really looks like that PaymentModule.php isnt that right file to update, because id do absolutely NOTHING. I found that mail new_order is in mailalert module, so shouldnt I change something in that module instead od classes/PaymentModule.php? Oh and I have PS 1.6.1.4 Thank you Link to comment Share on other sites More sharing options...
yaniv14 Posted April 11, 2016 Share Posted April 11, 2016 The new_order from mail alerts module only reply to the merchant not the customer. Are you looking the change the mail that goes to the customer or the merchant (shop admin)? Link to comment Share on other sites More sharing options...
simberak Posted April 13, 2016 Author Share Posted April 13, 2016 Hi, thanks, I found that, I needed to edit mailalerts module In mails to customers the order id is done good Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now