Woo-easy Add To Cart Link Generator

Lately, I have been working with eCommerce Mobile applications to treat Shopify and woo-commerce as a headless CMS. Display Projects and the ability to add to Cart and to checkout to place a successful order.

After completing the Cart, the only problem I had was making a similar checkout system that both Shopify and WordPress support. After a couple of research hours, I decided to use web view and handle checkout steps directly from the website.

We all know that Shopify supports add to cart directly from the link, So http://<You Store>.myshopify.com/cart/<varaiant Id>:<quantity> this will let you add an item the current session of the website and proceed with the checkout process.
You can learn more about it on How to Auto-Add Products & Discount to Shopify Cart via URL | Elevar (getelevar.com)

But it was not possible to do such a thing with Woocommerce, Since the only link to the cart that woo-commerce provide just let you add just one product at a time. So I had to Custom Build a plugin and clone the functionality of Shopify add to cart link.

Simple Add To Cart is a plugin that will let you easily add multiple products into a cart of your browser’s current section and their quantity.

You can install the plugin from here.

And After Activating the plugin, you will be able to
1- Append Products on a cart
http://<domain>/checkout/?add-to-cart=<variant Id>:<quantity>

2- Reset products and add products to the cart.
http://<domain>/checkout/?add-to-cart=<variant Id>:<quantity>&new

--

--

--

I Describe Myself as a Polyglot ~ Tech Agnostic ~ Rockstar Software Engineer. I Specialise in Javascript-based tech stack to create fascinating applications.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Vivaldi Browser — Incredible!

Taking Agility A Step Ahead with Microservices

Catcher e2e tests tool for beginners

Explaining the use of the Faker Gem for Development Purposes

Propagation Delay in Networking

CONGRATULATIONS TO 25 HeroesTD-ers ON CLAIMING THE ROLE @In Darkness Owner!

Relevance Of Trying The DIY Platform And Its Importance To The Modern Age (Segment #5)

Issue #4 — Cloud-Native Untangled: 04/25/2022–05/01/2022

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Raja Osama

Raja Osama

I Describe Myself as a Polyglot ~ Tech Agnostic ~ Rockstar Software Engineer. I Specialise in Javascript-based tech stack to create fascinating applications.

More from Medium

OVERVIEW OF CREOENGINE GAMING ECOSYSTEM: FOR GAME DEVELOPERS AND PLAYERS.

🔥 Daniele Procopio — artist of the week #4 of GodForge Contest: “this sounds like a dream come…

A Comprehensive Overview of BetDao GameFi System- I

Welcome the co-creator of Angry Birds as GemUni’s Gaming Growth Advisor: Peter Vestebacka