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: {URL-ADD-TO-WISH-LIST}
Modular Merchant
QuickCode™ Glossary
{URL-ADD-TO-WISH-LIST}
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 > {URL-ADD-TO-WISH-LIST}
<< {IF-WISH-LIST-OWNER-END} {URL-ADD-WISH-LIST-TO-BASKET} >>
{URL-ADD-TO-WISH-LIST} Updated: 06/4/2013

The {URL-ADD-TO-WISH-LIST} QuickCode Tag  may be used within the product template (product.tpl) to create a link that may be used to add the current product to the customer's wish list. If the customer has multiple wish lists, the wish list with the lowest SID number will be used.

Requirements / Prerequisites
The {URL-ADD-TO-WISH-LIST} QuickCode Tag is compatible with the product template (product.tpl). Unlike most of the wish list QuickCode Tags, {URL-ADD-TO-WISH-LIST} is not designed for use in the wish list template (wish_list.tpl).
 
The {URL-ADD-TO-WISH-LIST} QuickCode Tag must placed within a properly formatted HTML anchor tag, in order to create a working link.
 
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><a href="{URL-ADD-TO-WISH-LIST}" style="outline:red solid 1px;">Add {PRODUCT-NAME} to my <em>{WISH-LIST-NAME}</em> wish list.</a></strong><br />
    <!-- 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. If the store's Wish List Module is enabled -AND- the current visitor is logged into a customer account -AND- the customer account has a wish list named "What I want for my birthday", then the "Red T-Shirt" product page would display the following:
    Example
    Red T-Shirt
    Add Red T-Shirt to my What I want for my birthday wish list.

     
  3. If the store's Wish List Module is enabled -AND- the current visitor is logged into a customer account -BUT- the customer account does not yet have any wish lists, then the "Red T-Shirt" product page would display the following:
    Example
    Red T-Shirt
    You do not yet have any wish lists. Wish lists may be created and edited on the wish list page.
     
     
  4. If the store's Wish List Module is enabled -BUT- the current visitor is not logged into a customer account, then the "Red T-Shirt" product page would display the following:
    Example
    Red T-Shirt
    Login or create an account to create and edit wish lists.
     
     
  5. If the store's Wish List Module is not enabled, then the "Red T-Shirt" product page would display the following:
    Example
    Red T-Shirt

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 {URL-ADD-TO-WISH-LIST} 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