SOLVED - Price on Home Page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi,

I have tried unsucessfully to try and implement the old price(RRP) and new price, i have got the buttons working fine but just not the prices on the home page in the featured products boxes.

Does any one know or has done this, and how to.

Thank you
12 years ago
here is the answer

https://www.nopcommerce.com/boards/t/8472/price-on-front-page.aspx
12 years ago
Hi eddy,

Thanks for the reply, i did try that but it would not render the rrp and your price properly


RRP:

Your Price: 34.99
24.99

i couldn't get the 34.99 next to the RRP, swapping divs around and alsorts.

HomePageProducts.aspx:

<asp:DataList ID="dlCatalog" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"
        RepeatLayout="Table" OnItemDataBound="dlCatalog_ItemDataBound" ItemStyle-CssClass="item-box"
        EnableViewState="false">
        <ItemTemplate>
            <div class="product-item">
                <h2 class="product-title">
                    <asp:HyperLink ID="hlProduct" runat="server" />
                </h2>
                <div class="picture">
                    <asp:HyperLink ID="hlImageLink" runat="server" />
                </div>
                <div class="add-info">
                    <div class="prices">
                        <asp:PlaceHolder runat="server" ID="phOldPrice">
                            <%=GetLocaleResourceString("Products.OldPrice")%>&nbsp;
                            <asp:Label ID="lblOldPrice" runat="server" CssClass="oldProductPrice" />
                        </asp:PlaceHolder>
                    <br />
                    <br />
                    <br />
                        <asp:PlaceHolder runat="server" ID="phDiscount">
                            <%=GetLocaleResourceString("Products.FinalPriceWithDiscount")%>&nbsp;&nbsp;
                            <asp:Label ID="lblFinalPriceWithDiscount" runat="server" CssClass="productPrice" />
                        </asp:PlaceHolder>
                        <nopCommerce:ProductPrice2 ID="ctrlProductPrice" runat="server" ProductId='<%#Eval("ProductId") %>' />
                    </div>
                
            </div>
        </ItemTemplate>
    </asp:DataList>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.