# Sticky Calculator

{% embed url="<https://youtu.be/RyoGUIUkQ1g>" %}

The **Sticky Calculator** feature adds a floating button or sticky banner to your pages, keeping the calculator visible as users scroll. Both options provide easy access at any time, enhancing usability and engagement. This setting is straightforward to enable and can be adjusted to fit any page layout.

{% tabs %}
{% tab title="Floating Button" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F6uMRPPuTNSwjkFyP7A8f%2Ffloat%20prev.jpg?alt=media&#x26;token=8f023f76-8085-4dc7-aea4-f613cfb44f2a" alt=""><figcaption><p>Screenshot of the Floating Button</p></figcaption></figure>
{% endtab %}

{% tab title="Sticky Banner" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FxSraN1djkUwQvznF17lE%2Fsticky%20prev.jpg?alt=media&#x26;token=9d883140-90d6-4cbe-9ed5-58ef4acb44d6" alt=""><figcaption><p>Screenshot of the Sticky Banner</p></figcaption></figure>
{% endtab %}
{% endtabs %}

To **enable it**, follow Individual **Settings > Sticky Calculator**:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Fep3azjZdImHUcDCSHntJ%2Fenable%20the%20setting.jpg?alt=media&#x26;token=13074f4b-8a96-431c-9209-6e20d8d477d3" alt=""><figcaption><p>Enabling the Sticky Calculator feature</p></figcaption></figure>

On the right side of the page, you'll see a **preview** of the sticky calculator. Your changes will be displayed here **immediately**, helping you visualize how the calculator will look on the page.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FwExbmqwrSC4pt9RUZokx%2Fpreview.jpg?alt=media&#x26;token=83eb66fb-04c7-411d-b1f6-277258a1ebc7" alt=""><figcaption><p>Preview section of the Sticky Calculator</p></figcaption></figure>

## Sticky Calculator Settings

The **Sticky Calculato**r can be displayed in two distinct ways, each with its own method of interaction:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FcRdsV2MVqWjt8pyxdV5J%2Fshow%20as.jpg?alt=media&#x26;token=68f0064a-b230-4ec3-9154-d4813f37863d" alt=""><figcaption><p>Show as</p></figcaption></figure>

### **Floating Button**

This option displays the calculator as a clickable button that remains in a fixed position on the screen. When clicked, the button can either open the calculator in a pop-up window or scroll the page to the calculator. This flexibility allows users to interact with the calculator without leaving their current position on the page, maintaining a clean and attractive user interface while ensuring easy access to its functionalities.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F8DjeqkNoxaFVss07tcP7%2FUntitled%20Project.gif?alt=media&#x26;token=ddeaedf0-560b-4d31-ae27-227152e7582e" alt=""><figcaption><p>Floating Button Example</p></figcaption></figure>

Here you can see the available settings of the **Floating Sticky Button:**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FjJQJVzE8Jz9zk80r6CAW%2Ffloat%20button%20settings.jpg?alt=media&#x26;token=50a82a1e-e039-4044-b613-5f811db09402" alt=""><figcaption><p>Settings of the Floating Button</p></figcaption></figure>

* **Position** - choose where the floating button will be displayed.
* **Icon** - indicate the icon to display on the floating button. You can use the default icon, upload your own icon in **JPG, JPEG, PNG, WEBP, GIF,** and **SVG** formats, or choose to hide the icon entirely.
* **Title** - select the title to be displayed on the floating button. If you choose the **Custom Title** option indicate it to the designated area.
* **Select Total** - choose which total(s) to display on the floating button. If multiple totals are selected, their sum will be shown.

{% hint style="info" %}
When multiple calculators are set as floating sticky buttons, they will appear side by side on the pages.
{% endhint %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FEjaRgkPtH2nhFm0wL7tS%2Fmultiple.jpg?alt=media&#x26;token=669bcb05-c834-4fea-aeb6-d2fa321ae4a1" alt=""><figcaption><p>Multiple Sticky Calculators on the same page</p></figcaption></figure>

### Sticky Banner

As an alternative, the calculator can be configured as a **sticky banner** located at the top or bottom of the page. When a user clicks on the banner, it can either scroll to the calculator's location or open the calculator in a pop-up window. This ensures the calculator remains highly visible and accessible at all times. Unlike the floating button, the sticky banner also includes an additional **description section**, allowing for more detailed information about the calculator to be shared, providing a direct and enriched point of interaction for users.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FJfB4AL6Z9FChGp0qrwcR%2F33333.gif?alt=media&#x26;token=4279bc6f-e05c-47f9-bb77-f59f2af880d2" alt=""><figcaption><p>Preview of the Bottom Sticky Banner</p></figcaption></figure>

Here you can see the available settings of the **Sticky Banner:**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FbRsw3avIuxuGfLsQeXaq%2Fsticky%20banner.jpg?alt=media&#x26;token=46e71dbd-cd77-4e13-a66d-0ed6683d2a5f" alt=""><figcaption><p>Settings of the Sticky Banner</p></figcaption></figure>

* **Position** - choose where the sticky banner will be displayed.
* **Icon** - indicate the icon to display on the sticky banner. You can use the default icon, upload your own icon in **JPG, JPEG, PNG, WEBP, GIF,** and **SVG** formats, or choose to hide the icon entirely.
* **Title** - select the title to be displayed on the sticky banner. If you choose the **Custom Title** option indicate it to the designated area.
* **Description text** - enter the general description of your calculator or any short text to attract users&#x20;
* **Select Total** - choose which total(s) to display on the sticky banner. If multiple totals are selected, their sum will be shown.
* **Button Tex**t - Enter the text for the button.

{% hint style="danger" %}
Only **one calculator** can be used with a sticky banner. Any additional calculators set to use a sticky banner will automatically become floating buttons!
{% endhint %}

### Click Actions

The sticky banner and floating button support eight click actions enhancing user interaction and accessibility:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FPfCruR4iPsDDwRNZp1J5%2Fimage.png?alt=media&#x26;token=52fdcc5e-023f-4f9b-a5e3-352e27aefffa" alt=""><figcaption><p>Click Actions</p></figcaption></figure>

#### **Scroll to Calculator**

This action automatically scrolls the user to the section of the page where the calculator is embedded, providing a seamless navigation experience directly to the tool.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FS0byI5INNqpwJnOY9ROr%2Fbbbb.gif?alt=media&#x26;token=6fe2e2df-1805-4090-8464-a6e38d074eb3" alt=""><figcaption><p>Scroll to Calculator</p></figcaption></figure>

#### **Open Pop-Up**

When this action is selected, clicking on the button or banner opens the calculator in a pop-up window. This allows the user to interact with the calculator without navigating away from their current position on the page.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FxE9seq0U06N3JvOXMxHN%2Fpop%20up.gif?alt=media&#x26;token=609af4ce-aaa0-4423-85a2-688da2a67bf8" alt=""><figcaption><p>Open pop-up</p></figcaption></figure>

#### Pop-up Order Form or Payments

Opens an order form with calculation results and payment options in a pop-up, facilitating immediate action from the user.&#x20;

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FGZdIViNEtsOYuoolVXdg%2Fimage.png?alt=media&#x26;token=56d329b3-7eba-4178-b3c5-6ac8dd55e944" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Values should be indicated to the calculator **beforehand** or you can indicate some default values in your calculator to avoid zero value in total and charge users.
{% endhint %}

#### Download PDF

Allows users to download a **PDF detailed quote** directly with a single click.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FS6flwAGbOmrsckqtlPuw%2Fimage.png?alt=media&#x26;token=57364b39-6cb0-4b4b-9b63-3b656cc57ec4" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Do not forget to enable [**PDF Entries**](https://docs.stylemixthemes.com/cost-calculator-builder/cost-calculator-settings/global-settings/pdf-entries) in **Global Settings** to make the function work.
{% endhint %}

#### Share Invoice

Enables users to quickly share an invoice via email directly from the calculator.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FdImDfG5rHbdBGKo3wide%2Fimage.png?alt=media&#x26;token=97ec2cac-2ae0-4117-878f-fa7854b58741" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Click Action will be **disabled** if the[ **Email Quote**](#user-content-fn-1)[^1] setting is **OFF.**&#x20;

Do not forget to set up [**SMTP settings**](https://docs.stylemixthemes.com/f-a-q/smtp-settings) to make email sending work.
{% endhint %}

#### WooCheckout Action After Submit

Redirects users to the WooCommerce checkout page automatically after clicking the button.&#x20;

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FQjPc8KAQowN6g57mkt6J%2Fimage.png?alt=media&#x26;token=6073c646-149a-43ff-81b6-bc88728d83b8" alt=""><figcaption><p>Opened WooCheckout Page after clicking the button</p></figcaption></figure>

{% hint style="info" %}
Values should be indicated to the calculator **beforehand** as clicking the button shares the **total amount to WooCommerce** after clicking the button. You can also set some d**efault values** to your calculator so that even without touching the calculator, the total price will not be zero.&#x20;
{% endhint %}

{% hint style="warning" %}
This click action works only once [**WooCheckout**](https://docs.stylemixthemes.com/cost-calculator-builder/cost-calculator-settings/calculator-settings/woo-checkout) is **ON.**
{% endhint %}

#### WooProduct as Open Modal&#x20;

Displays a calculator in a modal window on the WooProduct page only, keeping users on the current page while providing product information.&#x20;

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FDRgPcJYSByADeFqld1DW%2Fimage.png?alt=media&#x26;token=7671cddf-0a8a-4195-89e9-819fe0e58fdd" alt=""><figcaption><p>WooProduct Page with Sticky Calculator</p></figcaption></figure>

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Feu8W3lweBuXo3NrpUDSc%2Fimage.png?alt=media&#x26;token=532b5bd9-24ad-4946-82ae-a05f4c8a6bc0" alt=""><figcaption><p>WooProduct page with Calculator as open modal</p></figcaption></figure>

{% hint style="warning" %}
This click action works only once [**WooProducts**](https://docs.stylemixthemes.com/cost-calculator-builder/cost-calculator-settings/calculator-settings/woo-products) is **ON.**
{% endhint %}

#### WooCheckout Action on WooProduct Page

Initiates a checkout process immediately after clicking the button, streamlining the buying process on the **WooProduct page** only. In this case, Sticky Calculator will not be displayed on the other page.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FDRgPcJYSByADeFqld1DW%2Fimage.png?alt=media&#x26;token=7671cddf-0a8a-4195-89e9-819fe0e58fdd" alt=""><figcaption><p>WooProduct Page</p></figcaption></figure>

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FQjPc8KAQowN6g57mkt6J%2Fimage.png?alt=media&#x26;token=6073c646-149a-43ff-81b6-bc88728d83b8" alt=""><figcaption><p>WooCheckout page after clicking the button</p></figcaption></figure>

{% hint style="warning" %}
This click action works only once [**WooCheckout**](https://docs.stylemixthemes.com/cost-calculator-builder/cost-calculator-settings/calculator-settings/woo-checkout) and [**WooProducts**](https://docs.stylemixthemes.com/cost-calculator-builder/cost-calculator-settings/calculator-settings/woo-products) are **ON.**
{% endhint %}

### Not Show on Pages

In click actions[ **Scroll to Calculator**](#scroll-to-calculator)**,** [**Open a pop-up,**](#open-pop-up)[ **Download PDF,**](#download-pdf) [**Share Invoice,**](#share-invoice) and [**WooChecout action after submit** ](#woocheckout-action-after-submit)there is one extra setting called Not Show on pages. With the help of it, you can indicate the pages where you do not want to display the sticky calculator. On other pages, they will be displayed.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FloOlH3D8faePJSed7Q8S%2Fimage.png?alt=media&#x26;token=410c092c-30ed-49c2-92ab-416697a1a12a" alt=""><figcaption></figcaption></figure>

### Show Calculator on Background

In click actions [**Pop-up order form or payments,**](#pop-up-order-form-or-payments) [**Download PDF,**](#download-pdf) [**Share Invoice,**](#share-invoice) [**WooCheckout action after submit,** ](https://docs.stylemixthemes.com/cost-calculator-builder/cost-calculator-settings/calculator-settings/woo-checkout)and [**WooCheckout Action on WooProduct Page**](#woocheckout-action-on-wooproduct-page) there is another additional setting called Show Calculator in the background. If you disable the setting, the calculator will not be displayed on the pages where it was placed, but only a floating button or sticky banner will be displayed according to your choice.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Fdc4D0GacgbViFnpAIaD5%2Fimage.png?alt=media&#x26;token=30f54467-5f73-45aa-b533-e7829a15b207" alt=""><figcaption></figcaption></figure>

### Appearance of Sticky Calculator

The floating button and sticky banner, along with their elements and SVG icons, inherit the colors and design from the calculator's [appearance](https://docs.stylemixthemes.com/cost-calculator-builder/plugin-features/calculator-customization).

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F73FN4sU3wgoH4kKH6x0t%2Fadditional%20classes.jpg?alt=media&#x26;token=e75b6f19-4786-45e7-952c-3796cb009690" alt=""><figcaption><p>Additional Classes</p></figcaption></figure>

At the bottom of the settings, there is an area to specify **additional CSS classes** for the Sticky Calculator. These classes will be added to the floating button or sticky banner by the Cost Calculator. You can define these classes in the **appearance** section of your **WordPress**, just like other additional classes, giving you more control over the appearance of the Sticky Calculator.

[^1]: Global Settings -> Order Form -> Email Quote Button
