Post by manatarka@gmail.com » Sat Apr 08, 2017 3:52 am

I need to email the selected Product options in the form of inquiry, without adding the product to the cart. Below is the code which sends the inquiry to the email, but I am not able to add the Product options ot it. Please help. The version is 2.3.0.2, default template.

Code: Select all

 if (!isset($json['error'])) {
                    
                    //Send mail to stor owner
                    $subject = sprintf($this->language->get('heading_title'), $this->request->post['product_name']);
                    
                    $message = 'Hello Admin,<br/><br/>';
                    $message .= 'User send you Enquiry for product <strong>' . $this->request->post['product_name'] . '</strong><br/><br/>';
                    $message .= '<strong>' . $this->language->get('entry_name') . ': </strong>' .$this->request->post['name']. "<br/>";
                    $message .= '<strong>' . $this->language->get('entry_email') . ': </strong>' .$this->request->post['email']. "<br/>";
                    $message .= '<strong>' . $this->language->get('entry_phone') . ': </strong>' .$this->request->post['phone']. "<br/>";
                    $message .= '<strong>' . $this->language->get('entry_enquiry') . ': </strong>' .$this->request->post['enquiry']. "<br/>";
                    $message .= '<br/><br/>';
                                                         
                    $message .= 'Thank you, <br/>';


Posts

Joined
Sat Apr 08, 2017 3:49 am
Who is online

Users browsing this forum: No registered users and 352 guests