SatishMasani Posted January 15, 2016 Share Posted January 15, 2016 Hi Guys, I need a little customization in my prestashop website, I am using prestashop version 1.6.0.14, I am using Agile Multiple Seller Module , One Page Checkout Module, and PrestaSMS module. I want to send a email to customer,vendor and admin when the order-status is changed to Cancelled by the admin. Currently prestashop sends a mail to customer when an order is cancelled. I want to implement same notification system to admin and vendors. Note: I have multiple vendor's who sell on on my store, so associated vendor should get email when they are product is cancelled. Anyone any idea how to go about it. Thank You. Link to comment Share on other sites More sharing options...
NemoPS Posted January 18, 2016 Share Posted January 18, 2016 I think it's near to impossible to treat this in the forum, being such a specific customization. If you are a developer, the only suggestion I can make is to try to hook something to OrderStatusUpdate, check the status, if it's cancelled, use the AgileSeller helper class to get the order's seller, and send the email out. Link to comment Share on other sites More sharing options...
SatishMasani Posted January 19, 2016 Author Share Posted January 19, 2016 Hello Sir, Thank You for your suggestions. Will try to work out on this and post it as soon as done. Link to comment Share on other sites More sharing options...
SatishMasani Posted February 9, 2016 Author Share Posted February 9, 2016 Hello Everyone, I have tried to add hookActionOrderStatusPostUpdate() in mailalerts module i want to get current order details like qty , price , merchant name(vendor),shop email and customer details. how do i get that when this hook is executled for the particular order. Link to comment Share on other sites More sharing options...
NemoPS Posted February 10, 2016 Share Posted February 10, 2016 I never used that hook, but OrderStatusUpdate works. You need to access $params variables from there. It should hold the order object (orderObj, if I am not mistaken) Link to comment Share on other sites More sharing options...
SatishMasani Posted February 11, 2016 Author Share Posted February 11, 2016 Hello Nemo , Thanks for your suggesstions. i used var_dump($params); die(); to check which parameters are returned but i didn't find order object, However i used the following method to retrieve respective object. $order = new Order((int)$params['id_order']);// To get Order Details $customer = new Customer((int)$order->id_customer);//To get Customer Details $products = $order->getProducts();//To get Product Details. 1 Link to comment Share on other sites More sharing options...
SatishMasani Posted February 12, 2016 Author Share Posted February 12, 2016 Hello Guys, I require one help i a m using Agile Multi-Seller Module, I am able to send mails to the admin i.e merchants, how do i get seller details in this hook ? i require seller details like Seller First Name, Seller Last Name and Email Address of the product in cart . Thank You in Advance. 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