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

Notification

Icon
Error

dumaloo
#1 Posted : Thursday, January 8, 2009 6:13:59 PM(UTC)
dumaloo

Rank: Member

Joined: 9/26/2008(UTC)
Posts: 23

How can I disable the wish list feature from the admin console?
bigtree
#2 Posted : Wednesday, February 3, 2010 4:10:09 PM(UTC)
bigtree

Rank: Member

Joined: 7/2/2009(UTC)
Posts: 5

I have the same question. Anyone know? I'm not finding it in any of the admin options. I would like to disable the wish list feature.
thank you!
Aaron
#3 Posted : Wednesday, February 3, 2010 5:20:03 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
You can always comment out the Wish List in the Product Template(s) you're using.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
bigtree
#4 Posted : Thursday, February 4, 2010 1:12:05 PM(UTC)
bigtree

Rank: Member

Joined: 7/2/2009(UTC)
Posts: 5

Can you advise where to do this? The only files I can find that mention the wishlist are MyAccount_WishList.aspx and AddToWishlist.ascx

And maybe I'm doing something wrong but putting it in a comment is not working.

thanks.
Aaron
#5 Posted : Thursday, February 4, 2010 1:38:20 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Heather,
You can do it one of three ways. I'd probably go with #1 since it's the least invasive.

1. Style Sheet
Code:
#wishlist {
display: none;
}


2. AddToWishlist.ascx
Put HTML comments (<!-- STUFF TO HIDE -->) around the contents of this control like this:
Code:
<!--<div id="wishlist">
<asp:ImageButton ID="AddToWishlist" runat="server" ImageUrl="~/BVModules/Themes/Bvc5/images/buttons/AddToWishlist.png" AlternateText="Add To Wishlist" />
</div>-->


3. AddToWishlist.ascx.vb
Add this line to the Page_Load method: Me.Visible = False
So, your Page_Load method will look like this:
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Me.Visible = False
Me.AddToWishlist.ImageUrl = PersonalizationServices.GetThemedButton("AddToWishList")
End If
End Sub
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
bigtree
#6 Posted : Thursday, February 4, 2010 2:10:53 PM(UTC)
bigtree

Rank: Member

Joined: 7/2/2009(UTC)
Posts: 5

THANK YOU! I really appreciate your help!!
SStorhaug
#7 Posted : Friday, February 5, 2010 10:18:41 AM(UTC)
SStorhaug

Rank: Member

Joined: 11/20/2005(UTC)
Posts: 122

Originally Posted by: "Aaron" Go to Quoted Post

Put HTML comments (&lt;!-- STUFF TO HIDE --&gt;) around the contents of this control like this:


Code:

&lt;!--&lt;div id="wishlist"&gt;
&lt;asp:ImageButton ID="AddToWishlist" runat="server" ImageUrl="~/BVModules/Themes/Bvc5/images/buttons/AddToWishlist.png" AlternateText="Add To Wishlist" /&gt;
&lt;/div&gt;--&gt;


Actually, this will make the button disappear, but the result is a big comment that is output to the web page. A better way to do it is to use ASP.NET comments so the compiler will ignore the block completely, and not output it to the web page. You can do this by putting comments like this:



&lt;%-- STUFF TO HIDE --%&gt;



This has the following advantages:



1. Your end users won't be able to read your comments or view any code that was commented.

2. The page will download just a wee bit faster to the browser. Probably won't be noticeable, but it all adds up.



Note this will only work in pages with an extension that is recognized by the ASP.NET compiler (.aspx, .ascx, .asmx, etc).
Matt@9BallDesign
#8 Posted : Friday, February 5, 2010 11:03:57 AM(UTC)
Matt@9BallDesign

Rank: Member

Joined: 12/23/2003(UTC)
Posts: 909

I've always done this to hide elements. the 5th way to skin the cat...lol...


&lt;asp:ImageButton visible="False" ID="AddToWishlist" runat="server" ImageUrl="~/BVModules/Themes/Bvc5/images/buttons/AddToWishlist.png" AlternateText="Add To Wishlist" /&gt;
Matt Martell


http://www.9balldesign.com - Web, Print, Graphic


http://www.martellhardware.com/ - Decorative &amp; Builder's Hardware

------------------------------------------------
Aaron
#9 Posted : Friday, February 5, 2010 2:29:00 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: "dotNet guy" Go to Quoted Post
<%-- STUFF TO HIDE --%>

Remember who our audience is: a non-technical user. Using ASP.NET comments in BV will often result in compilation errors because the code-behind of the page often references the control that was just commented out. Using HTML comments, while not perfect for the reasons you mentioned, do not suffer this problem.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
jacksonp
#10 Posted : Monday, February 8, 2010 1:07:37 AM(UTC)
jacksonp

Rank: Member

Joined: 2/6/2010(UTC)
Posts: 3

Thanks Aaron For useful guidelines Disable Wish Lists <actually i also had same problem like and i need this type instruction and finally i got here,Thanks again Aaron
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