Implementing a members only area "wishlist"

Updated on 20-October-2016 at 10:16 AM

Business Catalyst End of life announcement - find out more details.

You can let visitors add items (products, webapps and so on) to a wishlist list. Later, a visitor can view the items he added to this favorites list to find the content quickly. Visitors can add items to the wishlist and access their favorite items only after they log into a membership only area by logging into a secure area of the site. 

The workflow for setting up a favorites list consists of the following steps:

  1. Create a members only area and create a contact that is subscribed to this area
  2. Insert Add to Favorites links in content
  3. Insert the favorites list in a page

You create the links in content by inserting a tag in one or more module templates.

  1. Select Site Manager > Module Templates and click a module template.

    If the module template you selected contains a subset of layouts, select the layout you would like to add the link to.

  2. Place the cursor in the editor and then select the following tag Data tab of the Toolbox:


    The Toolbox menu is on the right side of the editor toolbar.

    The default tag values create text links for adding or removing favorites.

  3. (Optional) If you want to use images instead of text for the links, replace the values addtoimage and removefromimage with the path to the image files. Example:

    { tag_addtofavorites,<img src="/images/addtofav.jpg" />,<img src="/images/removefromfav.jpg" />}

  4. Click Save.

Tip: You can also use a webform to add items to a customer's wishlist, take a look at the Using web forms to automatically add items to a wishlist article to learn how.

Insert the favorites list in a page

Add the favorites list to a page in a password-protected area of the site. To add a page to a secure area, see Add a secure area to your site .

  1. Open the page in editing mode by selecting Site Manager > Pages, and clicking the page in the tree view.

  2. Place the cursor in the content editor where you want to insert the list of favorites.

  3. In the Modules tab of the Toolbox found on the right of the editor, select Site Modules > Secure Zones, and then click List of Favorites/wishlist. 

  4. Select Individual Item or All Items from the menu, and then click Insert.

    Business Catalyst inserts a placeholder tag representing the list. Example: {module_favorites,a,0,0}. When you publish the page, the list replaces the placeholder tag.

  5. Click Publish or Save Draft.

Customize the favorites login page

If a site visitor adds an item as a favorite but is not logged in, the visitor is taken to the favorites login page.

The favorites login page has a registration form for new visitors and a login form for existing visitors. Modify the design of the login page as follows:

  1. Select Site Manager > Module templates and then click Favorite Layouts.
  2. Make changes to the content in the editor.
  3. Click Save.

To revert any changes you have made to the layout, click Restore to Default.