Pro add-on · Store

Sticky Add to Cart for WordPress

Pins the Add to Cart button to the screen once the real one scrolls out of view.

$199/yr or $549 once — all 35 add-ons Same admin as the free core Enable or disable without losing data
What it does

Sticky Add to Cart, in practice.

On the single-product route (?ambikly_product=slug) the add-on enqueues a small script and stylesheet and nothing else; there are no REST routes and no database writes. The script finds the page's real Add to cart button, reads the title and price from the page, and builds a bar fixed to the top or bottom of the viewport. An IntersectionObserver fades the bar in once the original button scrolls out of view, and a MutationObserver keeps the bar's price and disabled state matched to the page as variations change. Clicking the bar scrolls to and clicks the real button, so every existing cart hook still fires.

CapabilitiesStore
  • Bar fixed to the top or bottom of the viewport
  • Appears only when the real button scrolls off-screen
  • Mobile-only mode for viewports up to 767 px
  • Optional live price mirrored from the page
  • Disabled state follows the real button
  • Click forwards to the original button, so cart hooks fire
  • Loads only on the single-product route
  • Uses the storefront's primary button styling
Where it shows up

Storefront, admin and settings.

On the storefront

  • Pinned Add to cart bar with product title and price on product pages

Settings you control

  • Bar position (top or bottom)
  • Mobile only
  • Show price in the bar
For developers

Routes and hooks.

Built on the same Addon SDK as every other Pro add-on — extend it instead of replacing it.

Core hooks it listens to

  • ambikly_is_product_context
  • wp_enqueue_scripts

Works with

When it earns its place

Three stores that want Sticky Add to Cart.

1

Long-form product pages

A skincare store writes detailed ingredient and usage sections below the fold. Once the shopper scrolls past the buy box, the bar keeps the price and Add to cart visible, so finishing the article does not mean scrolling back up to buy.

2

Mobile shoppers on variable products

A footwear store enables Mobile only. A shopper picks a size, keeps reading reviews, and taps the bar at the bottom of the phone screen; the bar shows that size's price and grays out for sizes the page has marked sold out.

3

Stores with tall image galleries

A furniture store's product pages open with several large photos. The bar appears as soon as the original button leaves the viewport, so a shopper who has decided from the images can buy without hunting for the button further down.

Setup

From toggle to live in a few minutes.

  1. Enable it

    Ambikly → Add-ons → Sticky Add to Cart → toggle on. Pro must be active; nothing else to install.

  2. Set it up

    Open its settings panel and set: bar position (top or bottom); mobile only; show price in the bar.

  3. Find it in use

    The storefront surfaces, admin screens and settings it adds are listed under “Where it shows up” above; nothing needs placing by hand unless a shortcode is named there.

  4. Turn it off without losing anything

    Disable the add-on from the same screen. Its settings and data stay in place, and a lapsed license pauses it the same way — the store keeps running.

FAQ

About Sticky Add to Cart.

Can I show the sticky bar only on phones?

Yes. Turn on Mobile only and the script exits on viewports wider than 767 px, so desktop visitors see the normal page. The check uses a matchMedia query when the page loads, and no bar markup is added at all on wider screens.

Does the bar update when a shopper picks a different variation?

Yes. A MutationObserver watches the page's price element and the real button's disabled attribute. When the variation picker changes the displayed price, or disables the button for an out-of-stock combination, the bar mirrors both immediately.

Will the sticky bar appear on my custom product template?

By default it loads only when the URL carries ambikly_product. Return true from the ambikly_is_product_context filter to enqueue it elsewhere; the script still needs a button matching the storefront's add-to-cart selectors, otherwise it does nothing.

Does clicking the bar bypass any cart logic?

No. The bar's button scrolls the original Add to cart button into view and triggers a click on it 200 ms later, so quantity, variation selection, stock validation and any analytics bound to that button behave exactly as if it had been clicked directly.

Get Sticky Add to Cart with every other add-on.

Pro is $199 a year or $549 once, for all 35 add-ons. Enable this one from the same admin the day you need it.