How to place FSB in cart drawer - Impulse

Follow these instructions to insert the Free Shipping Bar into the cart drawer for the theme Impulse.

First, ensure that the bar is set to manual placement in the bar configurations:

Screen_Shot_2022-08-18_at_1.23.39_PM.png

Next, you'll need to get into the code editing space. For that click on: 

1 ) Online Store

2) Themes

3) Then click the ellipses drop down(on the right side of the page)

4) Click 'Edit Code'

​​​

On the left hand side, open the the Snippets folder. In there you'll find the file cart-drawer.liquid. Open that file.

Screen_Shot_2022-08-18_at_3.24.21_PM.png


Screen_Shot_2022-09-13_at_3.33.33_PM.png

To place the bar above the subtotal:
In cart-drawer.liquid file find this section:

<div class="cart__item-sub cart__item-row">
<div class="ajaxcart__subtotal">{{ 'cart.general.subtotal' | t }}</div>
<div data-subtotal>{{ cart.total_price | money }}</div>
</div>



Above that section, copy and paste in this code:

<div id="fsb_placeholder" style="margin-bottom:44px;"></div>

Like so:

Screen_Shot_2022-09-13_at_3.44.17_PM.png


This should result in the bar loading above the Subtotal in the cart drawer.

To place the bar above the items near the top:

In cart-drawer.liquid file find this section:

<div class="drawer__inner">
<div class="drawer__scrollable">
<div data-products class="appear-animation appear-delay-2"></div>



Above that section, copy and paste in this code:

<div id="fsb_placeholder" style="margin-bottom:10px; min-height:31.5px;"></div>

Like so:

Screen_Shot_2022-09-15_at_2.58.12_PM.png


This should result in the bar loading above the items in the cart drawer.


Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.