kamalpreet Posted October 17, 2014 Share Posted October 17, 2014 I am using prestashop 1.5.4 and i need to show order detail on payment accepted email. Right now i am only able to show total paid.Please help me.. Link to comment Share on other sites More sharing options...
NemoPS Posted October 17, 2014 Share Posted October 17, 2014 Order detail...? What exactly? Which info? Link to comment Share on other sites More sharing options...
kamalpreet Posted October 17, 2014 Author Share Posted October 17, 2014 (edited) Thanks for reply Sir. I need to show Total product price,Shipping Charges,total amount payable,payment method etc..on payment accepted email Edited October 17, 2014 by kamalpreet (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 18, 2014 Share Posted October 18, 2014 That is extremely weird it's supposed to show up by default. Are you using overrides for the PaymentModule class? Is this happening with all payment methods? If none of the previous, get a fresh 1.5.4 from this site (in the menu, dev/old versions) and replace the order_conf templates Link to comment Share on other sites More sharing options...
kamalpreet Posted October 20, 2014 Author Share Posted October 20, 2014 No Sir i am not using any override paymentModule class.i have also checked other payments there also its only showing total paid value.order_conf is working fine and i also replaced template files of payment,order_conf and even i also replaced PaymentModule file but nothing worked :-(. Link to comment Share on other sites More sharing options...
NemoPS Posted October 20, 2014 Share Posted October 20, 2014 Hm, ok let's try printing out something. At about line 549 of paymentmodule, add this var_dump($this->formatProductAndVoucherForEmail($products_list)); die(); This will kill the script when you order, see if you get the html printed out Link to comment Share on other sites More sharing options...
kamalpreet Posted October 20, 2014 Author Share Posted October 20, 2014 (edited) Sir i tried this and during checkout process i got an error Missing argument 2 for ToolsCore::displayDate(), called in ..../modules/mailalerts/mailalerts.php on line 261 and defined in ..../classes/Tools.php on line 613 and string(433) " USPLabs Mordern BCAA, 150 Tablets र 1,919.20 1 र 1,919.20 Edited October 20, 2014 by kamalpreet (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 21, 2014 Share Posted October 21, 2014 How does the declaration of tools::displayDate look like? it should have 1 required argument only Link to comment Share on other sites More sharing options...
kamalpreet Posted October 21, 2014 Author Share Posted October 21, 2014 (edited) it is like this displayDate($date, $id_lang , $full = false, $separator = '-'). maybe the problem is with $id_lang. so for that i assigned $id_lang = 1 because its having 1 value.i again checked checkout process now its page : ....../module/cashondelivery/validation is showing totally blank Edited October 21, 2014 by kamalpreet (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 22, 2014 Share Posted October 22, 2014 Use id_lang = null instead, it's how it should be Link to comment Share on other sites More sharing options...
kamalpreet Posted October 27, 2014 Author Share Posted October 27, 2014 (edited) Sir i assigned value id_lang = null and also my PS_MODE_DEV is true but on ....../module/cashondelivery/validation its still showing blank page Edited October 27, 2014 by kamalpreet (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 27, 2014 Share Posted October 27, 2014 Is it still showing the same error? Link to comment Share on other sites More sharing options...
kamalpreet Posted October 27, 2014 Author Share Posted October 27, 2014 No Sir its not showing any error its only showing blank page.i was just checking OrderHistory.php under classes/order may be i'll able to find solution. Link to comment Share on other sites More sharing options...
kamalpreet Posted October 27, 2014 Author Share Posted October 27, 2014 Sir i manage to fetch values in payment accept email. i assigned my required values under classes/order/OrderHistory.php in addWithemail function.Problem solved..:-) Link to comment Share on other sites More sharing options...
reinoplantae Posted April 12, 2017 Share Posted April 12, 2017 Hi, i need exactly the same thing but couldn't figure out how to do that. Need to show the order details (products list, prices, shipping, total) in payment confirmation email (payment.html), like it shows on the order_conf.html table. I am using PS 1.6.0.9 Link to comment Share on other sites More sharing options...
Recommended Posts