GoldR11 Adding Or Changing Output Colums in Admin UI

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

GoldR11 Adding Or Changing Output Colums in Admin UI

Post by rlopez » Fri Feb 19, 2016 12:15 pm

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.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: GoldR11 Adding Or Changing Output Colums in Admin UI

Post by jguengerich » Fri Feb 19, 2016 12:41 pm

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.
Jay

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: GoldR11 Adding Or Changing Output Colums in Admin UI

Post by rlopez » Fri Feb 19, 2016 2:05 pm

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.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

Post Reply