Merchant Guide
Getting Started
To enable the Account Widget in your storefront, please see the following instructions.
Enable the feature for your Inveterate account
Log into the Inveterate Merchant Dashboard and in the main navigation click the "Widget" item. On the page that opens, click the button to turn the feature on and you will then be redirected to the actual "Settings" subpage. If you see editable settings, you have successfully enabled the feature for your account.
Enable customer login via Multipass
Enable customer login via multipass - After enabling the feature, you will be directed to the Multipass Settings subpage. To enable customer login, you will need to provide your Multipass Secret. This is a required step to use the widget. To find your multipass secret:
Open your Shopify admin
Navigate to Settings > Customer Accounts
Make sure Legacy is selected
Scroll down to the Legacy customer account settings
Enable Multipass if it's not already enabled
Copy the secret and paste it into the Shopify Multipass Secret field in the Inveterate merchant dashboard and save


Add widget JS/CSS to your site
It is best to do this in a theme that isn't live to your customers so that you can test it before releasing it. In your Shopify admin on the Online Store page, go to your main theme and click "Duplicate". This will create an exact copy with all of your customizations that you can use for this step and the next one.
In the new them you created, select the Edit Code option to be taken to the theme code editor. In the Snippets folder, create a new file called inveterate-account-widget.liquid. In that file add the following code snippet:
Save the file and then navigate to the layout/theme.liquid file and add the following code directly above the closing </head> tag.
This will actually the code to your theme, making it available in the frontend.
Finally, you need to update the user account icon to open the widget rather than directing customers to the Shopify account templates. This is theme specific, so this will be a generalized explanation.
You will likely find a file with either "header" or "navigation" in the title. First check the sections folder and then check the snippets folder if you can't find it. Make sure it's a .liquid filetype and not .json when in the sections folder. Then you'll want to find the "customer" or "account" icon and it's surrounding <a> html tag. In the <a> tag, delete everything in the href property and replace it with #iaw_display. Yours will be different, but it should look something similar to:

It's possible, depending on your theme, that there is a second user icon specifically for mobile. If this is the case for your theme, make sure you update that one as well.
Add wishlist button to product pages
For the best results it's best to add an "Add to Wishlist" button to your product pages. To make this process as easy as possible, Inveterate provides a Shopify App Block that enables this functionality in just a few clicks.
To add this app block, go to the theme editor and navigate to the product page. This app block is only available on product pages. Under the Template section you can either click "Add Section" or add it as a block to one of your existing app block supported sections. Select "Apps" in the popup window and you'll see a list of app blocks, one of them being the Inveterate Add to Wishlist block. Depening on your theme, if you have app block supported sections, you will be able to add the block

In the screenshot above, I'm adding it to the Product information section as a block and I end up moving it to display below the Buy buttons and above the Description. Where you add it will depend on your theme and it's level of app block support.
Add wishlist stars to product cards
If you intend to use wishlists you need to add a way for your customers to add products to their wishlist. This is the simplest method for adding wishlist stars to product cards, but developers will be able to more deeply integrate this feature into your site.
In the theme you created earlier, create a new file in the snippets folder called inveterate-wishlist-heart.liquid. In that file add the following code snippet:
As a brief explanation of what this file is doing, it's creating a heart icon SVG that when clicked will run the addToWishlist() function provided in the widget frontend API and then open the widget. The file itself takes an iaw_product variable that can be passed into the liquid snippet when it's initialized.
To add this icon to product cards, you will need to locate your product cards file in your theme. This will likely be found in the snippets folder. Then you will need to identify the liquid variable that's being used for the product within the file. In my case, it's called card_product. In your case it may be named differently. Add the following code snippet within the product card code:
As mentioned before, you will need to change card_product to whatever it's named in your theme file. This will add a simple heart icon to your product tiles that when clicked will simply add the product to the customers "main" wishlist and open the widget to the wishlist view.
Customization
To customize the widget, you will find a plethora of settings within the Inveterate Merchant dashboard giving you the ability to add your logo, change colors, edit button styles and more. The widget is also fully integrated into your Shopify storefront so you can add your own custom CSS to make sure the widget perfectly fits your store's aesthetic.
Dev Documentation
For developers, please see our Dev Documentation for more information on how to interact with the widget with your code.
Last updated
Was this helpful?
