Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > How do I hide "Add to Wishlist" View modes: 
User avatar
Guest
trheath - 10/11/2012 1:49:40 PM
   
How do I hide "Add to Wishlist"
How do I hide the add to wishlist button on the product pages?

Thanks

Tim

User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/18/2012 6:36:22 AM
   
RE:How do I hide "Add to Wishlist"
Hello.

You need to remove code below from your product transformation (e.g. from CMS.Product.CorporateSite or the one you are using):

<div class="addToWishlist">
<%# EcommerceFunctions.GetAddToWishListLink(Eval("NodeSKUID"), "~/App_Themes/CorporateSite/Images/addtowishlist.png") %>
</div>

Best Regards,
Radek Macalik

User avatar
Guest
trheath - 10/18/2012 10:04:25 AM
   
RE:How do I hide "Add to Wishlist"
Thank you for the reply, but I am using this transformation:

EcommerceSite.Transformations.ProductDetail

When I change "ShowWishlistLink" to False, it still displays.

I can get around it by using a display: none; in the CSS, but I'd like to remove the functionality completely from the control.

Thanks

Tim

User avatar
Member
Member
trheath@pilotcat.com - 10/18/2012 10:13:18 AM
   
RE:How do I hide "Add to Wishlist"
Here is some expanded info:

When I change ShowWishlistLink to "false" in transformation "EcommerceSite.Transformations.ProductDetail" on this line:

<uc1:CartItemSelector id="addItem" runat="server" SKUID='<%# EvalInteger("SKUID") %>' SKUEnabled='<%# EvalBool("SKUEnabled") %>' AddToCartTooltip="Add to cart" AddToCartLinkText="Add to cart" ShowWishlistLink="false" AddToWishlistLinkText="Add to Wishlist" ShowUnitsTextBox="true" AlwaysShowTotalPrice="true" TotalPriceLabel="Total price:" ShowProductOptions="true" />

The "Add to Wishlist" button still displays.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/30/2012 6:48:56 AM
   
RE:How do I hide "Add to Wishlist"
Hello.

Could you please set following properties on your CartItemSelector control?

...
ShowWishlistLink="" AddToWishlistLinkText=""
...

It should help.

Best Regards,
Radek Macalik

User avatar
Guest
trheath - 10/31/2012 11:02:56 AM
   
RE:How do I hide "Add to Wishlist"
That worked, thanks!