mcamp7 Posted October 29, 2012 Share Posted October 29, 2012 If I select Share available quantities in a multistore group, the add to cart button stops working. http://shops.teamnetworkusa.com/index.php?id_product=3&controller=product#/sizes-s/- Has anybody run into the problem and found a fix? I'm using a fresh install of 1.5.2 Link to comment Share on other sites More sharing options...
Jan Jansen Posted November 11, 2012 Share Posted November 11, 2012 There is no fix yet, I reported the bug here: http://forge.prestashop.com/browse/PSCFV-5552 There is no confirm yet that there will be a fix in the next release. The shopping cart is the most essential feature of any webshop, so I don't understand how this bug could have happened in the third final release. I reinstalled Prestashop 1.5.2.0 3 times, but it doesn't change a thing. Link to comment Share on other sites More sharing options...
Trip Posted November 12, 2012 Share Posted November 12, 2012 (edited) I am testing the feature at the moment. The only time that happened to me is when I forced "share orders" with direct parameter change in the database table (on default group which is usually greyed out). Remember when you change to "Share available quantities to sell" all quantities will reset to zero which is half of the truth. In fact when changing to "Share available quantities to sell" prestashop will use the "ps_stock_available" table. In older versions the quantity was stored in the ps_product table. The quantities are nut nullified or lost when you change to "Share available quantities to sell". I made a small script which copies all values from ps_product.quantity to the "ps_stock_available" table at once. After doing that you can order on every group of the shop. So maybe see first if share orders is enabled and try if cart works when you disable that. Second look if the product(-quantiies) are available in each shop. Best regards, trip Edited November 12, 2012 by Trip (see edit history) Link to comment Share on other sites More sharing options...
mcamp7 Posted November 12, 2012 Author Share Posted November 12, 2012 I am testing the feature at the moment. The only time that happened to me is when I forced "share orders" with direct parameter change in the database table (on default group which is usually greyed out). Remember when you change to "Share available quantities to sell" all quantities will reset to zero which is half of the truth. In fact when changing to "Share available quantities to sell" prestashop will use the "ps_stock_available" table. In older versions the quantity was stored in the ps_product table. The quantities are nut nullified or lost when you change to "Share available quantities to sell". I made a small script which copies all values from ps_product.quantity to the "ps_stock_available" table at once. After doing that you can order on every group of the shop. So maybe see first if share orders is enabled and try if cart works when you disable that. Second look if the product(-quantiies) are available in each shop. Best regards, trip Hi Trip, it sounds like you've found the solution to this problem. Could you post the script here for us to try? Thank you, Matthew Link to comment Share on other sites More sharing options...
Trip Posted November 13, 2012 Share Posted November 13, 2012 I do not know for sure if this is your problem. Just check if product has a quantity set. I posted a small part of the script in the bug tracker. I can not make that public as it is a 5 minute hack without product combinations and so on. It also deletes the "ps_stock_available" table and I can not take responsibility that someone uses this and does not know what it exactly does. I gave the solution to PS team as a scaffold how they could implement this but if someone already made modification in the stock_availble table it would delete all the work. What I did is for the stage when you setup a group shop and want to copy all the old quantities to the new system but as I said. When you use it wrong than all your work might be gone. Best regards, trip Link to comment Share on other sites More sharing options...
Recommended Posts