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

3 thoughts on “How to add quantities into your Purchase Report

  1. Just a quick note, I’ve added this to the 3.7.6beta today, should be in the next round of beta testing.

  2. 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!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>