Commits

Igor Stamatovski committed faadf59

Patch issue 985. Add a separate product quantity colum in the CSV export. https://code.google.com/p/wp-e-commerce/issues/detail?id=985

  • Participants
  • Parent commits 54c33e2

Comments (0)

Files changed (1)

File wpsc-admin/ajax-and-init.php

 			foreach ( (array)$cart as $item ) {
 				$skuvalue = get_product_meta($item['prodid'], 'sku', true);
 				if(empty($skuvalue)) $skuvalue = __('N/A', 'wpsc');
-				$output .= "\"" . $item['quantity'] . " x " . str_replace( '"', '\"', $item['name'] ) . "\"";
+				$output .= "\"" . $item['quantity'] . "\","; 
+				$output .= "\"" . str_replace( '"', '\"', $item['name'] ) . "\"";
 				$output .= "," . $skuvalue."," ;
 			}
 			$output .= "\n"; // terminates the row/line in the CSV file
 		// Get the most number of products and create a header for them
 		$headers3 = "";
 		for($i = 0; $i < $count ;$i++){
-			$headers3 .= "\"Quantity - Product Name \", \" SKU \"";
+			$headers3 .= "\"Quantity\", \"Product Name\", \"SKU\"";
 			if($i < ($count-1))
 			$headers3 .= ",";
 		}