All 17 Free Shipping Bar sections
For developers
trfs_thresholdfilters the amount that unlocks free shipping. It is passed the amount and its source,auto(WooCommerce's Free shipping method) orfixed(the amount typed on the Setup screen). A typed amount has already been converted by the currency switchers listed above.trfs_goalfilters the shopper's progress before anything is drawn from it: an array withavailable,state,goal,total,remaining,percentanditems. A cart whose delivery is already free by a rate is in thesuccessstate withviaset torate.trfs_free_ratedecides whether a delivery rate that costs nothing makes shipping free. It is passedtrue, theWC_Shipping_Rateand its package; returnfalsefor a method that shows 0 when its price is not known yet.trfs_purge_cachesfires when the plugin empties page caches, for a cache it does not know how to ask.- A bar pinned to the bottom of the screen sets
--trasl-bottom-inseton the page's root element to its height. Add it to the bottom offset of anything else fixed to the bottom corners, ascalc(24px + var(--trasl-bottom-inset, 0px)), and the two will not overlap. - A bar at the top that floats or follows the screen sets
--trasl-top-insetthe same way, to all that is held at the top: the admin bar for anyone signed in, the bar itself and a cookie banner at the top. Add it to the top offset of anything fixed to the top of the screen. - While such a bar shows, the page's root element (
<html>) carries a class for its edge:trasl-top-trfsat the top andtrasl-bar-trfsat the foot, withtrfs-room-toportrasl-room-trfsas well when it floats over the page and keeps that much room free. They are set before the bar is first drawn and follow it when it is closed, refreshed or brought back, so a stylesheet can use them instead of asking the whole page with:has().
Still stuck? Ask the developers who wrote it. We aim to reply within one business day.