Can I replace the view cart button in popup to checkout button?

Solved
christianplanne
Tourist
5 0 1

I am using the debut theme. 

I want to have the view cart button replaced with "Continue to Checkout"

I am assuming the cart-popup.liquid needs to be edited. 

Here is the screenshot. 

christianplanne_0-1611086311949.png

 


<a href="{{ routes.cart_url }}" class="cart-popup__cta-link btn btn--secondary-accent">
{{ 'products.product.view_cart' | t }} (<span data-cart-popup-cart-quantity></span>)
</a>

<div class="cart-popup__dismiss">
<button class="cart-popup__dismiss-button text-link text-link--accent" data-cart-popup-dismiss>
{{ 'cart.general.continue_shopping' | t }}
</button>
</div>
</div>
</div>

 

JHKCreate
Shopify Partner
2052 334 448

Replace this piece of code:

<a href="{{ routes.cart_url }}" class="cart-popup__cta-link btn btn--secondary-accent">{{ 'products.product.view_cart' | t }} (<span data-cart-popup-cart-quantity></span>)</a>


With:

<a href="{{ routes.cart_url }}" class="cart-popup__cta-link btn btn--secondary-accent">Continue To Checkout (<span data-cart-popup-cart-quantity></span>)</a>

 
Let me know if that works!

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
christianplanne
Tourist
5 0 1

Thank you that changed the button text but on click the button I am looking to go straight to the first page of check-out. 

Instead of this page:

christianplanne_0-1611087139104.png

 

I would like to send it straight to this page:

 

christianplanne_1-1611087172776.png

 

 

0 Likes
JHKCreate
Shopify Partner
2052 334 448

This is an accepted solution.

Use this instead then:

<a href="/checkout" class="cart-popup__cta-link btn btn--secondary-accent">Continue To Checkout (<span data-cart-popup-cart-quantity></span>)</a>

 
Let me know!

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
christianplanne
Tourist
5 0 1

Brilliant that worked. 

Thank you so much. 

0 Likes
JHKCreate
Shopify Partner
2052 334 448

Fantastic! Don't forget to Mark As Solution & Like to make the answer more visible to the community. Cheers!

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
christianplanne
Tourist
5 0 1

Yes, already did!

0 Likes