Page 1 of 1

newbie - pics in side bar

Posted: Fri Feb 13, 2009 11:41 am
by Chris Hadden
I am in the process of evaluating ablecommerce. I like that you can have the cart in the side bar. However, perhaps having the pics is a negative. Shopping carts often have 50 items or more. How easy is it to eliminate the pics and just show the product name? I don't see how this is done in the demo store.

Re: newbie - pics in side bar

Posted: Fri Feb 13, 2009 11:51 am
by mazhar
Its very easy. For example if you want to hide images from MiniBasket then edit the ConLib/MiniBasket.ascx file. Locate the following code

Code: Select all

<asp:Image ID="Thumbnail" runat="server" AlternateText='<%# Eval("Product.Name") %>' ImageUrl='<%# GetIconUrl(Container.DataItem) %>' Width="50" Height="50" EnableViewState="false" />
and change it as

Code: Select all

<asp:Image ID="Thumbnail" runat="server" AlternateText='<%# Eval("Product.Name") %>' ImageUrl='<%# GetIconUrl(Container.DataItem) %>' Width="50" Height="50" EnableViewState="false" Visible="false" />
and that's all. All other controls that show the images in side bar will require almost a very similar change that could be done easily.

Re: newbie - pics in side bar

Posted: Tue Jul 07, 2009 10:37 am
by Willisski
I tried this. It did take out the image but it left an empty box with all of the text to the right side. Is there any way to remove the image and center the product text in the center of the mini basket?


thanks in advance
Greg

Re: newbie - pics in side bar

Posted: Tue Jul 07, 2009 10:45 am
by mazhar
Well better locate following code

Code: Select all

<asp:PlaceHolder ID="ProductImagePanel" runat="server" EnableViewState="false" Visible='<%# HasImage(Container.DataItem) %>'>
                                        <div class="miniBasketIconBox">								
                                            <asp:HyperLink ID="ThumbnailLink" runat="server" NavigateUrl='<%#Eval("Product.NavigateUrl")%>' EnableViewState="false">
                                            <asp:Image ID="Thumbnail" runat="server" AlternateText='<%# Eval("Product.Name") %>' ImageUrl='<%# GetIconUrl(Container.DataItem) %>' Width="50" Height="50" EnableViewState="false" />
                                            </asp:HyperLink>								
                                        </div>
                                    </asp:PlaceHolder>
and comment it out like as below

Code: Select all

<%--<asp:PlaceHolder ID="ProductImagePanel" runat="server" EnableViewState="false" Visible='<%# HasImage(Container.DataItem) %>'>
                                        <div class="miniBasketIconBox">								
                                            <asp:HyperLink ID="ThumbnailLink" runat="server" NavigateUrl='<%#Eval("Product.NavigateUrl")%>' EnableViewState="false">
                                            <asp:Image ID="Thumbnail" runat="server" AlternateText='<%# Eval("Product.Name") %>' ImageUrl='<%# GetIconUrl(Container.DataItem) %>' Width="50" Height="50" EnableViewState="false" />
                                            </asp:HyperLink>								
                                        </div>
                                    </asp:PlaceHolder>--%>
and then try again