• 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 : Tuesday, May 22, 2007 8:20:19 AM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

I know adding "visible="false"" to the <a id="priceanchor".... line will hide the price in category grid, detailed list, etc.


I can't find a similar line for CrossSells in BVModules/Controls/CrossSelldisplay.aspx and/or .aspx.vb...



....can't figure where the price control is. Anybody know?



Thanks.
MitchA attached the following image(s):
CrossSells.jpg (39kb) downloaded 99 time(s).

You cannot view/download attachments. Try to login or register.
Optimists invent airplanes,
Pessimists buy parachutes.
Nick Alberti
#2 Posted : Tuesday, May 22, 2007 9:07:37 AM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

The Cross Sell display uses the "SingleProductDisplay" user control. You will have to edit this user control to hide the price.

uc1:SingleProductDisplay ID="SingleProductDisplay" runat="server"
bvuser
#3 Posted : Tuesday, May 22, 2007 12:55:19 PM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

I had needed a similiar feature.



I have attached a Cross-Sell display and Single Product Display files that I modified to add a few properties to. One of them is "HideProductPrice" which will cause the price to be hidden when true.



Make sure to backup your existing files prior to overwriting.
File Attachment(s):
CrossSellDisplay.ascx (1kb) downloaded 93 time(s).

You cannot view/download attachments. Try to login or register.
Netriplex Corporation<br />
MitchA
#4 Posted : Tuesday, May 22, 2007 1:53:32 PM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

For future generations:

In "SingleProductDisplay.aspx", change:

&lt;
divclass="SingleProductDisplayPrice"&gt;
&lt;asp:LabelID="PriceLabel"runat="server"CssClass="PriceLabel"Text="Label"&gt;&lt;/asp:Label&gt;</P>&lt;/div&gt;</P>
To:
[color=#0000ff>&lt;[/color]div class="SingleProductDisplayPrice"&gt;
&lt;asp:LabelID="PriceLabel"runat="server"CssClass="PriceLabel"Text="Label"Visible="false"&gt;&lt;/asp:Label&gt;</P>&lt;/div&gt;</P>
[color=black>This][/color]

[color=#000000></FONT>

BVuser, I'll have a look at your mods...[/color]
</FONT>
[color=black></FONT>



[color=black><FONT]
[/color]
Optimists invent airplanes,
Pessimists buy parachutes.
Nick Alberti
#5 Posted : Tuesday, May 22, 2007 2:14:00 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Hey Mitch.

Remove the following out of SingleProductDisplay.aspx

Code:

<div class="SingleProductDisplayPrice">
     <asp:Label ID="PriceLabel" runat="server" CssClass="PriceLabel" Text="Label"></asp:Label>
</div>


Next, remove this line in SingleProductDisplay.aspx.vb:

Code:

PriceLabel.Text = p.GetSitePriceForDisplay(0D)


I would also check out BVUser's code.
Nick Alberti
#6 Posted : Tuesday, May 22, 2007 2:55:04 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Mitch, keep in mind that the "SingleProductDisplay" control is used on several other pages. Make sure you're not hiding the price on pages where you don't want to be...
bvuser
#7 Posted : Tuesday, May 22, 2007 2:58:26 PM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

Hi,

As currently written my code with hideprice to true will leave the space there. If you alter my code slightly to

ProductDisplayPriceDiv.Visible=False

instead of PriceLabel.Visible=False

that should change that behavior. as I'm not big on design stuff you may instead need to do ProductDisplayPriceDiv.Style.Add("display","none")
if the .Visible=False still leaves the gap.
Netriplex Corporation<br />
MitchA
#8 Posted : Tuesday, May 22, 2007 3:45:31 PM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

Nick, I'll have to do that tomorrow but, I've checked everywhere after "Add to cart", I don't see that the price is missing anywhere. I haven't used "last item viewed", but if that calls for the price, I don't want it there either.
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