an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Blog > Customization > Disable or remove certain UI pieces
Disable or remove certain UI pieces

I had people asking how to disable some UI pieces in some pages. Here are some detail questions and my answers.

1) how do I disable the action buttons e.g. "Ask a Question", "Update Alert", "Tell a Friend" in product detail page?

In web\store\ProductAction.aspx, find <asp:ImageButton id="btnAskQuestion", <asp:ImageButton id="btnUpdateAlert", <asp:ImageButton id="btnTellFriend" and put visible="false" inside the tag.

2) Remove register link

In web\controls\blocks\LoginMenu.ascx, remove line <li><a href="<%=SiteNavigation.RegisterPage %>">Register</a></li>.

In web\controls\core\Login.ascx, remove these lines.

<td class="logincell">

    <asp:Button id="btnRegister" runat="server" text="Create New Account" />
</td>

In web\controls\core\Login.ascx.cs, remove these lines.

btnRegister.OnClientClick = string.Format("window.open('{0}{1}', '_self'); return false;",

    SiteNavigation.RegisterPage, string.IsNullOrEmpty(returnUrl) ? "" : "?ReturnUrl=" + returnUrl);

3) Remove customer Reviews in product detail page

In web\store\Product.aspx, remove those lines

<tr>

    <td colspan="2">
         <dsc:ProductReviews id="prvReview" runat="server" />
    </td>
</tr>

In web\store\Product.aspx.cs, remove those lines

prvReview.Product = product;
prvReview.DataBind();

4) Remove Redeem Gift Certificate in shopping cart page

In web\store\Cart.aspx, find <asp:Panel id="pnlGiftCertificate" runat="server"> and put visible="false" inside the tag.

 

Recent Comments
danny jones said ...
Hi... I am inexperiance to build up ECommenrce type sites.I have a little bits knowladge ...
molakaj said ...
What a great approach to the subject, I was looking for. Thanks for these tips http://www ...
jane said ...
Thank you for this useful information.
furnace parts said ...
Congrats on V4.0.....It is so easy to use  
Travis said ...
I just bought DSC Suite V4.5 and it is more solid then ever. I hope I am #1 buyer of this ...