Page 1 of 1

How do I edit the invoice, packing slips, etc.??

Posted: Wed Jul 01, 2009 6:58 pm
by krittleb
OK. I guess I'm not too bright as it appears nobody else has this issue. I've looked everywhere I can think of and did searches on both the forum and AbleCommerce Help, and have not found anything that explains where to edit the invoice, packing slip, etc.

Sorry if this is a really dumb question but I honestly tried to figure it out first :oops:

Re: How do I edit the invoice, packing slips, etc.??

Posted: Thu Jul 02, 2009 5:20 am
by William M
I was wondering the same thing. Hasn't happened yet, but any day now someone is going to call and ask me to correct a choice made in error. I don't see a way to change the size, color....

Editing quantity and price are available. Is that all?

Re: How do I edit the invoice, packing slips, etc.??

Posted: Thu Jul 02, 2009 5:58 am
by jmestep
It depends on which invoice you need- the one the customer prints or the one in the admin.
The ones in the admin are in the Admin/Orders/Print folder. There is an additional packing slip that is in the Admin/Orders/Shipments folder.
If it is the one the customer sees, the editing would be done in the ConLib.PrintMyOrderPage.ascx and .ascx.cs

Re: How do I edit the invoice, packing slips, etc.??

Posted: Wed Sep 09, 2009 10:26 am
by scooter85
I am needing help with the Admin\Orders\Shipments\PackingList.aspx file. OrderItemDetail.ascx seems to collect all the information for this file. Is that correct? I am needing to put the Summary Description in instead of the Name and I have not been successful at doing this. I have changed the header to say Description but can't get the code to show Product.Summary. Here is the code in the PackingList.aspx file and I know it is with the last template field.

<Columns>
<asp:TemplateField HeaderText="Qty">
<HeaderStyle Width="50" HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="center" />
<ItemTemplate>
<asp:Label ID="Quantity" runat="server" Text='<%#Eval("Quantity")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="SKU">
<HeaderStyle Width="80" HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="center" />
<ItemTemplate>
<asp:Literal ID="Sku" runat="server" Text='<%# GetSku(Container.DataItem) %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description">
<ItemTemplate>
<uc:OrderItemDetail ID="OrderItemDetail1" runat="server" OrderItem='<%#(OrderItem)Container.DataItem%>' ShowAssets="False" LinkProducts="False" />
</ItemTemplate>
</asp:TemplateField>
</Columns>

Re: How do I edit the invoice, packing slips, etc.??

Posted: Wed Sep 09, 2009 10:57 am
by jmestep
The problem is that the product summary is not a part of the order item. You would have to load the product for that order item, then get the summary from product.summary.

Re: How do I edit the invoice, packing slips, etc.??

Posted: Mon Sep 28, 2009 2:13 pm
by scooter85
Judy, I do not understand you what you mean by "You would have to load the product for that order item, then get the summary from product.summary."

I'm guessing that I need to add code to OrderItemDetail, either .ascx or .ascx.cs or both, I just don't have a clue where or what to add to get the summary. Is there some example that shows this on some other form?

Thanks,
Scott

Re: How do I edit the invoice, packing slips, etc.??

Posted: Mon Sep 28, 2009 2:25 pm
by jmestep
You might be able to get it from something like this that is int the Packing list

Code: Select all

protected string GetSku(object dataItem)
    {
        OrderItem orderItem = (OrderItem)dataItem;
        if (orderItem.OrderItemType == OrderItemType.Product) return orderItem.Sku;
        
        return StringHelper.SpaceName(orderItem.OrderItemType.ToString());
    }
Only do GetSummary(object dataItem) and return orderItem.Product.Summary instead of orderItem.Sku

Then in the .aspx file use
<asp:Literal ID="Summary" runat="server" Text='<%# GetSummary(Container.DataItem) %>'></asp:Literal>

Re: How do I edit the invoice, packing slips, etc.??

Posted: Tue Sep 29, 2009 8:45 am
by scooter85
Judy, That was perfect. Thanks for the further explination. I spent the better part of a morning working on this earlier this month then gave up because I was always getting errors after editing the code.

Thanks Again,
Scott

Re: How do I edit the invoice,

Posted: Tue May 11, 2010 12:02 pm
by cerami2
i had my early version working thanks to help lastime 7.0 I am using 7.04 i need to add delivery method and type of credit card to the printed invoice .Can some one help me please

Re: How do I edit the invoice, packing slips, etc.??

Posted: Tue May 11, 2010 12:27 pm
by mazhar
Have a look at this, it may be helpful
viewtopic.php?f=42&t=8347

Re: How do I edit the invoice, packing slips, etc.??

Posted: Tue May 11, 2010 1:20 pm
by cerami2
thanks but that is for the packing list i need the invoice