Modular Merchant
QuickCode™ Glossary
{FIELD-WISH-LIST-NAME}
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 > {FIELD-WISH-LIST-NAME}
<< {FIELD-WISH-LIST-ITEM-REMOVE-WHEN-PURCHASED} {FIELD-WISH-LIST-SELECT} >>
{FIELD-WISH-LIST-NAME} Updated: 05/29/2013

The {FIELD-WISH-LIST-NAME} QuickCode Tag  may be used to create a text field to view and edit a wish lists's name. The name of a wish list may only be edited by the customer who created the wish list, or a store admin. 

If the customer who created the wish list is logged into their customer account, they may manage their wish lists through the storefront wish list page (http://[storedomain]/wish_list.php). When a wish list is first created, this QuickCode Tag will provides the option for the customer to set the name of the new wish list. The wish list may also be edited later, and so this QuickCode Tag should also be included in any forms related to editing wish lists, to allow the customer to rename wish list, if desired.
 
Store admins may use the Search Wish Lists page (located at [Modules > Wish Lists > Search Wish Lists] to view all wish lists. An individual wish list may be selected to view and edit all of its settings, including its name, in the Wish List Editor.
Requirements / Prerequisites
The {FIELD-WISH-LIST-NAME} QuickCode Tag may be used within the {WISH-LIST-BLOCK-BEGIN} {WISH-LIST-BLOCK-END} block, in order to create a text field to view and edit the name of each of the customer's current wish lists.
 
The {FIELD-WISH-LIST-NAME} QuickCode Tag may also be used outside of the {WISH-LIST-BLOCK-BEGIN} {WISH-LIST-BLOCK-END} block, in order to create a text field for the wish list name, when the customer creates a new wish list.
 
Since {FIELD-WISH-LIST-NAME} creates an input (the text field), this QuickCode Tag should be placed within a properly formatted HTML form, and the form must include a submit button, in order for the text field created by {FIELD-WISH-LIST-NAME} to actually function. If {FIELD-WISH-LIST-NAME} is not within a property formatted HTML form with a submit button, the text field will still correctly display the wish list's current name, but any changes to the wish list name will not be applied to the wish list.
 
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.
 
Additionally, only logged in customers may create or edit wish lists, so it is recommended to place content related to editing wish lists between the {IF-CUSTOMER-LOGGED-IN-BEGIN} and {IF-CUSTOMER-LOGGED-IN-END} QuickCode Tags.
Example of Use
  1. Add the following code to a storefront template:
    Example
    Welcome to my store!<br />

    <!-- Show the content between IF-USING-WISH-LISTS-BEGIN and IF-USING-WISH-LISTS-END only if the store's Wish List Module is enabled. -->
    {IF-USING-WISH-LISTS-BEGIN}
    <!-- Show the content between IF-CUSTOMER-LOGGED-IN-BEGIN and ELSE only if a customer is currently logged in. -->
        {IF-CUSTOMER-LOGGED-IN-BEGIN}
    <!-- New wish list form. -->
    <div style="border:2px solid gray;padding:15px;width:500px;">                        
    <form name="new_wish_list_form" method="post" action="{THIS-PAGE}">
    <h3>Create a new wish list...</h3><br />
    <strong>Wish list name</strong> {FIELD-WISH-LIST-NAME}<br />
    <input type="submit" name="submit_new_wish_list" value="Create this Wish List" />
    </form>
    </div>
    <br />
                <!-- Show the content between IF-WISH-LIST-BEGIN and ELSE only if the customer already has a wish list. -->
    {IF-WISH-LIST-BEGIN}
    <div style="border:2px solid gray;padding:15px;width:500px;"> 
    <form name="wish_list_form" method="post" action="{THIS-PAGE}">
    <h3>Edit your wish lists...</h3><br />

    <!-- 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:auto;"> 
    <strong>Wish list name</strong> {FIELD-WISH-LIST-NAME}<br />
    </div>
    <br />
    <!-- End of content to be displayed once for each of the user's lists. -->
    {WISH-LIST-BLOCK-END}
            <input type="submit" name="submit_wish_list_form" value="Update wish lists" />
    </form>
    </div>
    <!-- End of content to show/hide based on whether the customer has a wish list. -->
    {IF-WISH-LIST-END}
        <!-- Show the content between ELSE and IF-CUSTOMER-LOGGED-IN-END only if a customer is not currently logged in. -->
    {ELSE}
    <a href="{URL-STORE-HOME}customer_login.php">Login</a> or <a href="{URL-STORE-HOME}customer_register.php">create an account</a> to create and edit wish lists.
        <!-- End of content to show/hide based on whether a customer is logged in. -->
    {IF-CUSTOMER-LOGGED-IN-END}

    <!-- 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
    Welcome to my store!
    Thanks for visiting, please come again soon...

     
  3. If the store's Wish List Module is enabled, but a customer is not currently logged in, the following would display:
    Example
    Welcome to my store!
    Login or create an account to create and edit wish lists.
    Thanks for visiting, please come again soon...

     
  4. If the store's Wish List Module is enabled, and a customer is logged in, but does not yet have any wish lists, the following would display:
    Example
    Welcome to my store!

    Create a new wish list...

    Wish list name



    Thanks for visiting, please come again soon...

     
  5. If the store's Wish List Module is enabled, and a customer is logged in, and has one wish list named "What I want for my birthday", and one wish list named "What I want to buy later", the following would display:
    Example
    Welcome to my store!

    Create a new wish list...

    Wish list name



    Edit your wish lists...
    Wish list name

    Wish list name


    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 {FIELD-WISH-LIST-NAME} 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