newbie - pics in side bar
-
- Commander (CMDR)
- Posts: 182
- Joined: Tue Jan 27, 2009 2:29 pm
newbie - pics in side bar
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
Its very easy. For example if you want to hide images from MiniBasket then edit the ConLib/MiniBasket.ascx file. Locate the following code
and change it as
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.
Code: Select all
<asp:Image ID="Thumbnail" runat="server" AlternateText='<%# Eval("Product.Name") %>' ImageUrl='<%# GetIconUrl(Container.DataItem) %>' Width="50" Height="50" EnableViewState="false" />
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" />
- Willisski
- 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
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
thanks in advance
Greg
Re: newbie - pics in side bar
Well better locate following code
and comment it out like as below
and then try again
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>
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>--%>