Speak to our experts today 0333 004 0333
Speak to one of our experts today
User Guides

EKM Tag: [ekm:add_to_wishlist_link]

Use this tag to output a link that allows a logged in customer to add a product to their wishlist.

  • Tag Information
Basic Use
This tag is used to output an add to wishlist link for a specific product.

[ekm:add_to_wishlist_link]product_id='1';[/ekm:add_to_wishlist_link]
                                
Advanced Use
This tag will output an add to wishlist link on the page for a specific product.

[ekm:add_to_wishlist_link]

    output_start='<div>';
    output_item='[link]';
    output_item_no_login='<p>Login to add this product to your wishlist.</p>';
    output_end='</div>';

    product_id='1';

[/ekm:add_to_wishlist_link]
                                
This would output something like...
Tag Attributes
output_start
output_start='';

Here you can specify what will be output at the start of the ekm:add_to_wishlist_link tag. Typically you would start to output some HTML.

Example: You would open a containing div at this point.

Value
Description
{user defined}
Specify your own starting HTML.
output_item
output_item='';

This where you can control the output of the actual link or create your own link.

Value
Description
{user defined}
Specify your own item HTML and include the tags you wish to use. A full list of these tags can be seen below.

Within [ekm:tags] you would need to open and close them in the same way you would open and close HTML tags. However with attribute tags, like the ones below, they are self closing and work alone without any need to close them.

Value
Description
[link]
Outputs an "add to wishlist" link.
[url]
Outputs the url to add the product to the wishlist.
Useful when creating your own link.
output_item_no_login
output_item_no_login='';

When the customer is not logged in then this attribute can be used to output a message instead of the link.

If this attribute is not present then the whole tag will output nothing when a user is not logged in.

Value
Description
{user defined}
Specify your own item HTML and include the tags you wish to use. A full list of these tags can be seen below.
output_end
output_end='';

Output after the output_item.

Value
Description
{user defined}
Specify your own HTML to go after the add to wishlist link.
product_id
product_id='';

Sets the product this link will be for.

Value
Description
{user defined}
Specify the id of a product.