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

The {URL-ADD-WISH-LIST-TO-BASKET} QuickCode Tag may be used within any storefront template to create a link that may be used to add all of the products in a wish list to the current visitor's basket.

Requirements / Prerequisites

The shopping cart must be able to locate a wish list to associate with the link created by the {URL-ADD-WISH-LIST-TO-BASKET} QuickCode Tag, and so {URL-ADD-WISH-LIST-TO-BASKET} must be used within the {IF-WISH-LIST-BEGIN} and {IF-WISH-LIST-END} QuickCode Block, and/or within the {WISH-LIST-BLOCK-BEGIN} and {WISH-LIST-BLOCK-END} QuickCode Block.

The {URL-ADD-WISH-LIST-TO-BASKET} QuickCode Tag must placed within a properly formatted HTML anchor tag, in order to create a working link.

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}
<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 black;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 solid grey;padding:15px;width:auto;list-style-type: none;">
<li>{PRODUCT-NAME}</li>
</ul>
<a href="{URL-ADD-WISH-LIST-TO-BASKET}" style="outline:red solid 1px;">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>
<!-- 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 black;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 solid grey;padding:15px;width:auto;list-style-type:none;">
<li>{PRODUCT-NAME}</li>
</ul>
<a href="{URL-ADD-WISH-LIST-TO-BASKET}" style="outline:red solid 1px;">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:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {URL-ADD-WISH-LIST-TO-BASKET} 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