Re: Dynamic Checout Buttons in Cart drawer

Dynamic Checout Buttons in Cart drawer

JesusGomicare
Excursionist
40 0 6

Hi guys,

 

I've added the dynamic buttons to my cart drawer.

 

The original display is like this 

JesusGomicare_0-1734439238900.png

 

I want them to look like this (note this image is photoshop)

JesusGomicare_1-1734439258750.png

 

Been trying with CSS and JS but cant seem to get it working. 

 

Can anyone help please?

 

Here's the link to my website https://gomicare.es/pages/tienda 

 

Thanks a lot!

 

 

Replies 3 (3)

websensepro
Shopify Partner
2109 262 313

Hi @JesusGomicare 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

 

 

@media screen and (max-width: 767px) {
    .wallet-cart-grid {
        display: flex
        flex-direction: row !important;

  }
     .wallet-cart-button-container, .wallet-cart-button {
     flex-shrink: 1 !important;
   
  }

     .wallet-cart-wrapper{
     --wallet-button-width-vertical: 99% !important;
  }
        
}
@media screen and (min-width: 750px) {
    .cart__ctas {
        display: flex;
        flex-direction: column !important;
        gap: 1rem;
    }
 .wallet-cart-wrapper{
   --wallet-grid-margin-horizontal: 0 24px -2px -5px !important;

}
 .dynamic-checkout__content {
        display: block !important;
  
    }
  #CartDrawer-Checkout {
         max-width: 100% !important;
    }
   
}

 

Result:

websensepro_0-1734445820952.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

If you are happy with my help, you can help me buy a COFFEE

Thanks!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
websensepro
Shopify Partner
2109 262 313

@JesusGomicare 

I have updated the code; please try it and your problem should be solved.

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
JesusGomicare
Excursionist
40 0 6

Hi @websensepro it does work for Desktop version, but not for Mobile version (where it is more priority)

 

JesusGomicare_0-1734450800804.png

 

 

I even tried setting it up for Mobile same as you did for Desktop, but it doesnt work.

 

Any ideas why?

 

Looking forward to your reply,