Skip to content
Rubin Shrestha
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
  • Search
Rubin Shrestha
  • Search
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
Home » Blog » How I can make Magento 2 product-info-main sticky like cart sidebar when scroll to down?
Blog

How I can make Magento 2 product-info-main sticky like cart sidebar when scroll to down?

by Rubin|Published December 13, 2025

I want to make an upper bar as in https://www.atma.com.ar/molinillo-electrico-atma-mc8141n.html that contains the product info and the “add-to-cart” button, and that appears only when I scroll under the add-to-cart button and remains fixed under the header during the scroll.

Help me please.

  • Magento
  • Magento1
  • Magento2

You may also like

How to install PHP 7.4
Published November 29, 2019

How to install PHP 7.4

submitted by /u/colinodell [link] [comments]

Published October 4, 2019

Magento 2: how to put extra text / drop down for decimal qty

I need to customize the addtocart.phtml in order to add an extra field for decimal qty. I want to use the actual […]

Magento2.4.3 success/error notification not displaying throughout admin panel
Published February 19, 2022

Magento2.4.3 success/error notification not displaying throughout admin panel

I’ve upgraded version from 2.3.5 to 2.4.3 and I found that success/error notification messages are not showing up throughout the admin panel […]

Published August 16, 2023

How to isolate portion of string and remove excess in Notepad++ using regex?

I am attempting to isolate a particular section of a line, and delete everything else after it. Below are some example strings […]

Interesting

  • how to check if a computer has a spyware chip
  • Why does Windows 11 fail to upgrade from 25H2 to 26H2 with error 0x80246019?
  • Thunderbird opens URL twice
  • How to install a native ARM64 C compiler on Windows 11 (Snapdragon X)?
  • Windows 11 25H2: no se puede volver a habilitar VirtualMachinePlatform; WSL2 perdió su adaptador de red
  • How to fix a case where an Intel B580 won’t output BIOS but only prints the Windows Login Screen?
  • Asus TUF F15 Gaming [closed]
  • VirtualBox 7.2.8 on Windows: no USB devices listed in the guest, and the VBoxUSBMon service does not exist (error 1060)

Post navigation

  • Previous post Change “Choose your background color” palette in Windows 11
  • Back to post list
  • Next post Should pub/media directories be included in the gitignore?
——————-
  • how to check if a computer has a spyware chip
  • Why does Windows 11 fail to upgrade from 25H2 to 26H2 with error 0x80246019?
  • Thunderbird opens URL twice
  • How to install a native ARM64 C compiler on Windows 11 (Snapdragon X)?
  • Windows 11 25H2: no se puede volver a habilitar VirtualMachinePlatform; WSL2 perdió su adaptador de red
——————-
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
——————-
  • Blog
  • Contact
  • Nepali Typing | Nepali Unicode | English to Nepali | English Conversion | English Translate | नेपाली to English | नेपाली टाईपिङ
  • Occasional Photography
    • The desert that everybody loves in pictures
  • Photography
  • Rubin Shrestha

© 2026 Rubin Shrestha – All rights reserved

Powered by WP – Designed with the Customizr theme