newbie - pics in side bar

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

newbie - pics in side bar

Post by Chris Hadden » Fri Feb 13, 2009 11:41 am

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: newbie - pics in side bar

Post by mazhar » Fri Feb 13, 2009 11:51 am

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.

User avatar
Willisski
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 82
Joined: Thu Oct 27, 2005 1:46 am
Location: http://www.Thejibshop.com
Contact:

Re: newbie - pics in side bar

Post by Willisski » Tue Jul 07, 2009 10:37 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: newbie - pics in side bar

Post by mazhar » Tue Jul 07, 2009 10:45 am

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

Post Reply