Modular Merchant
QuickCode™ Glossary
{FIELD-WISH-LIST-DELETE}
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-DELETE}
<< {FIELD-WISH-LIST-ACCESS-CODE} {FIELD-WISH-LIST-IS-PUBLIC} >>
{FIELD-WISH-LIST-DELETE} Updated: 05/29/2013

 The {FIELD-WISH-LIST-DELETE} QuickCode Tag may be used to create a checkbox that, if selected, indicates the corresponding wish list will be deleted when the form containing the checkbox is submitted.

Requirements / Prerequisites

The {FIELD-WISH-LIST-DELETE} QuickCode Tag may be used within the {WISH-LIST-BLOCK-BEGIN} {WISH-LIST-BLOCK-END} block, in order to display a checkbox for each of the customer's wish lists.

Since {FIELD-WISH-LIST-DELETE} creates an input (the checkbox), this QuickCode Tag must be placed within a properly formatted HTML form, and the form must include a submit button, in order for the checkbox created by {FIELD-WISH-LIST-DELETE} to actually function. If {FIELD-WISH-LIST-DELETE} is not within a properly formatted HTML form with a submit button, selecting the checkbox will have no effect.

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 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}

                     <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 />
                  <strong>Delete this wish list?</strong> {FIELD-WISH-LIST-DELETE}<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>

    <!-- 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 an 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, 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!

    Edit your wish lists...

    Wish list name 
    Delete this wish list?    

    Wish list name 
    Delete this 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 {FIELD-WISH-LIST-DELETE} 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