Trentide Posted October 11, 2007 Share Posted October 11, 2007 Hi. Thanks for looking at my post. This would be useful to have and not too difficult, I imagine. Any help on this would be appreciated. Thanks, Jason Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 11, 2007 Share Posted October 11, 2007 For a vanilla version with not attribute quantity tracking it's easy: SELECT sum( products_price * products_quantity ) FROM products Link to comment Share on other sites More sharing options...
Trentide Posted October 11, 2007 Author Share Posted October 11, 2007 Sorry. I'm not too good with PHP. On which page do I put the code? Where do I view the info from there? Thanks, Jason For a vanilla version with not attribute quantity tracking it's easy: SELECT sum( products_price * products_quantity ) FROM products Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 11, 2007 Share Posted October 11, 2007 That's plain SQL. Open your preferred database management tool, i.e. phpMyAdmin and copy that code to the SQL box. You'll get the result by clicking 'Go'. Link to comment Share on other sites More sharing options...
Trentide Posted October 11, 2007 Author Share Posted October 11, 2007 that's pretty cool. Thanks. I'll try it! Jason That's plain SQL. Open your preferred database management tool, i.e. phpMyAdmin and copy that code to the SQL box. You'll get the result by clicking 'Go'. Link to comment Share on other sites More sharing options...
Dennisra Posted October 11, 2007 Share Posted October 11, 2007 So, this result: 746310.4233 would mean exactly what? Link to comment Share on other sites More sharing options...
Trentide Posted October 11, 2007 Author Share Posted October 11, 2007 I'm not sure. Is it possible you have 746,000+ dollars in inventory? I wouldn't sweat the remainder. Although I can't imagine how you got the ".4233" Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 11, 2007 Share Posted October 11, 2007 The total amount in your default currency of all items you have in stock according to your shop database. As I said, it's just reliable for vanilla OSC versions. Any other you'll have to look if there might be different things that affect the stock value. Link to comment Share on other sites More sharing options...
Dennisra Posted October 11, 2007 Share Posted October 11, 2007 Okay, the dollar amount seemed correct. I just couldn't understand what the .4233 might be. Link to comment Share on other sites More sharing options...
Trentide Posted October 11, 2007 Author Share Posted October 11, 2007 Thanks for that info Manfred!! Do you think there's an easy way to get this info to be seen in the "Admin"? Just wondering, Thanks, Jason Okay, the dollar amount seemed correct. I just couldn't understand what the .4233 might be. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.