Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Invoices missing product prices


Guest

Recommended Posts

Posted

I have installed version 6.1(not 6.1a) of CRE loaded and have the order edit patch installed. I have come across a problem when I go to print customer invoices in admin.

 

In admin, when I click on an order to see the detailed order on screen, it correctly shows each item and its options, but it shows $0.00 for ex tax, inc tax, and total for each product. Further down the page where it does the totals including tax and shipping, everthing is correct. When I click on the invoice button so I can print the invoice, I get the same results.

 

Interestingly, when I login to the shopping cart as a customer and go and veiw a previous order, it displays correctly. I have compared the code in both /admin/orders.php and /printorder.php and found the code used to display the product details are identical.

 

The invoices do display correctly with the base install of CRE, but I have added a number of mods including Price Break. I have also read a number of posts that resolved similar issues by correcting the default currency. In my case the default currency is AUD set in admin and also set in /includes/languages/english.php.

 

Can anyone assist with resolving this issue please.

Posted

I've manage to resolve this myself.

 

In the file admin/includes/classes/order.php, at around line 96:

 

'final_price' => $orders_products['final_price'],

 

was missing. I believe this happened after I added the "Margin Report" mod.

 

'name' => $orders_products['products_name'], 
'model' => $orders_products['products_model'], 
'tax' => $orders_products['products_tax'], 
'price' => $orders_products['products_price'], 
// Margin Report 
'cost' =>$orders_products['products_cost'], 
'final_price' => $orders_products['final_price'],

 

One very happy cookie here :-)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...