Page 1 of 1

GoldR11 Adding Or Changing Output Colums in Admin UI

Posted: Fri Feb 19, 2016 12:15 pm
by rlopez
Running Gold R11Sr1 Build: 8858
We are currently house cleaning our products and have found in other post that the best way to mass delete products is to use the (Admin UI Manage Products) vs (Data Import/Export) and with my lack of skills writing SQL statements, this is our only option for us at this time. However, do to the way our products are set-up we need to see the SKU of our products in the Manage Products output page to identify the product correctly before deleting. Currently there is no SKU output field. All that we have is Name, Last modified, Price i.e. This is an issue for us do to the way our products are set-up with multi effectivities. Also I'm hesitant to customize the ManageProducts.ASPX page to accomplish this for future setbacks when having to upgrade. If Batch edit had a delete function this would also be another option but it doesn't. If anyone has a work around or suggestion please let me know your feedback would be great.

Rick L.

Re: GoldR11 Adding Or Changing Output Colums in Admin UI

Posted: Fri Feb 19, 2016 12:41 pm
by jguengerich
If you do decide to modify ManageProducts.aspx, you would just add a Template Field to the <cb:AbleGridView ID="PG"...> control:

Code: Select all

<asp:TemplateField HeaderText="Sku" SortExpression="Sku">
    <HeaderStyle HorizontalAlign="Left" />
    <ItemTemplate>
        <asp:HyperLink ID="PN" runat="server" NavigateUrl='<%#Eval("Id", "EditProduct.aspx?ProductId={0}") %>' Text='<%#Eval("Sku")%>'></asp:HyperLink>
    </ItemTemplate>
</asp:TemplateField>
I put it before the "Name" TemplateField in my site.

Re: GoldR11 Adding Or Changing Output Colums in Admin UI

Posted: Fri Feb 19, 2016 2:05 pm
by rlopez
Jay
Thank you so much. Your code works like a champ and you saved me a lot of time.
To the folks at Ablecommerce. This field should either be a standard field or at least a Attribute field for those of us who need this.
Rick L.