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. |
|
|
|
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" |
|
|
|
|
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 /> |
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
For future generations:
In "SingleProductDisplay.aspx", change:
<divclass="SingleProductDisplayPrice"> <asp:LabelID="PriceLabel"runat="server"CssClass="PriceLabel"Text="Label"></asp:Label></P></div></P> To: [color=#0000ff><[/color]div class="SingleProductDisplayPrice"> <asp:LabelID="PriceLabel"runat="server"CssClass="PriceLabel"Text="Label"Visible="false"></asp:Label></P></div></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. |
|
|
|
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. |
|
|
|
|
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... |
|
|
|
|
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 /> |
|
|
|
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.