platedepot Posted June 19 Share Posted June 19 Is there a way to get the invoice to print the number of items sold in an order? Thanks Mark Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 19 Share Posted June 19 This is the procedure for the latest versions of CubeCart where the administration section has an Invoice Editor tab in the Documents area. The Invoice Editor brings the Invoice's HTML code into an editor (set to Source Mode). There are no line numbers, so you will be looking for actual code to change: Find: {foreach from=$order.items item=item} Change to: {$running_count = 0}{foreach from=$order.items item=item}{$running_count = $running_count + $item.quantity} Find: <div class="total"><strong>{$LANG.basket.total_grand} {$order.total}</strong></div> Change to: <div class="total"><strong>Total Items: {$running_count}</strong></div> <div class="total"><strong>{$LANG.basket.total_grand} {$order.total}</strong></div> Then click the Save button and have CubeCart clear its internal cache. Quote Link to comment Share on other sites More sharing options...
platedepot Posted June 19 Author Share Posted June 19 Hi BSmither -- Thank you for the response. I gave it a try, but could not get past the GoDaddy firewall, even though my IP is on the white list. Are there actual PHP documents that I can edit instead? Mark Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 19 Share Posted June 19 In the admin skin templates folder, find the orders.print.php file. You can make edits there. However, CubeCart may have stored a copy of this file in the database, and will prefer to use this databased version if it is there. It is stored in the database table CubeCart_invoice_template. (Which asks an interesting question: why use a database table for only one record?) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.