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

Put the wishlist button on product pages

3 min read
Published

The button is the whole interaction. Everything else in the add-on exists to serve what happens when somebody presses it, so it is worth spending a few minutes on where it sits and what it says.

It is configured at IvaSure : Wishlist : Product Page, and it is placed automatically: you choose a position, and the add-on inserts the button next to the matching SureCart block. You do not edit a template.

The Product Page settings tab showing button position, button style, icon style and the six text fields for button and notice copy.
The Product Page tab, where position, style and every label are set.

Where it goes

PositionLands next toSuits
After add to cartThe buy button.Most stores. The default, and the position shoppers look for.
After titleThe product title.Pages where the buy button is far down, or a long description sits between.
After priceThe price, the price chooser or the scratch price.Stores where price is the decision, so saving belongs next to it.
After descriptionThe product description.Long-form product pages, where somebody decides at the end of reading.
CustomNothing. Nothing is inserted automatically.Any layout the four above cannot reach. You place the block yourself.
Position matches a block, not a pixel
Each position looks for the corresponding SureCart block in your product template. If your template does not contain that block - a custom page without a price block, say - nothing is inserted, because there is nothing to insert next to. Choose a position whose block your template actually has.

Custom position

Choosing Custom switches automatic placement off entirely and leaves you to put the Wishlist Button block wherever you want it. That is the escape hatch for Etch, a custom product template, or a layout where the button belongs somewhere the four automatic positions cannot describe.

The block has a productId attribute. Left empty it uses the product of the page it is on, which is what you want inside a product template. Set it explicitly and the button saves that specific product, which is how you put a save control on a landing page.

The same thing as a shortcode
[ivasure_wishlist_button product_id="prod_abc123"]

What it looks like

SettingOptionsDefault
Button StyleIcon only, text only, or both.Both
Icon StyleHeart, or heart on a background.Heart
Icon-only needs the label to still exist
An icon with no visible text still carries its accessible name from the Add and Remove text below, which is what a screen reader announces and what a tooltip shows. Emptying those fields to “clean up” an icon-only button leaves it unlabelled. Change the wording if you like; do not blank it.

The words

Six fields, each with a sensible default, each worth a moment.

FieldShownDefault
Add TextOn the button before the product is saved.Add to wishlist
Remove TextOn the button once it is saved.Remove from wishlist
Already Added TextWhen the product is already on the list.Already in your wishlist
Added NoticeThe confirmation after saving.Product added
Removed NoticeThe confirmation after removing.Product removed
View wishlistThe link back to the wishlist page.View wishlist
Leave a field empty to get the translated default
Empty means “use the built-in string”, which is translated with the rest of the plugin. Typing your own wording in English pins it to English. If you run a multilingual store, that difference matters.

Save to list