Jump to content

Prestashop 1.5.3.1 customer new order email not showing order number


Recommended Posts

Hi.

 

My merchant email new order notification is showing the order number correctly, but the customer confirmation and other emails are both showing the order reference instead of the number.

 

In the translations both emails show {order_name}

 

I am using Prestashop 1.5.3.1 and the ET Wedding Theme by EGG

post-581679-0-91664600-1373380523_thumb.jpg

Link to comment
Share on other sites

Hi,

 

open classes/PaymentModule.php.

Now, look for {order_name}. Once you find this, add this into the array, right below.

'{id_order}' => (int)($order->id),

 

You've just defined new Smarty variable. If you go to to /mails/IsoOfYourCountry/Order_conf.html, you can change the variable {order_name} to {id_order} and it will automatically send the ID order next time you recieve an order.

  • Like 1
Link to comment
Share on other sites

I forgot to mention, there are two {order_name} variables, add it below both of them!

And by opening Order_conf.html you've replaced the variable only in one email, not in all.

 

There might be an easier solution, look for a free module that enables you to do whatever you want with the id order.

http://www.prestashop.com/forums/topic/218257-module-change-order-reference-using-order-id-andor-cart-id/

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...