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

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
krittleb
Commander (CMDR)
Commander (CMDR)
Posts: 111
Joined: Tue Jan 06, 2009 11:27 pm

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

Post by krittleb » Wed Jul 01, 2009 6:58 pm

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:

William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

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

Post by William M » Thu Jul 02, 2009 5:20 am

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?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

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

Post by jmestep » Thu Jul 02, 2009 5:58 am

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
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

scooter85
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 50
Joined: Wed Apr 15, 2009 2:41 pm

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

Post by scooter85 » Wed Sep 09, 2009 10:26 am

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>

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

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

Post by jmestep » Wed Sep 09, 2009 10:57 am

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

scooter85
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 50
Joined: Wed Apr 15, 2009 2:41 pm

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

Post by scooter85 » Mon Sep 28, 2009 2:13 pm

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

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

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

Post by jmestep » Mon Sep 28, 2009 2:25 pm

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>
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

scooter85
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 50
Joined: Wed Apr 15, 2009 2:41 pm

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

Post by scooter85 » Tue Sep 29, 2009 8:45 am

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

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

Re: How do I edit the invoice,

Post by cerami2 » Tue May 11, 2010 12:02 pm

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

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

Post by mazhar » Tue May 11, 2010 12:27 pm

Have a look at this, it may be helpful
viewtopic.php?f=42&t=8347

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

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

Post by cerami2 » Tue May 11, 2010 1:20 pm

thanks but that is for the packing list i need the invoice

Post Reply