heimtech Posted February 15, 2017 Share Posted February 15, 2017 Hi, i have a problem on our webshop www.dgtextildruck.de The cart is going crazy. When you type in quantity 5 for a single product the price shown is always for a different quantity and on the top right cart widget you also see a different quantity like the one set in the textbox. You can see that in the attached image. This strange behaviour can be allready seen in the json request to the server. When i type in 5 the qty value of the json is 4. Can you help me there? where is these json generated? possible hints for a solution? controller: cart ajax: true add: true getproductprice: true summary: true id_product: 94 ipa: 2456 id_address_delivery: 5 qty: 4 row_design: 0 update_qty: true token: e8961a1674232aca1489a3d9d38e41f3 allow_refresh: 1 kind regards Dominik Link to comment Share on other sites More sharing options...
phinq1910 Posted February 15, 2017 Share Posted February 15, 2017 Have a module that using hookActionCartSave Seems it is change cart_product table when you change the shopping cart You can try check this by search in module/ folder Link to comment Share on other sites More sharing options...
heimtech Posted February 15, 2017 Author Share Posted February 15, 2017 hi, thanks for your reply. im not sure if thats the reason. The problem seems to be in the cart-summary.js of the default-bootstrap default theme of prestashop. The updateQTY seems to do some odd things, it computes what the difference is between the last qty and current quantity and is calling the backend for that update. when i change from 1 to 4 it is sending "3" cause thats the difference, and so i get the price for 3 instead of 4. Link to comment Share on other sites More sharing options...
phinq1910 Posted February 15, 2017 Share Posted February 15, 2017 hi, thanks for your reply. im not sure if thats the reason. The problem seems to be in the cart-summary.js of the default-bootstrap default theme of prestashop. The updateQTY seems to do some odd things, it computes what the difference is between the last qty and current quantity and is calling the backend for that update. when i change from 1 to 4 it is sending "3" cause thats the difference, and so i get the price for 3 instead of 4. Ah, cart-summary.js have replace by custom. You try replace with prestashop original file and test again 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