This article explores how you can add MyCashflow's wish list feature to your store theme.

MyCashflow's default themes contain ready support for wish lists.

The implementation of wish lists includes adding a wish list button to product pages and lists, and the wish list itself to an appropriate place in the theme.

Wish lists are only available to logged-in customers, and wish list tags automatically hide their own content from non-logged-in visitors.

If your wish list implementation includes other elements that you want to be visible only to logged-in customers (like the wish list opening button in the default theme), you can use the {Helper(case: 'CustomerLogged')} tag.

Adding a wish list button to products

Add the wish list button to the templates of the product page and, if necessary, product lists by using the {ProductWishlistToggle} tag. The tag will print a form, by which the product is either added to the wish list or removed from it as needed.

Adding and removing products from the wish list can be done asynchronously by sending the form with JavaScript.

By using the {ProductWishlistToggle} tag's or attribute, you can also show non-logged-in customers that the store includes a wish list feature for logged-in customers.

Adding the wish list to the theme

Use the {WishlistProducts} tag to add the wish list products to the appropriate location in the theme.

You should include a button to remove a product from the wish list with the {ProductWishlistToggle} tag, and a button to add the product to the shopping cart with the {ProductAddToCart} tag.