How can i skip cart straight to checkout in shopify?

How can i skip cart straight to checkout in shopify?

YONATANN
New Member
4 0 1

I followed endless videos and and blogs, did it all and never worked for me.. anyone? 

before i pay for an app which do some simple stuff 😕

Reply 1 (1)

PaulMartin
Shopify Partner
561 57 134

Hi Yonatann, 

In order to skip the cart and head straight to the checkout, your theme's code needs to be changed, most specifically the code for the cart which looks like this:

<a href="{{ routes.cart_url }}" class="header__icon header__icon--cart link focus-inset" id="cart-icon-bubble">

 And turn that into something like this:

<form action="{{ routes.cart_url }}" method="post">
  {% for item in cart.items %}
    <!-- line item info -->
  {% endfor %}

  <input type="submit" name="checkout" value="Checkout">
</form>

 Plus, some other code so that it will still look like the cart button. By doing this, you'll have a button (or anything u want) that will skip cart and head straight to checkout.

Hope this helps and if you have any questions, feel free to ask here or through my contact email below! 🙂👍

If you're looking for an extra hand to do this all for you, I'd be happy to do it for $25. I'll make sure that the cart button or other buttons you're looking to change will skip straight to checkout and also make sure that this change will work flawlessly inside your theme, plus if you have other requirements for it, I'll make sure my work will meet each one of them. Let me know if you're interested via the comments or via my contact email below! 🙂👌

contact@paulmartinlopez.com
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