Checkout Button in Product Page

Hugo20202020
New Member
1 0 0

Hi,

I am developing my own shopify store theme using theme-kit.

When building the product page, which included both "addToCart" and "checkout" buttons.

However, I kept struggling working on "checkout" button.

I knew there is ajax API for "Add to Cart", which just simply submit variantID and quantity will do the job.

So is there any way for me to code the function of my checkout button?

What i want is, when my customers click on the checkout button, the page will redirect to checkout page,  then order and payment info will be displayed to my customer.

 

Thanks in advance.

0 Likes