• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

MitchA
#1 Posted : Thursday, May 10, 2007 4:25:31 PM(UTC)
MitchA

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.
Nick Alberti
#2 Posted : Friday, May 11, 2007 10:05:58 AM(UTC)
Nick Alberti

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.
MitchA
#3 Posted : Friday, May 11, 2007 10:43:10 AM(UTC)
MitchA

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.
Nick Alberti
#4 Posted : Friday, May 11, 2007 11:05:26 AM(UTC)
Nick Alberti

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.
MitchA
#5 Posted : Friday, May 11, 2007 11:13:14 AM(UTC)
MitchA

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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012