Skip to content
IvaSure add-ons and services for SureCart storesJoin the POD waitlist

Wishlist blocks and shortcodes

1 min read
Published
Category
Reference

Three blocks, each with a shortcode equivalent that takes the same arguments. Only one is required by a normal store: the table, on your wishlist page.

Wishlist Table

Block ivasure/wishlist-table, shortcode [ivasure_wishlist]. Renders the current visitor’s saved items. Belongs on the page selected as the Wishlist Page.

AttributeShortcodeTypeDefault
showShareshow_sharebooleantrue
showAddToCartshow_add_to_cartbooleantrue

Wishlist Button

Block ivasure/wishlist-button, shortcode [ivasure_wishlist_button]. Adds and removes one product. Only needed when Button Position is set to Custom, or to place a save control outside a product template.

AttributeShortcodeTypeDefault
productIdproduct_idstringempty, meaning the product of the current page
stylestylestringboth - also icon or text
showCountshow_countbooleanfalse
An empty product ID is the useful case
Inside a product template, leaving it empty makes one block work for every product. Setting it explicitly is for the other situation: a save control on a landing page or a comparison table, pointed at a product the page is not about.

Wishlist Share

Block ivasure/wishlist-share, shortcode [ivasure_wishlist_share]. The share panel on its own. The table already includes it unless you turned it off, so this is for putting sharing somewhere else on the page.

AttributeShortcodeTypeDefault
networksnetworksstringempty, meaning the networks enabled in settings
shareMessageshare_messagestringempty, meaning the configured Share Message
Overriding the networks for one placement
[ivasure_wishlist_share networks="copy,whatsapp" share_message="My picks"]
Do not put two share panels on the same page
The table renders one by default. Adding the block as well gives a customer two copies of the same link and two Refresh link buttons, one of which will silently invalidate what the other just copied. Turn Show share off on the table first.

Save to list