HomeHome Product Discus... Product Discus...SmithCartSmithCartManaging Related Product InformationManaging Related Product Information
Previous
 
Next
New Post
6/24/2011 2:14 PM
 

In the .ascx files I've removed price that shows on the product listing and product detail page. However, the price still shows up in the related products tab. Is there a way that I can remove the price from showing here as well? The label should be easy enough to remove, but what about the actual price?

-Mike

 
New Post
6/25/2011 9:10 PM
 

Hi Mike,
Yes you can remove the price for the related products by opening the productdetails.ascx and scrolling down to the related products section and in the gridview set the visible property to false for the price label or template field. As a general rule of thumb you should always set the visible property to false for any controls that you want to hide rather than delete the control as deleting the control could cause an error since the asp controls are referenced in the dlls.


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/27/2011 1:08 PM
 

Thanks for the reply, Scott

I feel like I've gone through every line of code that is in that related products area and added a tag Visible="false" at the end of each line of code. Which line should I be adding this to? I've tried the most sensible area, which I've posted for your review:

 

td><asp:Label runat="server"  ID="lblPriceLabel" resourcekey="lblPriceLabel" /> </td>
                                <td>
                                    <asp:Label runat="server" ID="lblPrice" Visible="false" />&nbsp;
                                    <asp:Label  runat="server" ID="lblEUVATIncPrice" Text="" Visible="false"/>
                                    <asp:TextBox runat="server" ID="txtPrice" Width="50px" MaxLength="5" Visible="false" />

I've tried inserting that code into both bolded areas (both together, and one at a time to test) but that didn't seem to do it.

Thanks for your help,

-Mike

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartManaging Related Product InformationManaging Related Product Information