- Why are wishlists public by default? I can't imagine researching a computer online and having that wishlist information be publicly accessible.
- Is there a built in way to make wishlists private by default? I could assign a random password on creation. But I don't want to display it to the user. I can make it so it isn't loaded on page load but then I'll need a way to show it in case they do want to email the wishlist.
- From ac_Wishlists, it looks like you could set up multiple wishlists with different names. Is this feature built in or is the table schema just for customization / future implementation?
- Once again, a list of product information needs customization to hide custom system product template fields from the user. Has anyone put together a list of all the places product template fields, basket item inputs, order item inputs (and now wishlist item inputs) appear in the system? Is there any chance AC 7.0.4 will have a Visibility Flag for product template fields?
Wishlist Questions: Privacy, Item Inputs, Multiple Lists
Wishlist Questions: Privacy, Item Inputs, Multiple Lists
I just started looking at Wishlist functionality and got a few surprises. I'd appreciate any input about the following:
How to hide wishlist item inputs
Here's one way to hide Wishlist Item Inputs from MyWishlist.ascx. Please let me know if there was something simpler I could have done.
In the MyWishlistPage.ascx (or your customized copy), add the following to the WishListGrid declaration:
and remove the DataSource from the InputList DataList declaration. Change
to
In the code behind (ConLib/MyWishlistPage.ascx.cs or your customized copy) add:
Please note that this also applies to ViewWishListPage.ascx.
In the MyWishlistPage.ascx (or your customized copy), add the following to the WishListGrid declaration:
Code: Select all
OnRowDataBound="WishlistGrid_RowDataBound"
Code: Select all
<asp:DataList ID="InputList" runat="server" DataSource='<%#Eval("Inputs") %>'>
Code: Select all
<asp:DataList ID="InputList" runat="server">
Code: Select all
// SG Customization - ZLA 2009-06-14
protected void WishlistGrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataList inputList = e.Row.FindControl("InputList") as DataList;
inputList.ItemDataBound += new DataListItemEventHandler(InputList_ItemDataBound);
inputList.DataSource = (e.Row.DataItem as CommerceBuilder.Users.WishlistItem).Inputs;
inputList.DataBind();
}
}
protected void InputList_ItemDataBound(object sender, DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
{
string inputName = (e.Item.DataItem as CommerceBuilder.Users.WishlistItemInput).InputField.Name;
// DataList Visible property doesn't work. If RepeatLayout = Flow, then text is not displayed but <BR /> is inserted.
e.Item.Visible = (!inputName.StartsWith("Regex") && inputName.Replace(" ", "") != "RequiredFieldsList"
&& !inputName.StartsWith("SG_"));
if (!e.Item.Visible)
{
// Hide row and prevent user from seeing hidden text
e.Item.CssClass = "HiddenPanel";
(e.Item.FindControl("InputName") as Label).Text = "";
(e.Item.FindControl("InputValue") as Label).Text = "";
}
}
}
// SG End Customization - ZLA 2009-06-14
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
Wishlists being public- a customer can set a password for their wishlist.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
True, but only if the customer reads the Wishlist Password info. It just seems backward to me that the list is public by default.
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
I'm still curious about this point. Can someone explain the purpose of the name column in this table?ZLA wrote:
- From ac_Wishlists, it looks like you could set up multiple wishlists with different names. Is this feature built in or is the table schema just for customization / future implementation?
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
Yes back end do support multiple wishlists per customer.
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
But to implement would require front end customization?mazhar wrote:Yes back end do support multiple wishlists per customer.
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
Yes, you need to adjust front end to utilize this.
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
mazhar --
I'd be interested to know how this has worked.... do you have any examples of this in place?
We have a project where this would be exceptionally helpful.
Thanks,
Steve
I'd be interested to know how this has worked.... do you have any examples of this in place?
We have a project where this would be exceptionally helpful.
Thanks,
Steve
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
Sorry currently I am not aware of any in place example for this. You can put some time figure it out via inspecting respective database table relations.
Re: Wishlist Questions: Privacy, Item Inputs, Multiple Lists
You can secure wishlists alot easier just by editing the web.config in ~/Members/.
Just remove the entire <Location> XML tag set.
Original file:
Change it to this:
Just remove the entire <Location> XML tag set.
Original file:
Code: Select all
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<location path="MyWishlist.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
Code: Select all
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com