Adding items to the wish list

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The items can be added to the wish list by calling the page with the Wishlist web part with following URL parameter:

- productId - the ID of the product stored in the NodeSKUID database field (in the CMS_Tree table) or SKUID (in the COM_SKU table)

 

It means your link will typically look like this:

 

<a href="~/wishlist.aspx?productId=10">Add to wish list</a>

 

In the transformations, you can use the following method to display the link to the wish list:

 

<%# EcommerceFunctions.GetAddToWishListLink(Eval("NodeSKUID")) %>

 

 

You can use the ShoppingCartItemSelector control to display the Add to wishlist button as well. All you have to do is to set one of the following properties.

 

AddToWishlistImageButton

File name of the image which is used as a source for image button to add product to the wish list, default image folder is '~/App_Themes/<stylesheet name>/Images/ShoppingCart/'.

AddToWishlistLinkText

String (simplet text or localizable string) of the link to add product to the wish list.

 

 

 

 

Wish list URL

 

If you use ShoppingCartItemSelector or functions like GetAddToWishListLink, the wish list URL is taken from the Site Manager -> Settings -> E-commerce -> Wish list URL value.

 

Page url: http://devnet.kentico.com/docs/ecommerceguide/index.html?adding_items_to_the_wish_list.htm