Answered

Shopify Ajax Cart

  • 19 July 2022
  • 3 replies
  • 738 views

Curious about whether it possible to do an add to cart from the end of a quiz, and not just movement straight to checkout.

 

I’ve gone through these two pages, but both of these are to add products to cart and then move directly to checkout. 

What I’d really like to do is 

  1. Embed the typeform on my shopify site
  2. Do an ajax add to cart from the last page, so that the drawer cart we use slides out with the products already in the cart

This would allow customers to easily remove an item if we’ve added too many products as part of a bundle and then checkout.

 

The goal would be to create something similar to the ending of this quiz:  https://www.doelashes.com/pages/mylash

But using Typeform which I love instead of OctaneAI.

 

Any thoughts/advice?

icon

Best answer by picsoung 20 July 2022, 02:01

View original

3 replies

Userlevel 7
Badge +5

@mathio or @picsoung will be your best bet for answering this! 😀

Userlevel 7
Badge +5

Hey @mattc 

This is a great idea!

I have recently discovered a hack that would let you build this by redirecting the user to a specific /cart page and passing all the objects you want to add to the cart.

You can see a quick demo over here https://tella.video/shopify-add-to-cart-product-recommendation-e92c

And a step-by-step tutorial over here

No need for AJAX/JS code.
But you might also be able to do this using some Shopify API calls.
 

 

Userlevel 7
Badge +5

Hi @mattc I hope you’re doing well over there! Were you able to give the suggestions above a try?

Reply