LumaTop, the back to top button that blends into your PrestaShop store

In short. LumaTop adds a back to top button to PrestaShop that shows up as soon as the visitor has scrolled far enough. You pick its icon, shape, colors, animation and the screens it appears on, with a live preview before you save. The module weighs 3.6 KB once compressed, sets no cookies and touches neither your theme nor your database.

7built-in icons
3button shapes
3.6 KBonce compressed
0cookies set

On a busy category page or a detailed product page, a visitor who wants to get back to the menu, the cart or the search bar has to swipe all the way up. On mobile, that repeated gesture quickly becomes tiring. LumaTop fixes this with a discreet button in a corner of the screen that brings the visitor back to the top in a single tap. This article walks through every setting so you can decide whether the module fits your store.



Ready the moment it is installed

There is nothing to configure to get started. The button is active as soon as installation finishes, with restrained settings that suit most themes.

Setting Default value
Icon and shape Chevron, circle
Size 44 px on mobile and tablet, 48 px on desktop
Colors Charcoal background, white icon, indigo background on hover
Opacity and shadow 90 %, soft shadow
Animation and hover Fade, lift
Position Automatic, bottom right corner
Margins 16 px on mobile and tablet, 32 px on desktop
Display threshold 400 px scrolled
Checkout Button hidden
Tooltip and ring Off

Quick start tip. To match the button to your theme, start with the background color and the hover color. Use your store's main color for one of them, the rest is usually already right.


A look that matches your store

The button should be noticed without getting in the way of reading. Every visual element is set in the Appearance section of the configuration page.

LumaTop icons, shapes, animations and progress ring

Icons, shapes, animations and progress ring offered by LumaTop

Icon, shape and size

  • 🧭Seven icons drawn inside the module, chevron, double chevron, arrow, thin arrow, arrow to bar, triangle and rocket
  • 🔷Three shapes, circle, rounded square or square
  • 📏Size from 36 to 72 px, set separately for mobile and tablet on one side and desktop on the other
  • 📦No external resource, the icon drawings ship with the module

Colors, border and shadow

  • Background and icon colors, at rest and on hover
  • Border from 0 to 4 px, with its own color
  • Opacity from 30 to 100 %, the button becomes fully opaque on hover and focus
  • Shadow of your choice, none, soft or strong

Contrast check. The preview calculates the contrast ratio between the icon and the background in real time, at rest and on hover. Below 3 to 1, it flags the button as hard to read. This is advice only, your colors are saved even when contrast is low.

Animations and effects

Setting Available options
Entrance animation None, fade, slide up, zoom, bounce
Hover effect None, lift, grow, glow

The hover effect only runs on devices with a mouse or a trackpad. Hover colors also apply when the button receives keyboard focus.

Tooltip and label

  • Optional tooltip, shown on hover and focus, up to 100 characters per language
  • Screen reader label that you can customize in each language
  • Empty field, the module falls back to its own translated text, for example "Back to top" for the tooltip

No HTML in texts. ⚠️ Any text containing < or > is rejected with a clear message. This rule protects your store against code injection.


The progress ring

Once enabled, a thin ring surrounds the button and fills up as the visitor moves down the page. It shows at a glance how much has already been read, which is handy on long product pages and blog posts.

  • 🎯Ring color, for the part already scrolled
  • 🛤️Track color, for the remaining part, best kept close to your store background
  • 📐Thickness adjustable from 2 to 6 px

Good to know. When the ring is on, the button becomes round whatever shape you selected.


Position and display threshold

The screen corner

  • Automatic, bottom right corner, or left when the visitor's language is written right to left, such as Arabic, Hebrew or Persian
  • Right or left, the same corner for every language
  • Margins from 0 to 200 px from the bottom and side of the screen, set separately for mobile and tablet and for desktop

On phones with a notch, the screen safe area is added to the margins when the theme declares it. The button therefore never slides under the home bar.

When it appears

Mode How it works When to choose it
Pixels scrolled, from 0 to 10,000 The button appears after a fixed distance 400 px is roughly half a desktop screen
Page percentage, from 0 to 100 The button appears after a share of the page 20 % suits stores whose pages vary a lot in length

On a page too short to scroll, the button never shows. It also stays hidden at the very top of the page, even with a threshold set to 0.


Precise display rules

The module does not try to guess the visitor's device. It relies on screen width, exactly like your theme.

LumaTop button size and margins on mobile, tablet and desktop

Button size and margins by screen width

Device Default screen width Size and margins used
Mobile Under 768 px Mobile settings
Tablet 768 to 1023 px Mobile settings
Desktop 1024 px and up Desktop settings

Both breakpoints can be changed, from 360 to 1,600 px for tablet and from 480 to 2,560 px for desktop. You then tick the devices the button should appear on, with at least one ticked.

Checkout left undisturbed

The Hide in checkout option, on by default, removes the button from the address, shipping and payment steps. Customers stay focused on their order and the button cannot cover a payment button. The cart and the order confirmation page are not affected, you can exclude them separately.

