Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Changing checkout button on Cart Drawer

Solved

Changing checkout button on Cart Drawer

Gioily
Tourist
5 0 2

I can't find any code that changes the color/text for the checkout button on my cart drawer. Can someone please help me with this? 

 

Another question: Does anyone know how I can add free shipping above the price and show the discounted price compared to the previous price in the cart drawer?

I really appreciate any help you can provide.



125f7cd536a17af857415eab1d58152f.png

Accepted Solution (1)

PageFly-Richard
Shopify Partner
4801 1085 1753

This is an accepted solution.

Hi @Gioily 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
button#CartDrawer-Checkout {
    color: red;
    background: blue;
}
</style>

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
9076 2167 2677

Hi @Gioily 

Please, share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

PageFly-Richard
Shopify Partner
4801 1085 1753

This is an accepted solution.

Hi @Gioily 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
button#CartDrawer-Checkout {
    color: red;
    background: blue;
}
</style>

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

Gioily
Tourist
5 0 2

Your solution fixed it!

Thank you so much!!

LizHoang
Shopify Partner
271 31 57

Hi @Gioily, thanks for your question.

 

1. To change the background color of the checkout button, please go to Online Store > Themes > Actions [...] > Edit Code > Theme.liquid file > Paste the below code at the bottom of this file: 

 

<style>

.cart-drawer .cart__checkout-button {

          background: color code;

          color: color code;

}

</style>

 

2. To modify the button text, please go to Online Store > Themes > Actions [...] > Edit Code > Cart.liquid file > Find the button and change the text as needed.

 

I hope my answer will be helpful! 

 

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Gioily
Tourist
5 0 2

It worked when I put the code above the </head> part of the file!

I appreciate your help in resolving my problem 🙂