Solved

Make "Proceed to checkout button" redirect to Cart page instead of Checkout

aciel
Shopify Partner
17 1 10

Hi, I am using the Brooklyn theme and would like to take the customer to the cart rather than the current proceed to payment option when they click on "proceed to checkout".

az.jpg

Can anyone point me in the right direction?

Thank you.

Accepted Solution (1)
aciel
Shopify Partner
17 1 10

This is an accepted solution.

Hey!

Go to Themes > Action > Edit code. Then open the "ajax-cart-template.liquid" file, and replace :

<button type="submit" class="btn--secondary btn--full cart__checkout" name="checkout">
{% endraw %}{{ 'cart.general.checkout' | t }}{% raw %} <span class="icon icon-arrow-right" aria-hidden="true"></span>
</button>

with the following :

<a href="/cart" class="btn--secondary btn--full cart__checkout">
{% endraw %}VIEW CART{% raw %} <span class="icon icon-arrow-right" aria-hidden="true"></span>
</a>

🙂

View solution in original post

Replies 15 (15)

KetanKumar
Shopify Partner
36843 3636 11978

Hello, @aciel 

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
aciel
Shopify Partner
17 1 10

Hi, it's anavaparis.myshopify.com

Thank you!

 

KetanKumar
Shopify Partner
36843 3636 11978

@aciel 

It can be done by doing some code customization. please send me a personal message and we can discuss what you'd like

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
aciel
Shopify Partner
17 1 10

I was hoping to do it myself actually..

I've tried replacing this code in my ajax-cart-template.liquid :

<button type="submit" class="btn--secondary btn--full cart__checkout" name="checkout">
{% endraw %}{{ 'cart.general.checkout' | t }}{% raw %} <span class="icon icon-arrow-right" aria-hidden="true"></span>
</button>

With this :

<a href="/cart">
<button type="submit" name="checkout">
Voir mon panier
</button>
</a>

But it doesn't work and the button is still directing to checkout page. Does anyone know change this?

KetanKumar
Shopify Partner
36843 3636 11978

@aciel 

your have some thing else missing 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
EeJin
Excursionist
24 0 4

Hi,

May i know what is the solution for this? I've been looking everywhere for it.

Thank you

KetanKumar
Shopify Partner
36843 3636 11978

Hello,, @EeJin 

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
EeJin
Excursionist
24 0 4

Hi @KetanKumar 

My URL is www.ciirc.fit.

Thank you for the response!

EeJin
Excursionist
24 0 4

Hi,

My shop is password protected since it is not live yet. I have sent you an email for this.

Thank you!

MartinNorway
Visitor
2 0 1

Hi Ketan,

Can you do this for me too?

 

www.hundetepper.no

KetanKumar
Shopify Partner
36843 3636 11978

@MartinNorway 

sorry please share issue images

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
MartinNorway
Visitor
2 0 1

I can't find a file called "ajax-cart-template.liquid" in the code, so I am not sure what to edit in the Debut theme?

 

Can you help with the code?

KetanKumar
Shopify Partner
36843 3636 11978

@MartinNorway 

sorry but debut theme doesn't allow 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
aciel
Shopify Partner
17 1 10

This is an accepted solution.

Hey!

Go to Themes > Action > Edit code. Then open the "ajax-cart-template.liquid" file, and replace :

<button type="submit" class="btn--secondary btn--full cart__checkout" name="checkout">
{% endraw %}{{ 'cart.general.checkout' | t }}{% raw %} <span class="icon icon-arrow-right" aria-hidden="true"></span>
</button>

with the following :

<a href="/cart" class="btn--secondary btn--full cart__checkout">
{% endraw %}VIEW CART{% raw %} <span class="icon icon-arrow-right" aria-hidden="true"></span>
</a>

🙂

EeJin
Excursionist
24 0 4

@aciel thank you so much! it worked perfectly fine.