SaLiC Posted November 6, 2015 Share Posted November 6, 2015 Hi I am using PS 1.6.0.14 and wish to change the order conf. email to customers. I need to add product ID and remove reference. I did look in the order_conf.html, and changed the label, but I don't know where to change what is displayed for {products}. So I hope someone can help. Link to comment Share on other sites More sharing options...
yaniv14 Posted November 7, 2015 Share Posted November 7, 2015 The list of products is being populated in classes/PaymentModule.php in ValidateOrder function. So you can override that function and make you own products layout or just edit that file and look for $product_var_tpl and change $product['reference'] to $product['id'] 1 Link to comment Share on other sites More sharing options...
SaLiC Posted November 7, 2015 Author Share Posted November 7, 2015 THANKS! Is this function used in other places? Link to comment Share on other sites More sharing options...
yaniv14 Posted November 7, 2015 Share Posted November 7, 2015 ValidateOrder is the main function that run in every payment module to write the order in the database. The email template vars part I believe on run on one occasion which is the order confirmation mail to the client. 1 Link to comment Share on other sites More sharing options...
SaLiC Posted November 8, 2015 Author Share Posted November 8, 2015 Thank you very much for your help! Link to comment Share on other sites More sharing options...
maximilian8777 Posted September 26, 2016 Share Posted September 26, 2016 I try but for me 1.6.1.7 not working.. any suggestions? Link to comment Share on other sites More sharing options...
yaniv14 Posted September 26, 2016 Share Posted September 26, 2016 Look into mailalerts module and search for the hook that run after the order is validated. Link to comment Share on other sites More sharing options...
maximilian8777 Posted September 26, 2016 Share Posted September 26, 2016 I talk about the mail that send to customers, not to myself. I need in the order conf that arrive to customers to show product id instead product reference Link to comment Share on other sites More sharing options...
yaniv14 Posted September 26, 2016 Share Posted September 26, 2016 My bad. Did you override the validateOrder function from classes/PaymentModule? Did you deleted class_index from cacha? 1 Link to comment Share on other sites More sharing options...
maximilian8777 Posted September 30, 2016 Share Posted September 30, 2016 Ok i find the solution Presta 1.6.1.7 To have Product ID instead of Product Reference in customer order confirmation mail In PaymantModule.php you have to: change 'reference' => $product['reference'], in to 'id' => $product['id_product'], But you have also change in mails/order_product_list.tpl at line 9 {$product['reference']} to {$product['id']} 1 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