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: {IF-WISH-LIST-OWNER-BEGIN}
Modular Merchant
QuickCode™ Glossary
{IF-WISH-LIST-OWNER-BEGIN}
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 > {IF-WISH-LIST-OWNER-BEGIN}
<< {IF-WISH-LIST-IS-PUBLIC-END} {IF-WISH-LIST-OWNER-END} >>
{IF-WISH-LIST-OWNER-BEGIN} Updated: 06/3/2013
The {IF-WISH-LIST-OWNER-BEGIN} QuickCode Tag may be used in combination with the {IF-WISH-LIST-OWNER-END} QuickCode Tag within any storefront template to show or hide content based on whether or not any wish lists associated with the current shopping session are "owned" by the current visitor.
 
A wish list may be associcated with the current shopping session if either of the following conditions are true:
 
  • the website visitor has entered the public access code corresponding to a public wish list
  • the website visitor is logged into a customer account which owns at least one wish list
     
 
By default, a wish list is "owned" by the customer who created the wish list. However, store admins may change the ownership of wish lists from the Search Wish Lists page and the Wish List Editor. Each wish list may only be owned by one customer. Only the customer who owns the wish list, or a store admin, may edit the wish list.
 
Content between {IF-WISH-LIST-OWNER-BEGIN} and {IF-WISH-LIST-OWNER-END} will be displayed if the wish list(s) associated with the current shopping session is owned by the current visitor. The visitor must be logged into his or her customer account in order to be recognized by the shopping cart as the wish list owner.
 
If the {ELSE} QuickCode Tag is inserted between {IF-WISH-LIST-OWNER-BEGIN} and {IF-WISH-LIST-OWNER-END}, then content between {IF-WISH-LIST-OWNER-BEGIN} and {ELSE} will be shown if the current visitor owns the wish list(s) associated with the current shopping session, and content between {ELSE} and {IF-WISH-LIST-OWNER-END} will be shown if the current visitor does not own the wish list(s) associated with the current shopping session (or is not logged into his or her customer account and so cannot be identified as the wish list owner).
Requirements / Prerequisites
The {IF-WISH-LIST-OWNER-BEGIN} QuickCode Tag must be used in combination with the {IF-WISH-LIST-OWNER-END} QuickCode Tag. 
 
The {ELSE} QuickCode Tag may optionally be used between {IF-WISH-LIST-OWNER-BEGIN} and {IF-WISH-LIST-OWNER-END}.
 
It is recommended to place {IF-WISH-LIST-OWNER-BEGIN} and {IF-WISH-LIST-OWNER-END} between {IF-WISH-LIST-BEGIN} and {IF-WISH-LIST-END}, so that the shopping cart will not try to check for a wish list owner, when no wish list is yet associated with the shopping session.
 
It is also 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
Add the following code to a storefront template:
Example
<h3>Wish Lists</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. -->
<div style="border:2px solid black;padding:15px;width:500px;">
<form name="wish_list_access_form" method="post" action="{THIS-PAGE}">
<strong>View a wish list by entering its Public Access Code in the field below.</strong><br />
<p style="text-align:center;">{FIELD-WISH-LIST-ACCESS-CODE}</p>
<p><input type="submit" name="submit_wish_list_access_form" value="View this wish list" /></p>
</form>
</div>
 
<!-- Show the content between IF-WISH-LIST-BEGIN and ELSE only if the customer already has a wish list. -->
<br />
<div style="border:2px solid black;padding:15px;width:500px;">
<!-- Show the content between IF-WISH-LIST-OWNER-BEGIN and ELSE only if the customer owns the wish list. -->
       {IF-WISH-LIST-OWNER-BEGIN}
<div style="border:1px solid red;padding:15px;width:auto;">
<h4>Edit your wish lists...</h4>
<form name="wish_list_form" method="post" action="{THIS-PAGE}">
<!-- Show the content between WISH-LIST-BLOCK-BEGIN and WISH-LIST-BLOCK-END once for each wish list. -->
                       {WISH-LIST-BLOCK-BEGIN}
<div style="border:1px solid gray;padding:15px;width:auto;">
<strong>Wish List Name: {FIELD-WISH-LIST-NAME}</strong><br />
Is this wish list public? {FIELD-WISH-LIST-IS-PUBLIC}<br />
Delete this wish list? {FIELD-WISH-LIST-DELETE}<br />
<ul style="border:1px dashed black;padding:15px;width:auto;list-style-type: none;">
<li>{PRODUCT-NAME}</li>
</ul>
<a href="{URL-ADD-WISH-LIST-TO-BASKET}">Add entire Wish List to my order.</a><br />
</div><br />
<input type="submit" name="submit_wish_list_form" value="Update wish lists" /></p>
 
</form>
</div>
<!-- Show the content between ELSE and IF-WISH-LIST-OWNER-END only if the customer does not own the wish list. -->
        {ELSE}
<div style="border:1px dashed red;padding:15px;width:auto;">
<h4>Viewing Wish List: {WISH-LIST-NAME}</h4><br />
<em>Access Code: {WISH-LIST-ACCESS-CODE}</em><br />
<ul style="border:1px dashed black;padding:15px;width:auto;list-style-type:none;">
<li>{PRODUCT-NAME}</li>
</ul>
<a href="{URL-ADD-WISH-LIST-TO-BASKET}">Add entire Wish List to my order.</a>
</div>
<!-- End of content between IF-WISH-LIST-OWNER-BEGIN and IF-WISH-LIST-OWNER-END. -->
       {IF-WISH-LIST-OWNER-END}
 
</div>
<!-- End of content to show/hide based on whether the customer has a wish list. -->
 
<em>Wish Lists are not enabled at this time.</em>
                     
<!-- End of content to show/hide based on whether the store's Wish List Module is enabled. -->

 
If the store's Wish List Module is enabled -AND- the current visitor is logged into his or her customer account -AND- has not entered the public access code of a specific wish list -AND- and has two wish lists (named "What I want for my birthday" and "What I want to buy later"), then the following would display: 
Example
Wish Lists
View a wish list by entering its Public Access Code in the field below.

 

Edit your wish lists...
Wish List Name:
Is this wish list public?
Delete this wish list?
    Blue T-shirt
  • Blue Sneakers
Add entire Wish List to my order.
Wish List Name:
Is this wish list public?
Delete this wish list?
  • Red T-shirt
  • Red Travel Mug
Add entire Wish List to my order.

 


 
If the store's Wish List Module is enabled -AND- the current visitor is logged into his or her customer account -AND- has entered the public access code of a friend's wish list (named "Bill's Wish List"), then the following would display:
Example
Wish Lists
View a wish list by entering its Public Access Code in the field below.

 
 
Viewing Wish List: Bill's Wish List
Access Code: 1a111b123c456d789f0000g1h2222i3j
  • Green T-shirt
  • Checkered Sneakers
Add entire Wish List to my order.

 
If the store's Wish List Module is enabled -BUT- the current visitor has not entered the public access code to view a specific wish list -AND- either is not logged into a customer account -OR- is logged into a customer account that does not have any wish lists, then the following would display:
Example
Wish Lists
View a wish list by entering its Public Access Code in the field below.


 
If the store's Wish List Module is not enabled, then the following would display:
Example
Wish Lists
Wish Lists are not enabled at this time.

 

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 {IF-WISH-LIST-OWNER-BEGIN} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2018 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map