Sticky add-to-cart
Keeps the buy box with the 'Add to cart' button visible while scrolling a long product page.
Code to copy
[data-box-name*="buy box" i],
aside:has(button[aria-label*="koszyka" i]),
div:has(> button[aria-label*="Dodaj do koszyka" i]) {
position: sticky !important;
top: 12px !important;
z-index: 50 !important;
}
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's CSS panel and save — the effect appears instantly.
Rate this example
No ratings yet — be the first.