Warning: simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ' expected in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: hr line 7 and body in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: body line 4 and html in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag html line 2 in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 QC: {FIELD-WISH-LIST-SELECT}
Modular Merchant
QuickCode™ Glossary
{FIELD-WISH-LIST-SELECT}
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-SELECT}
<< {FIELD-WISH-LIST-NAME} {IF-USING-WISH-LISTS-BEGIN} >>
{FIELD-WISH-LIST-SELECT} Updated: 05/30/2013

The {FIELD-WISH-LIST-SELECT} QuickCode Tag  may be used to within the product template (product.tpl) to create a dropdown menu of the current customer's wish lists. The dropdown menu is intended for use in an HTML form that will allow the customer to add the current product to an existing wish list.

Requirements / Prerequisites
The {FIELD-WISH-LIST-SELECT} QuickCode Tag is compatible with the product template (product.tpl). Unlike most of the wish list QuickCode Tags, {FIELD-WISH-LIST-SELECT} is not designed for use in the wish list template (wish_list.tpl).
 
The {FIELD-WISH-LIST-SELECT} QuickCode Tag must placed within a properly formatted HTML form, and the form must include a submit button, in order for the dropdown menu it creates to function correctly. The form must also contain {FIELD-PRODUCT-QUANTITY}, for the customer to specify how many units of the product to add 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 the product template:
    Example
    <h3>{PRODUCT-NAME}</h3><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}
    <div style="border:2px solid gray;padding:15px;width:500px;">
        <!-- Show the content between IF-CUSTOMER-LOGGED-IN-BEGIN and ELSE only if a customer is currently logged in. -->
    {IF-CUSTOMER-LOGGED-IN-BEGIN}
                <!-- Show the content between IF-WISH-LIST-BEGIN and ELSE only if the customer already has a wish list. -->
    {IF-WISH-LIST-BEGIN}
    <strong>Add {PRODUCT-NAME} to a wish list...</strong><br />
    <div style="border:1px dashed black;padding:5px;width:auto;"> 
    <!--Add this product to a wish list using a form: -->
    <form name="add_to_wish_list_form" method="post" action="{THIS-PAGE}">
    Wish List: {FIELD-WISH-LIST-SELECT}<br />
    Quantity: {FIELD-PRODUCT-QUANTITY}<br />
    <input type="submit" name="submit_add_to_wish_list" value="Add To Wish List" />
    </form>
    </div>
    <!-- Show the content between ELSE and IF-WISH-LIST-END only if the customer does not yet have any wish lists. -->
    {ELSE}
    You do not yet have any wish lists. Wish lists may be created and edited on the <a href="{URL-STORE-HOME}wish_list.php">wish list page</a>.
                 <!-- 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}
    </div>
    <!-- End of content to show/hide based on whether the store's Wish List Module is enabled. -->
    {IF-USING-WISH-LISTS-END}

     
  2. On the "Stainless Steel Coffee Flask" product page, if the store's Wish List Module is enabled -AND- wish lists are enabled for the "Stainless Steel Coffee Flask" product -AND- a customer is currently logged in -AND- the customer has already created wish lists named "What I want for my birthday" and "What I want to buy later", the following will display:
    Example
    Stainless Steel Coffee Flask
    Add Stainless Steel Coffee Flask to a wish list...

    Wish List:
    Quantity:

     
  3. On the "Stainless Steel Coffee Flask" product page, if the store's Wish List Module is enabled -AND- wish lists are enabled for the "Stainless Steel Coffee Flask" product -AND- a customer is currently logged in -BUT- the customer does not yet have any wish lists, the following will display:
    Example
    Stainless Steel Coffee Flask
    You do not yet have any wish lists. Wish lists may be created and edited on the wish list page.

     
  4. On the "Stainless Steel Coffee Flask" product page, if the store's Wish List Module is enabled -AND- wish lists are enabled for the "Stainless Steel Coffee Flask" product -AND- the current visitor is not logged in to a customer account, the following will display:
    Example
    Stainless Steel Coffee Flask
    Login or create an account to create and edit wish lists.

     
  5. On the "Stainless Steel Coffee Flask" product page, if the store's Wish List Module is not enabled -OR- wish lists are note enabled for the "Stainless Steel Coffee Flask" product, the following will display:
    Example
    Stainless Steel Coffee Flask
Source Code Source Code Updated: Warning: date() expects parameter 2 to be long, string given in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 796
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {FIELD-WISH-LIST-SELECT} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2019 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map