radders Posted August 31, 2003 Share Posted August 31, 2003 Thanks Lynda, Actually I posted the code in another thread for allowing the (non-special) products to remain live in the shop when out of stock even though you are subtracting the stock. QTPro does this by default if you set 'check stock' to 'True' (or was it 'Yes') in admin. As for the products with multiple attributes, the forums threads state that although QTPro can check the stock it cannot subtract it (as it does with single attributes). Also in the products_info.php that came with QTpro Notes you will notice that only one of the attribute headings shows up. ibwo wrote on 1st Jul: Anyway, to all that interested in attributes stock tracking. Qtpro doesn't work with multiple attributes. For e.g. A shirt with color and size options. It cant match the product_stock_attributes during checkout_process. But it can check the stock.If you have code that fixes these things do tell. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2003 Share Posted August 31, 2003 All I can say is that its working fine for me, even on products with multiple attributes. I don't know if its because of any of the other contributions that I'm using - my code is now fairly heavily modified, so its difficult to tell! PLEASE NOTE THIS IS A LIVE STORE. DO NOT PLACE ORDERS UNLESS YOU REALLY WANT THE PRODUCTS!!! As far as the attributes heading goes, I have that problem, but I can live with it. Don't know how you'd fix it, sorry. (TBH I haven't tried - too many other things to fix!) Sorry I can't be more help than that. Quote Link to comment Share on other sites More sharing options...
radders Posted August 31, 2003 Share Posted August 31, 2003 The other thing with multiple attributes that I had to work around is that products_quantity is set to zero by the admin module leading to the product although appearing, being labelled 'out of stock'. I have changed this to say 'items in stock listed below'. Could you pm me a copy of your checkout_process.php if you are sure it is updating the stock for the product (impossible to tell from the catalog), pretty please. Quote Link to comment Share on other sites More sharing options...
radders Posted August 31, 2003 Share Posted August 31, 2003 I can't any longer reproduce the 'out of stock' problem so let's move on to the good news! If you are using multiple options in qtpro (eg. size, colour) and find that only one of the option headings displays in product info, I have a very simple fix to the product_info.php of qtpro. Just comment out this line like this: // $titles = array(); The array is then created automatically and the code works (don't ask me why!) Then for neatness add a few more spaces (nbsp;) in the line that prints the options titles so it looks like this: echo " <b>".implode(" , ",$titles)."</b><br>"; Quote Link to comment Share on other sites More sharing options...
radders Posted August 31, 2003 Share Posted August 31, 2003 I have the last piece of the puzzle. :!: The reason why the stock attributes were not updating when there were multiple attributes was that these lines in checkout_process had been commented out. /* if ($products_attributes[$k]['special'] == 0) { $products_stock_attributes_array[] = $products_attributes[$k]['option_id']."-".$products_attributes[$k]['value_id'];} */ Removing the comments and adding the } at the end of the line (which was missing in the file I had) alllows the attributes to be updated rather than just the overall stock. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2003 Share Posted August 31, 2003 now I'm puzzled - why would that affect the stock levels if you're not using specials? but congratulations on getting it working! :D Quote Link to comment Share on other sites More sharing options...
radders Posted August 31, 2003 Share Posted August 31, 2003 Because it says if ($products_attributes[$k]['special'] == 0) If I understand it correctly that means that the attribute is not special ie. stock is limited and we are not using the drop-down menu Quote Link to comment Share on other sites More sharing options...
Clement Posted September 1, 2003 Share Posted September 1, 2003 Hello to everyone, I need to know if qtpro contribution has a version compatible with MS2 version. I search the main site of QTpro but it seems to be down. Is this the right url for the official site? http://www.vary.net/qtpro Thank you very much for your help. Best regards, Clement Quote Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2003 Share Posted September 1, 2003 not yet. Quote Link to comment Share on other sites More sharing options...
Clement Posted September 1, 2003 Share Posted September 1, 2003 Hello Lynda, Thank you very much for your fast replay. I think I have to wait for a next release of this great contribution. Do you know if an MS2 version is planned? Thank you again, Clement Quote Link to comment Share on other sites More sharing options...
radders Posted September 2, 2003 Share Posted September 2, 2003 There's no official site any more, we are on our own! It is fairly easy to install on MS1 and has certainly made my life easier since I took the plunge. As for an MS2 version, you may have a long wait (unless you'd like to have a go at making one). Quote Link to comment Share on other sites More sharing options...
Guest Posted September 2, 2003 Share Posted September 2, 2003 Or if your PHp isn't up to it you could try the comercial help forum here, or post a job on rentacoder.com or scriptlance. Quote Link to comment Share on other sites More sharing options...
Clement Posted September 2, 2003 Share Posted September 2, 2003 Thank you very much for all info you provided. Best Regards, Clement Quote Link to comment Share on other sites More sharing options...
Guest Posted September 6, 2003 Share Posted September 6, 2003 *Please do not begin multiple threads on the same contribution - this thread is now locked* Please post to this thread: http://www.oscommerce.com/forums/viewtopic.php...highlight=qtpro Johnson Quote Link to comment Share on other sites More sharing options...
Guest Posted October 30, 2005 Share Posted October 30, 2005 Does anyone know how to put a total stock available before the quantity input in shopping_cart.php with Qt pro? Would be nice if someone don't have to guess how many products are in stock from a product with the given atributes. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.