Modular Merchant
QuickCode™ Glossary
{WISH-LIST-ACCESS-CODE}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{FIELD-WISH-LIST-ACCESS-CODE}

{FIELD-WISH-LIST-DELETE}

{FIELD-WISH-LIST-IS-PUBLIC}

{FIELD-WISH-LIST-ITEM-COMMENT}

{FIELD-WISH-LIST-ITEM-DELETE}

{FIELD-WISH-LIST-ITEM-EXPIRATION-DATE}

{FIELD-WISH-LIST-ITEM-PRIORITY}

{FIELD-WISH-LIST-ITEM-REMOVE-WHEN-PURCHASED}

{FIELD-WISH-LIST-NAME}

{FIELD-WISH-LIST-SELECT}

{IF-USING-WISH-LISTS-BEGIN}

{IF-USING-WISH-LISTS-END}

{IF-WISH-LIST-BEGIN}

{IF-WISH-LIST-END}

{IF-WISH-LIST-IS-PUBLIC-BEGIN}

{IF-WISH-LIST-IS-PUBLIC-END}

{IF-WISH-LIST-OWNER-BEGIN}

{IF-WISH-LIST-OWNER-END}

{URL-ADD-TO-WISH-LIST}

{URL-ADD-WISH-LIST-TO-BASKET}

{WISH-LIST-ACCESS-CODE}

{WISH-LIST-BLOCK-BEGIN}

{WISH-LIST-BLOCK-END}

{WISH-LIST-IS-PUBLIC}

{WISH-LIST-ITEM-BLOCK-BEGIN}

{WISH-LIST-ITEM-BLOCK-END}

{WISH-LIST-ITEM-COMMENT}

{WISH-LIST-ITEM-CREATE-DATE}

{WISH-LIST-ITEM-EXPIRATION-DATE}

{WISH-LIST-ITEM-PRIORITY}

{WISH-LIST-ITEM-QUANTITY}

{WISH-LIST-ITEM-REMOVE-WHEN-PURCHASED}

{WISH-LIST-ITEM-SID}

{WISH-LIST-NAME}

Wish List > {WISH-LIST-ACCESS-CODE}
<< {URL-ADD-WISH-LIST-TO-BASKET} {WISH-LIST-BLOCK-BEGIN} >>
{WISH-LIST-ACCESS-CODE} Updated: 05/24/2013

The {WISH-LIST-ACCESS-CODE} QuickCode Tag may be used to display the public access code of a publicly viewable wish list. 

When a wish list is created or edited, the option is available to set the wish list to be publicly viewable or not. If a wish list is set to be publicly viewable, the shopping cart will automatically generate an access code for visitors to enter, in order to view that particular wish list.
Requirements / Prerequisites

The {WISH-LIST-ACCESS-CODE} QuickCode Tag must be placed within the {WISH-LIST-BLOCK-BEGIN} {WISH-LIST-BLOCK-END} block.

Since an access code is only generated for public wish lists, it is also recommended to enclose {WISH-LIST-ACCESS-CODE} between {IF-WISH-LIST-IS-PUBLIC-BEGIN} and {IF-WISH-LIST-IS-PUBLIC-END}.

It is recommended to always place any content related to wish lists between the {IF-USING-WISH-LISTS-BEGIN} and {IF-USING-WISH-LISTS-END} QuickCode Tags, so that the content will be shown when the store's Wish List Module is enabled, but hidden if the store's Wish List Module is disabled.

Example of Use
  1.  Add the following code to a storefront template:
    Example
    View your wish lists here:<br />
    <!-- Show the content between IF-USING-WISH-LISTS-BEGIN and ELSE only if the store's Wish List Module is enabled. -->
    {IF-USING-WISH-LISTS-BEGIN}
        <!-- Show the content between WISH-LIST-BLOCK-BEGIN and WISH-LIST-BLOCK-END once for each of the user's wish lists. -->
    {WISH-LIST-BLOCK-BEGIN}
                    <div style="border:1px dashed black;padding:5px;width:400px;">
    <strong>Wish List Name:</strong> <strong><span style="color: rgb(51, 51, 153);">{WISH-LIST-NAME}</span></strong><br />

                    <!-- Show the content between IF-WISH-LIST-IS-PUBLIC and ELSE only if the current wish list is set to be publicly viewable. -->
                    {IF-WISH-LIST-IS-PUBLIC-BEGIN}
                             <em>Public Wish List</em><br />
                             <strong>Access Code: {WISH-LIST-ACCESS-CODE}</strong><br />

                    <!-- Show the content between ELSE and IF-WISH-LIST-IS-PUBLIC-END only if the current wish list is set not to be publicly viewable. -->
                    {ELSE}
                              <em>Private Wish List</em><br />

                    <!-- End of content to be displayed/hidden based on whether the wish list is set to be publicly viewable. -->
                    {IF-WISH-LIST-IS-PUBLIC-END}
    </div>
                    <br />
    <!-- End of content to be displayed once for each of the user's lists. -->
    {WISH-LIST-BLOCK-END}
    <!-- Show the content between ELSE and IF-USING-WISH-LISTS-END only if the store's Wish List Module is not enabled. -->
    {ELSE}
            <em>Wish lists are not allowed at this time.</em><br />

    <!-- End of content to show/hide based on whether the store's Wish List Module is enabled. -->
    {IF-USING-WISH-LISTS-END}
    Thanks for visiting, please come again soon...

  2. If the store's Wish List Module is not enabled, the following would display:
    Example
    View your wish lists here:
    Wish lists are not allowed at this time.
    Thanks for visiting, please come again soon...

     
  3. If the store's Wish List Module is enabled, and the customer has one public wish list named "What I want for my birthday", and one private wish list named "What I want to buy later", the following would display:
    Example
    View your wish lists here:
    Wish List Name: What I want for my birthday 
    Public Wish List
    1a111b123c456d789f0000g1h2222i3j

    Wish List Name: What I want to buy later 
    Private Wish List

    Thanks for visiting, please come again soon...
Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {WISH-LIST-ACCESS-CODE} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2024 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map