6 points · by CoreSet · 11y ago · 6 comments
I want the complete opposite. I want to build an ecommerce site where I have complete control over the front-end code, and it just hooks into some RESTful back-end server somewhere else to process payment, grab shipping info, etc.
Are there any solutions for this? Something that would allow me to abstract away a lot of the ecommerce back-end into APIs, without completely giving up front-end control?
Shopify has an extensive API. You'd be able to create your own frontend with or without their shopping cart, with or without their checkout process and with or without third-party whitelabel shipping.
The entire front end is Vanilla JS + Static HTML (compiled by Middleman) on S3. We upload the site to S3 with S3_Sync (https://github.com/fredjean/middleman-s3_sync). We've made a local JS cart and then send then checkout at Shopify. It's blindingly fast.
This wouldn't be possible if it weren't for Shopify's cart links. Cart links allow you to craft a URL that contains quantities and product variant IDs. Documentation on cart links is available here: https://docs.shopify.com/manual/configuration/store-customiz... .
There wasn't an API, though—most of the cart-specific functionality was done in JS. It's just a different approach to solve your problem.
I never finished the project, but it's really close to being ready for launch. I'm interested in discussing it with you further! Shoot me an email (it's in my profile).