Creating and publishing
Learn how to create a function and publish it on your store.
Last updated
Learn how to create a function and publish it on your store.
Last updated
There are two parts to setting up a function on your store:
Creating the function: There are different conditions required for each function. You can find specific function setup instructions in the Templates or Functions section of the Help Center.
Publishing a widget on your storefront: This is important if you want customers to know about the function, like in the case of discounts, sales, or free shipping promos.
Steps:
From the FJ Functions & Script Editor, click Create a function.
Beside the function type you want to create, click Continue.
Input your function details as per the steps. Refer to the Function type doc if you need help.
Click Publish.
Your function is now active.
After you've clicked Publish, you're taken to that function campaign dashboard.
Here you can:
access function analytics
edit the function
switch the function status
see the function's history
add it as a storefront widget
To make the function details visible to customers, you can publish it as a storefront widget.
Steps:
From the function campaign dashboard, under Storefront Widgets you have different options depending on the type of function you created:
Promotional banner: A standard promotional banner. It can have a Title, Subtitle, and a Button.
Tiered banner: This banner is meant to illustrate where the customer is with regards to reaching the next tier of discount based on their cart total. Can have an overall Title and Subtitle, and then Titles and Subtitles for three tiers. The widget subtitle will be automatically replaced when the tier is completed.
Popup: Can have a Title, Subtitle, and a Button.
Enter the details required for the widget and click Save.
Under Widget preview, from the Destination drop-down, select where you want to publish the widget to. You can choose:
Home page
Product page
Collection page
Select the Theme that you want to publish the widget to.
Click Continue to theme editor.
On your theme editor, the widget is published under the Apps block.
Steps:
Click on the widget that was added to the Apps section block.
Beside Block identifier (Block Name or App Block ID), click Select.
Click the corresponding block name for the function you created.
Optional: Adjust any styles that you want to apply to the widget.
Click Save.
Optional: Click back to the main template and click and drag the Apps section block to the position in the theme template that you want, and click Save.