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: {WISH-LIST-ITEM-BLOCK-END}
Modular Merchant
QuickCode™ Glossary
{WISH-LIST-ITEM-BLOCK-END}
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 > {WISH-LIST-ITEM-BLOCK-END}
<< {WISH-LIST-ITEM-BLOCK-BEGIN} {WISH-LIST-ITEM-COMMENT} >>
{WISH-LIST-ITEM-BLOCK-END} Updated: 06/5/2013

The {WISH-LIST-ITEM-BLOCK-END} QuickCode Tag may be used with the {WISH-LIST-ITEM-BLOCK-BEGIN} QuickCode Tag, to define a block of content that will be displayed once for each product in a wish list. The {WISH-LIST-ITEM-BLOCK-BEGIN} {WISH-LIST-ITEM-BLOCK-END} QuickCode Block is intended primarily for use within the wish list template (wish_list.tpl), but may be used within any storefront template, as long as it is located within the correct QuickCode Block, as noted in the requirements below.

Requirements / Prerequisites
The {WISH-LIST-ITEM-BLOCK-END} QuickCode Tag must be used in combination with the {WISH-LIST-ITEM-BLOCK-BEGIN} QuickCode Tag.
 
The {WISH-LIST-ITEM-BLOCK-BEGIN} {WISH-LIST-ITEM-BLOCK-END} QuickCode Block must be used within the {IF-WISH-LIST-BEGIN} {IF-WISH-LIST-END} QuickCode Block.
 
The {WISH-LIST-ITEM-BLOCK-BEGIN} {WISH-LIST-ITEM-BLOCK-END} QuickCode Block may nested within the {WISH-LIST-BLOCK-BEGIN} {WISH-LIST-BLOCK-END} QuickCode Block, inside the {IF-WISH-LIST-BEGIN} {IF-WISH-LIST-END} QuickCode Block.
 
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.
Example of Use
1. Add the following code to a storefront template:
Example
<hr />
<!-- 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}
<h3>Wish Lists</h3>

  <!-- Show the content between IF-WISH-LIST-BEGIN and ELSE only if the shopping session has a wish list. -->
{IF-WISH-LIST-BEGIN}
<div style="border:2px solid black;padding:15px;width:700px;"> 

  <!-- Show the content between IF-WISH-LIST-OWNER-BEGIN and ELSE only if the logged in customer owns the wish list. -->
  {IF-WISH-LIST-OWNER-BEGIN}
<h4>Edit my wish lists...</h4><br />
<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}
<ul style="border:2px solid grey;padding:15px;width:auto;list-style-type: none;">
<li><strong>Wish List Name</strong> {FIELD-WISH-LIST-NAME}</li>
<li>

<!-- Show the content between WISH-LIST-ITEM-BLOCK-BEGIN and WISH-LIST-ITEM-BLOCK-END once for each product in the current wish list. -->
{WISH-LIST-ITEM-BLOCK-BEGIN}
<ul style="padding:10px;width:auto;list-style-type: none;">
  <li><strong>Product Name:</strong> {PRODUCT-NAME}</li>
<li><strong>Price:</strong> {PRODUCT-PRICE}</li>
<li><strong>Priority:</strong> {FIELD-WISH-LIST-ITEM-PRIORITY}</li>
<li style="text-align:center;"><button type="button" name="" value="" onclick="location.href='quick_return.php?id={PRODUCT-SID}&qty=1'">ADD TO CART</button></li>
</ul><br />
<!-- End of WISH-LIST-ITEM-BLOCK content. -->
{WISH-LIST-ITEM-BLOCK-END}

</li>
<li style="text-align:center;"><a href="{URL-ADD-WISH-LIST-TO-BASKET}">Add entire "{WISH-LIST-NAME}" wish list to my order.</a></li>
</ul><br />
<!-- End of WISH-LIST-BLOCK content. -->
{WISH-LIST-BLOCK-END}
   <p><input type="submit" name="submit_wish_list_form" value="Update wish lists" /></p>
</form>

 <!-- Show the content between ELSE and IF-WISH-LIST-OWNER-END only if the logged in customer does not own the wish list. -->
  {ELSE}
<ul style="border:2px solid grey;padding:15px;width:auto;list-style-type: none;">
<li><h4>Viewing Wish List: {WISH-LIST-NAME}</h4></li>
<li><strong>Public access code:</strong> {WISH-LIST-ACCESS-CODE}</li>
<li>

<!-- Show the content between WISH-LIST-ITEM-BLOCK-BEGIN and WISH-LIST-ITEM-BLOCK-END once for each product in the current wish list. -->
                        {WISH-LIST-ITEM-BLOCK-BEGIN}
<ul style="padding:10px;width:auto;list-style-type: none;">
  <li><strong>Product Name:</strong> {PRODUCT-NAME}</li>
<li><strong>Price:</strong> {PRODUCT-PRICE}</li>
<li><strong>Priority:</strong> {WISH-LIST-ITEM-PRIORITY}</li>
<li><button type="button" name="" value="" onclick="location.href='quick_return.php?id={PRODUCT-SID}&qty=1'">ADD TO CART</button></li>
</ul><br />
                        <!-- End of WISH-LIST-ITEM-BLOCK content. -->
{WISH-LIST-ITEM-BLOCK-END}

</li>
<li style="text-align:center;"><a href="{URL-ADD-WISH-LIST-TO-BASKET}">Add entire "{WISH-LIST-NAME}" wish list to my order.</a></li>
</ul>
 <!-- End of content to show/hide based on whether the customer owns the wish list. -->
 {IF-WISH-LIST-OWNER-END}

  </div>
  <!-- End of content to be shown only if the shopping session has a wish list. -->
 {IF-WISH-LIST-END}

<hr />
<!-- End of content to be shown only if 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 logged in customer owns 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
Edit my wish lists...
  • Wish List Name 
    • Product Name: Blue T-Shirt
    • Price: $10.00
    • Priority: 

    • Product Name: Blue Sneakers
    • Price: $50.00
    • Priority: 

  • Add entire "What I want for my birthday" wish list to my order.

  • Wish List Name 
    • Product Name: Red T-Shirt
    • Price: $12.00
    • Priority: 

    • Product Name: Red Travel Mug
    • Price: $20.00
    • Priority: 

  • Add entire "What I want to buy later" wish list to my order.

 
3. If the store's Wish List Module is enabled -AND- the current visitor 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
  • Viewing Wish List: Bill's Wish List
  • Public access code: 1a111b123c456d789f0000g1h2222i3j
  •  
    • Product Name: Green T-Shirt
    • Price: $12.00
    • Priority: Regular

    • Product Name: Checkered Sneakers
    • Price: $60.00
    • Priority: High

  • Add entire "Bill's Wish List" wish list to my order.
  •  

 
4. 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
 
5. If the store's Wish List Module is not enabled, then the following would display:
Example

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 {WISH-LIST-ITEM-BLOCK-END} 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