add to cart button sticky

Solved

add to cart button sticky

zelzis
Excursionist
19 4 5

Hello Shopify Community,

 

I’m facing an issue with my eCommerce website, zelzis.com. On all product pages, the Add to Cart and Buy Now buttons are not sticky—they only appear when I scroll, but they don’t remain visible. However, on other pages, these buttons work as expected and remain sticky while scrolling.

 

I've attached screenshots showing the difference. Can someone please check and help me resolve this issue?

Thank you in advance for your assistance!

 

Best regards,

zelzis_0-1725684150446.jpeg

 

 

akshay
Accepted Solutions (6)

BSS-TekLabs
Shopify Partner
2350 701 826

This is an accepted solution.

- Here is the solution for you @zelzis 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media only screen and (max-width: 600px) {
sticky-add-to-cart.productView-stickyCart.style-1 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1725684453537.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

zelzis
Excursionist
19 4 5

This is an accepted solution.

hii 

your code is </head>paste but some issyu i want to our page in refresh to your button is show in header level sticky and some scroll to fotter level this are issyu faced i want to share screenshot

 

zelzis_0-1725686411341.png

 

 

akshay

View solution in original post

BSS-TekLabs
Shopify Partner
2350 701 826

This is an accepted solution.

<style>
@media only screen and (max-width: 600px) {
sticky-add-to-cart.productView-stickyCart.style-1 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
        top: auto !important;
        bottom: 64px !important;
}
}
</style>

Can you replace to this code @zelzis 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

zelzis
Excursionist
19 4 5

This is an accepted solution.

this code apply in head tag but not work i want to requested

i want to share some desktop connect option provide 

anydesk 

teamviewer

google meet 

you are intrested for our work

akshay

View solution in original post

BSS-TekLabs
Shopify Partner
2350 701 826

This is an accepted solution.

You can private message me and share the teamview code with me.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

zelzis
Excursionist
19 4 5

This is an accepted solution.

please share some guidelince how share in private message for you

akshay

View solution in original post

Replies 7 (7)

BSS-TekLabs
Shopify Partner
2350 701 826

This is an accepted solution.

- Here is the solution for you @zelzis 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media only screen and (max-width: 600px) {
sticky-add-to-cart.productView-stickyCart.style-1 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1725684453537.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
zelzis
Excursionist
19 4 5

This is an accepted solution.

hii 

your code is </head>paste but some issyu i want to our page in refresh to your button is show in header level sticky and some scroll to fotter level this are issyu faced i want to share screenshot

 

zelzis_0-1725686411341.png

 

 

akshay
BSS-TekLabs
Shopify Partner
2350 701 826

This is an accepted solution.

<style>
@media only screen and (max-width: 600px) {
sticky-add-to-cart.productView-stickyCart.style-1 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
        top: auto !important;
        bottom: 64px !important;
}
}
</style>

Can you replace to this code @zelzis 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
zelzis
Excursionist
19 4 5

This is an accepted solution.

this code apply in head tag but not work i want to requested

i want to share some desktop connect option provide 

anydesk 

teamviewer

google meet 

you are intrested for our work

akshay
BSS-TekLabs
Shopify Partner
2350 701 826

This is an accepted solution.

You can private message me and share the teamview code with me.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
zelzis
Excursionist
19 4 5

This is an accepted solution.

please share some guidelince how share in private message for you

akshay
BSS-TekLabs
Shopify Partner
2350 701 826
<style>
@media only screen and (max-width: 600px) {
sticky-add-to-cart.productView-stickyCart.style-1 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
        top: auto !important;
        bottom: 0px !important;
}
.product-details .product-option.sticky-product-mobile {
        display: none !important;
    }
}
</style>

Can you try thiss code @zelzis 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now