Bad start as this venture has totally not worked out.
I am trying to do what seems to be a really simple task: add the "payment method" under the "shipment method" on the packing slip.
So, I found the display I wanted on the order "payments" page, went to orders/payments/default.aspx and copied the code for the payment method display. I then pasted it accordingly into the orders/print/packingslip.aspx and ended up with a big old error message that states:
DataBinding: 'CommerceBuilder.Orders.OrderShipment' does not contain a property with the name 'PaymentMethodName'.
You can view my packing slip code below. Any ideas or suggestions would be appreciated!
Code: Select all
<div class="noPrint">
<asp:Button ID="Print" runat="server" Text="Print" OnClientClick="window.print();return false;" />
<asp:Button ID="Back" runat="server" Text="Back" OnClientClick="window.history.go(-1);return false;" />
</div>
<asp:Repeater ID="ShipmentRepeater" runat="server" OnItemDataBound="ShipmentRepeater_ItemDataBound">
<ItemTemplate>
<table align="center" class="form<%# (Container.ItemIndex < (ShipmentCount - 1)) ? " breakAfter" : string.Empty %>" cellpadding="0" cellspacing="0" border="1">
<tr>
<th colspan="3" class="header">
<asp:Label ID="ShipmentLabel" runat="server" Text="Packing List: Order #{0}" CssClass="caption"></asp:Label>
<asp:Label ID="ShipmentCountLabel" runat="server" Text=" (Shipment {0} of {1})" CssClass="caption"></asp:Label>
</th>
</tr>
<tr>
<td valign="top">
<asp:Label ID="OrderDateLabel" runat="server" Text="Order Date:" SkinID="fieldheader"></asp:Label>
<asp:Label ID="OrderDate" runat="server" Text='<%#Eval("Order.OrderDate", "{0:g}") %>'></asp:Label><br />
<asp:Label ID="ShippingMethodLabel" runat="server" Text="Shipping Method:" SkinID="fieldheader"></asp:Label>
<asp:Label ID="ShippingMethod" runat="server" Text='<%#Eval("ShipMethodName") %>'></asp:Label><br />
<asp:Label ID="PaymentMethodLabel" runat="server" Text="Method: " SkinID="FieldHeader"></asp:Label>
<asp:Label ID="PaymentMethod" runat="server" Text='<%#Eval("PaymentMethodName") %>'></asp:Label>
</td>
<td valign="top">
<asp:Label ID="ShipFromCaption" runat="server" Text="Ship From:" SkinID="FieldHeader"></asp:Label><br />
<asp:Label ID="ShipFrom" runat="server" Text='<%#((OrderShipment)Container.DataItem).FormatFromAddress()%>'></asp:Label>