|
|
{IF-WISH-LIST-IS-PUBLIC-BEGIN} |
Updated: 05/17/2013 |
The {IF-WISH-LIST-IS-PUBLIC-BEGIN} QuickCode Tag may be used in combination with the {IF-WISH-LIST-IS-PUBLIC-END} QuickCode Tag to show or hide content based on whether or not a wish list is set to be publicly viewable.
When a wish list is first created, the option is available to set the wish list to be publicly viewable or not. The wish list may also be edited later to update the setting. Only the customer who created the wish list, or a store admin, may alter a wish list's publicly viewable setting.
If the customer who created the wish list is logged into their customer account, they may manage their wish lists through the storefront wish list page (http://[storedomain]/wish_list.php).
Store admins may use the Search Wish Lists page (located at [Modules > Wish Lists > Search Wish Lists] to view all wish lists. The publicly viewable setting may be altered directly from the Search Wish Lists page, or an individual wish list may be selected to view and edit all of its settings in the Wish List Editor. |
|
Requirements / Prerequisites |
Example of Use |
- Add the following code to a storefront template:
ExampleView your wish lists here:<br />
<!-- Show the content between IF-USING-WISH-LISTS-BEGIN and ELSE only if the store's Wish List Module is enabled. -->
{IF-USING-WISH-LISTS-BEGIN}
<!-- Show the content between WISH-LIST-BLOCK-BEGIN and WISH-LIST-BLOCK-END once for each of the user's wish lists. -->
{WISH-LIST-BLOCK-BEGIN}
<div style="border:1px dashed black;padding:5px;width:400px;">
<strong>Wish List Name:</strong> <strong><span style="color: rgb(51, 51, 153);">{WISH-LIST-NAME}</span></strong>
<br /><br />
<!-- Show the content between IF-WISH-LIST-IS-PUBLIC-BEGIN and ELSE only if this wish list is public. -->
{IF-WISH-LIST-IS-PUBLIC-BEGIN}
<em>(Public Wish List)</em><br />To share this wish list, send this access code your friends:<br />
<strong>Public access code: {WISH-LIST-ACCESS-CODE}</strong><br />
<span>{FACEBOOK-SHARE-BUTTON} {GOOGLE-PLUS-SHARE:annotation=none} {TWITTER-TWEET-BUTTON:count=none}</span>
<!-- Show the content between ELSE and {IF-WISH-LIST-IS-PUBLIC-END only if this wish list is not public. -->
{ELSE}
<em>(Private Wish List)</em>
<!-- End of content to show/hide based on whether the wish list is public. -->
{IF-WISH-LIST-IS-PUBLIC-END}
</div>
<!-- End of content to be displayed once for each of the user's lists. -->
{WISH-LIST-BLOCK-END}
<!-- Show the content between ELSE and IF-USING-WISH-LISTS-END only if the store's Wish List Module is not enabled. -->
{ELSE}
<em>Wish lists are not allowed at this time.</em><br />
<!-- End of content to show/hide based on whether the store's Wish List Module is enabled. -->
{IF-USING-WISH-LISTS-END}
Thanks for visiting, please come again soon...
- If the store's Wish List Module is not enabled, the following would display:
Example View your wish lists here:
Wish lists are not allowed at this time.
Thanks for visiting, please come again soon...
- If the store's Wish List Module is enabled, and the customer has one public wish list named "What I want for my birthday", and one private wish list named "What I want to buy later", the following would display:
ExampleView your wish lists here:
Wish List Name: What I want for my birthday (Public Wish List)
To share this wish list, send this access code to your friends:
Public access code: 1a111b123c456d789f0000g1h2222i3j
Wish List Name: What I want to buy later (Private Wish List)
Thanks for visiting, please come again soon...
|
|
Source Code |
Source Code Updated: |
LOG IN TO ADD COMMENTS
|