josecerejo Posted June 5, 2015 Share Posted June 5, 2015 Hello! My version of PrestaShop is 1.6.0.14. I would like to when a user makes a purchase in my store I receive an email saying that a user intends to make a purchase in my store. Since I am the administrator has logic. The problem is already turned upside po prestashop the air and could not find a solution. Someone could help me? Already grateful, José Cerejo Link to comment Share on other sites More sharing options...
El Patron Posted June 5, 2015 Share Posted June 5, 2015 Native PrestaShop has module packaged for this and more. back office-->modules-->modules-->(in search box find mail alerts)-->install/configure Link to comment Share on other sites More sharing options...
josecerejo Posted June 5, 2015 Author Share Posted June 5, 2015 I dont have that module i don't know. My prestashop it is in portuguese It will be for that? o.O I don't think so. I tried found this module in addons and is paid. Link to comment Share on other sites More sharing options...
El Patron Posted June 5, 2015 Share Posted June 5, 2015 in portugese back office see this http://screencast.com/t/9cq4PiswO Link to comment Share on other sites More sharing options...
josecerejo Posted June 5, 2015 Author Share Posted June 5, 2015 In my back office doesn't appear Link to comment Share on other sites More sharing options...
El Patron Posted June 5, 2015 Share Posted June 5, 2015 you can dowload from github https://github.com/PrestaShop/mailalerts http://screencast.com/t/CjHZTfuElAP Link to comment Share on other sites More sharing options...
josecerejo Posted June 6, 2015 Author Share Posted June 6, 2015 I try install one module for phpinfo() to view the features of my server and does not show anything. This mailalerts also does not install -.- Link to comment Share on other sites More sharing options...
El Patron Posted June 6, 2015 Share Posted June 6, 2015 what do you mean it does not install? Please be as specific as possible, i.e. messages etc. is this module you used for phpinfo? https://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/ Link to comment Share on other sites More sharing options...
josecerejo Posted June 6, 2015 Author Share Posted June 6, 2015 I installed this module that you recorded and does not show me any data you menus. I wanted to see if the requirements that need to prestashop on my server were all operational. Then I tried to install mailalerts you gave me and does not show anything in the modules. Link to comment Share on other sites More sharing options...
josecerejo Posted June 6, 2015 Author Share Posted June 6, 2015 Finally I install mailalerts this link but to make the purchase'm not notified that received an order. http://Finally I install mailalerts this link but to make the purchase'm not notified that received an order. https://www.prestash...em-mail-alerts/ Link to comment Share on other sites More sharing options...
El Patron Posted June 6, 2015 Share Posted June 6, 2015 you are having issue with simple mail alerts in module section. You can turn on error reporting and test to see if any error messages. https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ Link to comment Share on other sites More sharing options...
josecerejo Posted June 6, 2015 Author Share Posted June 6, 2015 I have one error classes/Tools.php[2] curl_exec() has been disabled for security reasons I am looking on google a solution but there is little so far Link to comment Share on other sites More sharing options...
El Patron Posted June 6, 2015 Share Posted June 6, 2015 I have one error classes/Tools.php [2] curl_exec() has been disabled for security reasons I am looking on google a solution but there is little so far good work.! contact your hosting company and ask them to enable php curl. Link to comment Share on other sites More sharing options...
josecerejo Posted June 6, 2015 Author Share Posted June 6, 2015 So if they activate me curl php I will take advantage of mailalerts without errors? It is that my site is giving stupid mistakes as some mobile brands the store does not work and other yes. As the attribute search some work and some do not Link to comment Share on other sites More sharing options...
El Patron Posted June 6, 2015 Share Posted June 6, 2015 lets see what is resolved with curl enabled, I'm surprised if this is not reported by PrestaShop during installation or via screen: back office-->advanced parms-->Configuration Information. Link to comment Share on other sites More sharing options...
josecerejo Posted June 11, 2015 Author Share Posted June 11, 2015 Missing Files (2) .gitignore .gitmodules I lack these two files and do not know if they are important. I corrected the errors in the server but the mailalerts still not working. Link to comment Share on other sites More sharing options...
pixel2 Posted June 24, 2015 Share Posted June 24, 2015 hello there! My name is Lukas! I have tried to serch help in spanish forum ,... and i thought that i should try to find help here also. I have achived to split attributes line into list in the Cart.php ( i think),.. in the order steps section,... but the real problem resides in "new_order.html" mail template. Check the image that describe my problem with mailalerts module. MailAlert.php ---------------------------------------------------------- if ($attributes) { foreach ($attributes as $row) $products[$i]['attributes_small'] .= $row['attribute_name'].', '; } $products[$i]['attributes_small'] = rtrim($products[$i]['attributes_small'], '<br/> '); <------this break doesnt work $products[$i]['id_shop'] = $shop->id; ---------------------------------------------------------------------- mailalerts.php ----------------------------------------------------- $product_name = Product::getProductName($id_product, $id_product_attribute, $id_lang); -maybe here i could split $id_product_attribute into breaks. ------------------------------------------------------- THANKS FOR HELP!!!! http://www.pixel2.es/download/problema_mailalerts.jpg Link to comment Share on other sites More sharing options...
Maskca Posted June 25, 2015 Share Posted June 25, 2015 Hi, it is mail to customer or to admin? Link to comment Share on other sites More sharing options...
pixel2 Posted June 25, 2015 Share Posted June 25, 2015 hello Maskca!Thanks for your fast response. That is "for admin" mail. ../mailalerts/mails/lang/new_order.html Link to comment Share on other sites More sharing options...
Maskca Posted June 25, 2015 Share Posted June 25, 2015 In mailalerts.php try delete this code: http://i.imgur.com/4XKxGqv.png Link to comment Share on other sites More sharing options...
pixel2 Posted June 26, 2015 Share Posted June 26, 2015 hey Maskca! actually my mailalerts.php &items_table structure looks like this. $items_table .= '<tr style="background-color:'.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style=" text-transform:lowercase; font-size:3em; text-align:left;">'.$product['product_reference'].'</td> <td style=" line-height:1em; letter-spacing:-2;text-transform:capitalize;text-align:left;font-size:2em; "> '.$product['product_name'].' <<< aparently those two lines that were cuted off dont affect the display. </td> <td style="font-size:1em;text-align:center;">'.Tools::displayPrice($unit_price, $currency, false).'</td> <td style="font-size:2em; text-align:center;">'.(int)$product['product_quantity'].'</td> <td style="font-size:1.8em;letter-spacing:-2; text-align:right;">' .Tools::displayPrice(($unit_price * $product['product_quantity']),$currency, false). '</td> </tr>'; } foreach ($params['order']->getCartRules() as $discount) uffff... digging to deep yesterday my site started to generate PDF invoces without items list at all.... as i didnt make the backup,.. had to rebuild all site... ( hard stress ) now everything works normally and i have to go back to the mission " breaking text lines in the mail template" THANKS! Have a nice day Link to comment Share on other sites More sharing options...
Maskca Posted June 26, 2015 Share Posted June 26, 2015 Hi, what is your prestashop version? Link to comment Share on other sites More sharing options...
pixel2 Posted June 26, 2015 Share Posted June 26, 2015 I am on 1.6.0.14 Link to comment Share on other sites More sharing options...
Maskca Posted June 26, 2015 Share Posted June 26, 2015 In classes/Cart.php comment or delete this code: http://i.imgur.com/j4HA03p.png P.S. After this changes carefully check the operation of the store Link to comment Share on other sites More sharing options...
pixel2 Posted June 27, 2015 Share Posted June 27, 2015 hello there! Still no desired effect,.... when I cut this part of code,... along of all order steps section , attributes dont display at all. Neither in the mail. Link to comment Share on other sites More sharing options...
Maskca Posted June 30, 2015 Share Posted June 30, 2015 It takes product name from order detail table where name is set with attributes data. Link to comment Share on other sites More sharing options...
Recommended Posts