Jump to content

Number of Items Sold on Order Invoice


platedepot

Recommended Posts

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.

Link to comment
Share on other sites

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?)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...