Page 1 of 1

Item Qty pricing in a lump?

Posted: Sat Jan 03, 2009 4:02 pm
by Mizmo67
Hi,

Looked around but can't find anyone else posting on this one.

Is there a way to break down the invoice so that the individual item price shows? This is a 5.5 feature that I don't want to lose.

Currently if you order 2 items at 15.00 each, you only see the total of $30.00
I'd like to have a column with the individual item price.

Is there a way to do this?

Thank you,
~Mo

Re: Item Qty pricing in a lump?

Posted: Mon Jan 05, 2009 7:18 am
by mazhar
Could you post some screen capture of this from 5.5 version.

Re: Item Qty pricing in a lump?

Posted: Mon Jan 05, 2009 7:38 am
by jmestep
I think what she was wanting was similar to this post, only on the invoice instead of the confirmation email.
viewtopic.php?f=44&t=8759
mizmo-- there are several invoices, which one did you mean? Customer print, merchant print from admin?

Re: Item Qty pricing in a lump?

Posted: Mon Jan 05, 2009 8:30 am
by mazhar
As guessed by Judy if you want to adjust admin print for a layout as below in screen shot then you can accomplish this first locating the following code block on invoice page

Code: Select all

<asp:GridView ID="OrderItems" runat="server" ShowHeader="true"
                            AutoGenerateColumns="false" CellPadding=0 CellSpacing=0 GridLines="none" 
                            Width="100%" DataSource='<%#GetProducts(Container.DataItem)%>' CssClass="dataSheet">
                            <Columns>
                                <asp:BoundField DataField="Quantity" HeaderText="Quantity" ItemStyle-HorizontalAlign="Center" />
                                <asp:BoundField DataField="Sku" HeaderText="Sku" ItemStyle-HorizontalAlign="Center" />
                                <asp:TemplateField HeaderText="Item">
                                    <ItemTemplate>
                                        <uc:OrderItemDetail ID="OrderItemDetail1" runat="server" OrderItem='<%#(OrderItem)Container.DataItem%>' ShowAssets="False" LinkProducts="False" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Price">
                                    <ItemStyle HorizontalAlign="right" width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="Price" runat="server" Text='<%#Eval("ExtendedPrice", "{0:lc}")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
and then replacing it by the below block

Code: Select all

<asp:GridView ID="OrderItems" runat="server" ShowHeader="true"
                            AutoGenerateColumns="false" CellPadding=0 CellSpacing=0 GridLines="none" 
                            Width="100%" DataSource='<%#GetProducts(Container.DataItem)%>' CssClass="dataSheet">
                            <Columns>
                                <asp:BoundField DataField="Quantity" HeaderText="Quantity" ItemStyle-HorizontalAlign="Center" />
                                <asp:BoundField DataField="Sku" HeaderText="Sku" ItemStyle-HorizontalAlign="Center" />
                                <asp:TemplateField HeaderText="Item">
                                    <ItemTemplate>
                                        <uc:OrderItemDetail ID="OrderItemDetail1" runat="server" OrderItem='<%#(OrderItem)Container.DataItem%>' ShowAssets="False" LinkProducts="False" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Price">
                                    <ItemStyle HorizontalAlign="right" width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="Price" runat="server" Text='<%#Eval("Price", "{0:lc}")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Total">
                                    <ItemStyle HorizontalAlign="right" width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="Price" runat="server" Text='<%#Eval("ExtendedPrice", "{0:lc}")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>

Re: Item Qty pricing in a lump?

Posted: Mon Jan 05, 2009 10:32 am
by Mizmo67
It was for printing in the admin but I will have to look into the customer notification email as well.

Thank you that was exactly what I need!
I'll apply this Weds. when I'm back at work.

Much thanks!
~Mo