Excluded pages

  • 📋List of the pages that actually exist on your store, including those of other modules
  • 🖱️Multiple selection with Ctrl + click, or Cmd + click on Mac
  • 🚫Nothing is sent to an excluded page, neither the button, nor its stylesheet, nor its script
  • 🧹List kept up to date, pages of an uninstalled module disappear at the next save

Live preview in the back office

Everything is set on a single page, opened with the Configure button in the module manager. No extra menu clutters your back office. The Live preview panel, placed to the right of the form or above it on a narrow screen, shows the screen corner at actual size and follows every change.

  • 📱Mobile, Tablet, Desktop, to switch the simulated width and watch size and margins change
  • 🖱️Hover, by moving the mouse over the preview button to check colors, effect and tooltip
  • 🔁Replay entrance, to run the selected animation again
  • 📊Ring progress, a slider that simulates reading the page
  • 👁️Icon contrast, measured at rest and on hover

Key point. Nothing reaches the store until you click Save. The preview is computed in your browser, so you can experiment freely.

Values checked on the server

  • Colors accepted only in strict hexadecimal format
  • Numbers kept within their allowed range
  • Choices limited to a closed list
  • Excluded pages checked against the list of existing pages
  • Security token and employee permissions checked on every submission

An invalid value is rejected with a clear message and is never saved.


Multistore

With several stores, the context selector at the top of the back office shows which settings you are editing, and a banner repeats it at the top of the configuration page.

Context What you do
All stores You define the shared settings. It is the only context that offers Restore default values
A group or a store Your settings apply to that context only. Restore inheritance clears them and picks up the parent level settings

Accessibility

The button is designed for all your visitors, with no special setting on your side.

  • ⌨️A real button, reached with the Tab key and triggered with Enter or Space
  • 🔊Announced by screen readers with its label, in the visitor's language
  • 👆Touch area of at least 44 × 44 px, even when the visible button is smaller
  • 🎯Visible focus outline, and keyboard navigation that resumes at the top of the page after scrolling up
  • 🙈Skipped by keyboard and screen readers while hidden
  • 🐢Animations turned off for visitors who asked to reduce motion, with instant scrolling
  • 🌓Windows high contrast mode supported, with a border in system colors

Lightweight and private

A back to top button should never slow a store down. LumaTop was built with that in mind.

  • ⚡Native JavaScript, no jQuery and no library, loaded deferred
  • 🪶3.6 KB of stylesheet and script once compressed by the server, 9.9 KB before compression
  • 📭No file loaded on pages where the button does not appear
  • 🗄️No SQL table, no override, no theme change
  • 🍪No cookies, no browser storage, no personal data, no external calls

GDPR side. The module collects nothing. You have nothing to add to your privacy policy or your cookie banner.


Installation and first steps

Installation in 4 steps

  1. Open Modules → Module Manager → Upload a module.
  2. Select the lumatop-v1.0.0.zip archive, then click Upload the module.
  3. Open a long page of your store and scroll down, the button is already there.
  4. Click Configure to match it to your theme, then Save.

No particular PHP extension, no writable folder and no database table are required. The module saves its default settings and attaches to two standard PrestaShop hooks.

Upload not working? Unzip the archive, send the lumatop/ folder to the modules/ directory over FTP, then search for "LumaTop" in the module manager and click Install.

Mind the cache. ⚠️ If the button does not show right away, clear the cache in Advanced Parameters → Performance. If your store combines and compresses CSS and JavaScript files, the same action regenerates them with the module files.

Update, pause and uninstall

  • Update, upload the new zip, click Upgrade if the button appears, then clear the cache. Your settings are kept
  • Pause, turn off the Show the button on the store switch or disable the module, your settings stay in place
  • Uninstall, all settings are removed for every store and the module leaves no trace

When the button does not show

Check What to look at
Is the button enabled? The Show the button on the store switch is set to Yes and the module is enabled
Have you scrolled far enough? The threshold must be reached and the page long enough, try a long category page
Is the device ticked? On desktop, a narrowed window counts as a tablet or a mobile
Is the page excluded? Check the excluded pages list and the checkout option
Is it hidden under another element? Raise the stacking level, 1000 by default, or switch corners
Is the cache up to date? Advanced Parameters → Performance → Clear cache, then reload the page
Does the theme call the end of page hook? The button is inserted through displayBeforeBodyClosingTag, present in Classic, Hummingbird and the vast majority of themes

Cookie banner or chat bubble? These floating elements often sit in the same corner. Raise the stacking level, choose the other corner or increase the margin.


Technical sheet

Version 1.0.0
PrestaShop and PHP compatibility See the product page
Compatible themes Classic, Hummingbird 2.0 and 2.1, any theme that calls displayBeforeBodyClosingTag
Back office languages French, English
Store languages FR, EN, DE, ES, IT
Multistore Yes, with settings inheritance
Weight on the store 3.6 KB compressed
SQL tables and overrides None
Cookies and personal data None
Publisher PrestaLuma
License Commercial, one store per license

Ready to give your visitors a polished way back to the top?

LumaTop installs in minutes, is set up on a single page and barely touches your performance. Your customers scroll back up in one tap, your theme stays untouched.

Discover LumaTop

Comments

Be the first to comment on this article.

Leave a comment

Your rating *

Related products

Loading...
Back to top