Partial Implementation

New Member
4 0 0
Is it possible to only implement some of the storefront API features? For example I want to just redirect for login, signup, add to cart, and checkout (for logged in or not logged in users) but display the cart total (and account status), collections and products on my existing site via the storefront API. Is that the expected usage?
0 Likes
Highlighted
New Member
4 0 0

This warning in the docs in extra confusing regarding partial implementation, completing the checkout  .  Even jumping to the webUrl after creating/logging in a customer with the storefront api will always require the customer to log back in ?  Won't it make first login look like phishing?

0 Likes
Shopify Staff
Shopify Staff
223 28 28

Hi @dogowner 

 

Are you integrating the storefront API into an existing website outside of Shopify or into your Shopify theme? What is your intended outcome? Are you looking to send users to the checkout? 

 

Are customer accounts going to be required for this implementation? If not, you should not run into roadblocks with the extra login. 

 

The storefront is a GraphQL API - and therefore you can get as much or as little information as you need. There is no problem with only utilizing pieces of data that is needed. 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes
New Member
4 0 0

I want to integrate the storefront API into an existing website outside of Shopify and then run the shopify store on a subdomain of my existing domain.  

 

I want to display the cart total and the user login name in the header of my existing website.

 

I want users to be able to add products to their cart from my existing website.

 

I want users to be able to view their cart contents on the shopify subdomain.

 

I want users to be able to checkout on the shopify subdomain.

 

I want users to be able to create accounts and or login, maybe from either the existing website or the subdomain.

 

The problem seems to be that customer accounts logged in through the api on an existing site are incompatible with customer accounts logged into on the subdomain.  Is that correct?

0 Likes