Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
I know I've seen it in one of the forums... there's a way to remove the price from the category page. All of my products have modifiers, so a price on the category page(s) makes no sense.
Before I go and make a mess... is there a 'best' way to do this? |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Hello Mitch.
It depends on which category template you are referring too.
You can normally comment out the tags that render the price in the code behind or set the visible property on the ASP.NET tags to false.
Pick one and I will help you comment out the tags. This should help you get started with the other category templates. |
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
Point me towards the Grid template's control. I'll find the others... Grid w/subs and Detailed list.
Thanks. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
For the Grid, you could change Code:<a id="PriceAnchor" runat="server" href=""></a> to Code:<a id="PriceAnchor" runat="server" href="" visible="false"></a> It leaves an empty div on the page that you might want to clean up. You could remove the anchor and div, but you would have to modify the code behind by commenting out or removing the following: Code: Dim PriceAnchor As HtmlAnchor = DirectCast(e.Item.FindControl("PriceAnchor"), HtmlAnchor) PriceAnchor.HRef = destinationLink PriceAnchor.InnerText = p.GetSitePriceForDisplay(0D)
I would create a new template for this so that these changes stay intact during future updates. |
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
...."false" works great, Thanks. The empty div isn't a problem. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.