RockyS Posted January 11, 2015 Share Posted January 11, 2015 Hi, in latest version of prestashop 1.6.011 back office order manager is broken. You can't create orders from back office! Step to reproduce problem:1. go to orders 2. create order 3. look for customer 4. search for product 5. add product -> PROBLEM When you add a product, table below, which should contain added product, isn't refreshed and there fore you can't see products that you add, prices aren't updated etc. I also tried on prestashop.com demo page and it is not working. Tested in FF and Chrome, both latest versions. 1 Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2015 Share Posted January 12, 2015 it works for me the one thing that it's interesting: it takes a little long to "add product", for me about 12 seconds Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2015 Share Posted January 12, 2015 second test: works well, 1 second to see product on list of added products. Link to comment Share on other sites More sharing options...
RockyS Posted January 12, 2015 Author Share Posted January 12, 2015 Can someone else confirm that is or isn't working? Because I tried on Win 7, with all browsers, and windows 8 with all browsers. Hell, I even tried on Lumia 925. Link to comment Share on other sites More sharing options...
Pete78 Posted January 16, 2015 Share Posted January 16, 2015 Question: Are you using many variants per product? How many products do you have in your store? Link to comment Share on other sites More sharing options...
RockyS Posted January 18, 2015 Author Share Posted January 18, 2015 I tried with product that doesn't have combination. I have 306 products in my store, not all of them have combinations. Weird think here is that even demo at prestashop.com doesn't work for me. Link to comment Share on other sites More sharing options...
flyclothing Posted January 30, 2015 Share Posted January 30, 2015 I just tried adding a product within an order that hasnt been charged and it's now allowing me either. The "add product" button is there but nothing happens. I am using 1.6.0.9. Link to comment Share on other sites More sharing options...
Xzelot Posted February 14, 2015 Share Posted February 14, 2015 (edited) Nothing Happensa To me, Using Last Version. .... THe TPL form is in here /ADMIN_FOLDER/themes/default/template/controllers/orders/form.tpl Can you left us your FIle ? The FIreBUg shows me on DOM b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/user_DB/public_html/controllers/admin/AdminCartsController.php:465) in <b>/home/puntoh5/public_html/classes/controller/AdminController.php</b> on line <b>1585</b><br /> Edited February 14, 2015 by Xzelot (see edit history) Link to comment Share on other sites More sharing options...
geltix Posted May 23, 2015 Share Posted May 23, 2015 I have the same problem - andI have only 3 products in the shop. Maybe its because of group discounts added - did you find any solution for? Link to comment Share on other sites More sharing options...
sueshi Posted June 23, 2015 Share Posted June 23, 2015 Had the same problem after an (unintentional) update from 1.6.0.9 to 1.6.0.14. Was searching for hours, now I have downgraded again ... Link to comment Share on other sites More sharing options...
Inform-All Posted September 21, 2015 Share Posted September 21, 2015 I know it's a bit older topic. But the Order Status has to be "new" to see the "add product" button. Link to comment Share on other sites More sharing options...
Mireille K Posted February 9, 2016 Share Posted February 9, 2016 Hello, I have same problem. I am using prestashop 1.6.0.14 for 4 shops and all have same issue. The problem is in creating order from backoffice. 1. go to orders 2. create order 3. look for customer, select customer 4. search for product 5. add product -> Nothing is added6. Change address -> Nothing happens When I repeat the steps the changes are there, it means it saving changes I made but not displaying.7. click again orders8. Create order9. Select same customer10. product added to cart will be shown under carts tab. click use to select to proceed with order creation.11. changed in address are also saved 12. Any new changes made will have to repeat all steps again to see them (orders, create order, select customer,....)Does anyone know the solution for that? Thank you. Link to comment Share on other sites More sharing options...
Designinfo.in Posted September 17, 2016 Share Posted September 17, 2016 HI, I am facing a similar issue. Cannot add products to cart in back office manual order. The stock is proper and earlier didn't face this problem Prestashop 1.6.1.5 Image attached shows a strange [ - 0 ] Next to the product in the list. However, stock count mentioned below shows a proper number. I don't know why add to cart is not working here. Link to comment Share on other sites More sharing options...
Inform-All Posted September 20, 2016 Share Posted September 20, 2016 (edited) HI, I am facing a similar issue. Cannot add products to cart in back office manual order. The stock is proper and earlier didn't face this problem Prestashop 1.6.1.5 Image attached shows a strange [ - 0 ] Next to the product in the list. However, stock count mentioned below shows a proper number. I don't know why add to cart is not working here. sdfgh.jpg Do you use Multistore, advanced stock management? And how are your cache settings? Have you tried it when you disable all overrides? Edited September 20, 2016 by Inform-All (see edit history) Link to comment Share on other sites More sharing options...
Loxx Posted November 10, 2016 Share Posted November 10, 2016 Any news, solutions, ideas on this? I have the same problem. The workaround by reloading the page and then using the newly created cart works, but is not optimal... Link to comment Share on other sites More sharing options...
katenagel Posted November 15, 2016 Share Posted November 15, 2016 It seems to be a Chrome issue. Try Firefox or IE. Link to comment Share on other sites More sharing options...
Mireille K Posted November 16, 2016 Share Posted November 16, 2016 It's not a browser issue.I am using version 1.6.1.4 and I have the same issue on 4 different websites.Didn't find any solution yet. Link to comment Share on other sites More sharing options...
Ipo1 Posted November 27, 2016 Share Posted November 27, 2016 Hi, I'm also using 1.6.1.4 and realize suddenly I am not able to add new products. It does nothing after all the entries. Can't even update an existing product after modifying. Tried firefox, edge, chrome. Certainly not a browser issue. Anyone found a solution yet? Link to comment Share on other sites More sharing options...
Mireille K Posted November 28, 2016 Share Posted November 28, 2016 Try this, it worked for me. PrestaShop/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl comment line 252 submitHandler: function(form) { form.submit(); }, Link to comment Share on other sites More sharing options...
tomasj Posted December 22, 2016 Share Posted December 22, 2016 I am suffering very similar issue when updated from 1.5.6 to 1.6.1.0. The problem was, that in the back office, manual order I was unable to find absolutely any product. But I was able to add a carts from customers. I have tried to find the problem for hours and finally I have found solution. In the controllers/admin/AdminCartsController.php just go to the ajaxProcessSearchProducts function and at the last line change: $this->content = Tools::jsonEncode($to_return); to die($this->content = Tools::jsonEncode($to_return)); Suddenly it is working like a charm. Also adding a products to an existing orders is working as there was the same issue with searching. I hope that this will save a lot of time you. 1 Link to comment Share on other sites More sharing options...
MMJH Posted January 24, 2017 Share Posted January 24, 2017 I am suffering very similar issue when updated from 1.5.6 to 1.6.1.0. The problem was, that in the back office, manual order I was unable to find absolutely any product. But I was able to add a carts from customers. I have tried to find the problem for hours and finally I have found solution. In the controllers/admin/AdminCartsController.php just go to the ajaxProcessSearchProducts function and at the last line change: $this->content = Tools::jsonEncode($to_return); to die($this->content = Tools::jsonEncode($to_return)); Suddenly it is working like a charm. Also adding a products to an existing orders is working as there was the same issue with searching. I hope that this will save a lot of time you. I had same issue in PS 1.6.1.11 - this modification really works like charm and solved the problem! Thank you. However, the file is AdminOrdersController.php, not AdminCartsController.php. Link to comment Share on other sites More sharing options...
mmsayeed Posted November 9, 2017 Share Posted November 9, 2017 I am using prestashop 1.6.1.17. In my back office When i am going to add new products to the customer orders (Existing Orders). The product search function is not working. the search is working during creating new order in the backoffice. Please let me know if you have any solutions. Link to comment Share on other sites More sharing options...
n_s_simpson Posted January 16, 2018 Share Posted January 16, 2018 This problem happened on our shop when I installed MailChimp's own module, which is full of bugs and fails to sync properly. Uninstalled and it works again without having to add the cart after a first failed attempt at creating the order. Although everything works when changing quantities or adding a voucher we do get a PHP warning about not being able to modify header info, which I'm looking into. From what I can tell there's a line of code in AdminCartsController.php that tells the admin area not to use cache but when the quantity changes it hates that line being re-run. I think it's some bad programming in one of the php files. I've seen lots of reports about this but none of the threads seem to conclude with an actual fix. Link to comment Share on other sites More sharing options...
n_s_simpson Posted January 17, 2018 Share Posted January 17, 2018 I am running 1.6.1.17 and PHP 7.0.22. I don't know whether this PHP warning came up on 5.6 or if it's only since upgrading. Everything works but it's a bit annoying. Link to comment Share on other sites More sharing options...
pourouz Posted June 19, 2018 Share Posted June 19, 2018 Hello People. As the previous people above I too get the same problem with the "add to cart" button in the BO create order page. After selecting a customer and searching successfully for a product in the search bar the moment I press the "add to cart" button the #customer_cart table that is supposed to fill with the product is not displaying the products details. What I have found though is something peculiar. If I turn on error reporting on (define('_PS_MODE_DEV_', true); ) the "add to cart" button works fine. It is only broken if dev mode is false. Does this help anyone at all to solve the problem? I'd rather have error reporting off unless I am debugging. Link to comment Share on other sites More sharing options...
Pete78 Posted October 19, 2018 Share Posted October 19, 2018 Hi, I had the same problem as pourouz, some debugging showed, that a user session cannot be started during update quantity because of an already sent header. Normally this error occurs, when there are some blank or other output is generated too early. I solved this very similar to the above posts with changing in the same AdminCartsController.php file the output of ajaxProcessUpdateQty from echo json_encode(array_merge($this->ajaxReturnVars(), array('errors' => $errors))); to die(json_encode(array_merge($this->ajaxReturnVars(), array('errors' => $errors)))); hope this helps somebody... Link to comment Share on other sites More sharing options...
sandiegos Posted March 15, 2021 Share Posted March 15, 2021 Hi, I had the same problem on prestashop 1.7.6.9. In the controllers/admin/AdminOrdersController.php just go to the ajaxProcessSearchProducts function and at the last line change: $this->content = jsonEncode($to_return); to die($this->content = jsonEncode($to_return)); hope so to helps somebody :) 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