ruisonika Posted September 12, 2023 Share Posted September 12, 2023 I am experience a new problem in prestashop 1.6.1.24... sometimes when a customer make a purchase (for example two products) in prestashop backoffice (admin) the order only have 1 product, but the totals, ship and tax are ok, and in database ps_cart_product there are 2 products... I am with no ideias how to desmantle this problem... how can i start to debug? Link to comment Share on other sites More sharing options...
jmauclair Posted September 23, 2023 Share Posted September 23, 2023 Hi, The best way to debug, is to var_dump 😂 Clone your website locally, and find the admin controller for the order detail page (it might be this one : \src\PrestaShopBundle\Controller\Admin\Sell\Order\OrderController.php) Search in this file when does the product detail is rendered and then find which variable is storing the detail or which function generate the detail. It might not be in this controller, but it will be a good start 😁 Link to comment Share on other sites More sharing options...
musicmaster Posted September 23, 2023 Share Posted September 23, 2023 During the creation of the order the rows are copied (and a bit modified) from the ps_cart_product table to the ps_product_detail table. It looks something goes wrong there. The most likely explanation is that some php error stops the operation after one product was copied. So check the error log of your server. You can also switch on profiling to see which mysql commands are executed. 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