Page 1 of 1
Home Page Featured Products
Posted: Wed Jan 16, 2008 10:26 am
by mobymom
I want the Featured Products on my home page to display the MSRP as well as the Retail price. I'm using the ConLib Featured Products Grid although I also tried the ConLib Featured Category Items
With the products I want to show having the "Featured" box checked and the MSRP and Our Price numbers in, they show exactly the way I want when listed in the Category grid.
MSRP is crossed out and the Our Price also shows.
How do I get the Home Page Featured Items to do the same thing?
I'm using the Standard Category Grid page for the content that show correctly, and Category Grid (Deep Item Display) for my default Category Display on the inside page that displays the items the way I want.
HELP - I need to go live in two days and this is the most important element of my front page!
Posted: Wed Jan 16, 2008 10:36 am
by Shopping Cart Admin
Hello,
In FeaturedProductsGrid.ascx uncomment the following line of code.
Change:
<!--- Retail: <span style="text-decoration: line-through"><asp:Label ID="Msrp" runat="server" CssClass="old_price" Visible="false"></asp:Label></span> --->
to
Retail: <span style="text-decoration: line-through"><asp:Label ID="Msrp" runat="server" CssClass="old_price" Visible="false"></asp:Label></span>
Posted: Wed Jan 16, 2008 2:03 pm
by mobymom
Well that was certainly easy! Thank you so much!
Posted: Thu Jan 17, 2008 9:41 pm
by Shopping Cart Admin
Hello,
One thing I forgot to mention is to put this 'customized' control into the custom directory and change the page reference to the custom directory so on upgrades we don't overwrite the changes.
Re: Home Page Featured Products
Posted: Wed Oct 28, 2009 2:22 pm
by dunndesigner
I tried taking out the comments on the line in question:
Code: Select all
<!--- Retail: <span style="text-decoration: line-through"><asp:Label ID="Msrp" runat="server" CssClass="old_price" Visible="false"></asp:Label></span> --->
to display my MSRP on featured products, but it didn't work. I only got "Retail:" and then my actual price. I even tried changing Visible to true, but that did nothing.
My Featured Products Grid code is below:
Code: Select all
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedProductsGrid.ascx.cs" Inherits="Webparts_FeaturedProductsGrid" EnableViewState="false" %>
<%--
<conlib>
<summary>Displays featured items in a category.</summary>
<param name="Caption" default="Featured Items">Possible value can be any string. Title of the control.</param>
<param name="Size" default="3">Possible value cab be any integer greater then zero. Indicates that at maximum how many items can be shown.</param>
<param name="Columns" default="2">Possible value cab be any integer greater then zero. Indicates that the grid will contain how much columns.</param>
<param name="IncludeOutOfStockItems" default="false">Possible values be true of false. Indicates that the grid will display out of sctock items or not.</param>
<param name="ThumbnailPosition" default="LEFT">Possible values are 'TOP' or 'LEFT'. Indicates whether the product image will be displayed on top of product details or on the left.</param>
<param name="Orientation" default="HORIZONTAL">Possible values are 'HORIZONTAL' or 'VERTICAL'. Indicates whether the contents will be displayed vertically or horizontally, In case of vertical orientation only one column will be displayed.</param>
</conlib>
--%>
<%@ Register Src="~/ConLib/Utility/ProductPrice.ascx" TagName="ProductPrice" TagPrefix="uc" %>
<%@ Register Src="~/ConLib/AddToCartLink.ascx" TagName="AddToCartLink" TagPrefix="uc" %>
<div class="pageHeader">
<h1 class="heading"><asp:Localize ID="CaptionLabel" runat="server" Text="Featured Products"></asp:Localize></h1>
</div>
<asp:DataList ID="ProductList" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" Width="100%"
OnItemDataBound="ProductList_ItemDataBound" DataKeyField="ProductId" ItemStyle-CssClass="rowSeparator"
SeparatorStyle-CssClass="itemSeparator" ItemStyle-VerticalAlign="bottom">
<ItemTemplate>
<div class="featuredProductContainer">
<table width="100%" cellspacing="0" cellpadding="0" class="productsGrid">
<tr>
<td align="center" valign="top" class="thumbnail">
<asp:HyperLink ID="ThumbnailLink" runat="server" NavigateUrl='<%#Eval("NavigateUrl")%>'><asp:Image ID="Thumbnail" runat="server" SkinID="Thumbnail" ImageUrl='<%#GetThumbnailUrl(Eval("ThumbnailUrl"))%>' AlternateText='<%#Eval("ThumbnailAltText")%>' Visible='<%#!string.IsNullOrEmpty((String)Eval("ThumbnailUrl")) %>' /></asp:HyperLink>
</td>
<td align="left" valign="bottom" class="details" width="100px">
<p class="detailsInnerPara"><asp:HyperLink ID="NameLink" runat="server" CssClass="highlight" Text='<%# Eval("Name") %>' NavigateUrl='<%#Eval("NavigateUrl")%>'></asp:HyperLink><br />
<asp:Label ID="ManufacturerLabel" runat="server" Text='<%# Eval("Manufacturer.Name") %>'></asp:Label><br />
<div id="RatingImage" runat="server" visible='<%#Token.Instance.Store.Settings.ProductReviewEnabled != CommerceBuilder.Users.UserAuthFilter.None %>'>
<asp:Image ID="Rating" runat="server" ImageUrl='<%#GetRatingImage(Container.DataItem)%>' /><br />
</div>
</p>
<p class="highlight">
<!--- Retail: <span style="text-decoration: line-through"><asp:Label ID="Msrp" runat="server" CssClass="old_price" Visible="false"></asp:Label></span> --->
<uc:ProductPrice ID="ProductPrice" runat="server" Product='<%#Container.DataItem%>' PriceLabel="Price: "></uc:ProductPrice>
<asp:HyperLink ID="MoreInfoLink" runat="server" visible="False" NavigateUrl='<%#Eval("NavigateUrl")%>'><asp:Image ID="MoreInfoImage" runat="server" SkinID="MoreDetailsButton" AlternateText='<%# Eval("Name", "More about {0}") %>' /></asp:HyperLink>
</td>
<td style="padding:5px;" align="left" valign="bottom" class="details">
<%#Eval("Summary") %>
<br />
<div style="margin-top:10px"><uc:AddToCartLink ID="AddToCartLink1" runat="server" ProductId='<%#Eval("ProductId")%>' /></div>
</td>
</tr>
</table></div>
</ItemTemplate>
<SeparatorTemplate></SeparatorTemplate>
<SeparatorStyle CssClass="itemSeperator" />
</asp:DataList>
Any ideas?