How to add quantities into your Purchase Report
Hi, heres a question I was asked today, seems like everyones been having trouble getting quantities into the admin purchase report. I TOTALLY understand, the function is big and bloated, it’s part of the old system which we are trying our best to overhaul when time allows.
Anyway to the task at hand.
Wp-e-commerce version: I don’t think the version matters so much since this is part of the old code.
File: transaction_result_functions.php
Around line 180 you should see something like this:
$report_product_list.= " - ". $product_data['name'] .stripslashes($variation_list)." ".$message_price ."\n\r";
change it to this:
$report_product_list.= $row['quantity']." - ". $product_data['name'] .stripslashes($variation_list)." ".$message_price ."\n\r";
That should do it ![]()
have a good week!
SCM
on January 21, 2010
at 8:42 am
Just a quick note, I’ve added this to the 3.7.6beta today, should be in the next round of beta testing.
on January 22, 2010
at 12:46 am
We’ve adapted the wp-eCommerce plug-in for use in a café’s online food ordering system – so the admin really needs the quantities so they know how many sandwiches to make.
I’m literally awaiting an email from my client now regarding whether this fix has worked.
Fingers crossed!!!
on January 22, 2010
at 2:53 am
Hurray! It works! Thanks mate!