Make cart scrollable on phone

Make cart scrollable on phone

mich706e
Tourist
30 0 1

Hello guys, i added the express checkout icons to my my cart-drawer. It looks weird on mobile, because the icons always are visible. Is it possible to make the whole cart drawer scrollable on mobile? So like scrolling from the cart items down to the checkouts icons?

And is there a way to make the checkout icons a little smaller?

 

sadasdasdsad.JPG

Replies 10 (10)
mich706e
Tourist
30 0 1

So, you want money to do this? 

namphan
Shopify Partner
1329 164 199

Hi @mich706e,

I checked and didn't find the buttons, can you send me the preview link showing it? I will check again

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? [email protected]
mich706e
Tourist
30 0 1

Hello i added the buttons back now, i removed them before because it didnt look good:)

namphan
Shopify Partner
1329 164 199

Hi @mich706e,

Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:

.dynamic-checkout__content {
  max-height: 150px;
  overflow-y: scroll;
}
.paypal-buttons,
.accelerated-checkout-button {
  max-height: calc(4.5rem + var(--buttons-border-width)* 2) !important;
}
shopify-google-pay-button {
  max-height: 4.5rem !important;
  display: block;
}
Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? [email protected]
mich706e
Tourist
30 0 1

Hello thanks for the help - but this is not what i meant. By doing this, the checkout options are scrolling - basically i want the whole cart drawer to be one page, where i can scroll up and down. Can you please PM me? So i can give u a link with a website that has the option 😄

namphan
Shopify Partner
1329 164 199

Hi @mich706e,

Please change all code:

.drawer__inner {
    overflow: auto !important;
}
cart-drawer-items {
    overflow: initial !important;
}
Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? [email protected]
mich706e
Tourist
30 0 1

hey this doesnt seem to work,, its like the background is scrolling instead of the drawer

namphan
Shopify Partner
1329 164 199

Hi @mich706e,

I checked and you added scroll to body that's why it always scrolls and you get this feeling.

Please remove it at theme.liquid file, it will work fine. Refer:

Screenshot at Oct 01 08-01-46.png

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? [email protected]
mich706e
Tourist
30 0 1

what do i remove exactly ? I cant find anything with "overflow" or initial

namphan
Shopify Partner
1329 164 199

Hi @mich706e,

It seems to be added by JS code, can I send you a collaborator invite? I will help you check it

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? [email protected]