Add product to cart via script

Add product to cart via script

Looking for a way to add an item to the cart using a script. In Shopify I can do this using a URL or a script Ike shown below. 
or
script 
  1. $.post('/cart/add.js', { //Post the below in the cart
    quantity: 1, //Add the quantity of products
    id:31947959435111 //product variant id
    },function(){
    window.location.reload();
    });


            Zoho Marketing Automation

                    Zoho Pagesense Resources

                      Zoho SalesIQ Resources



                            Zoho TeamInbox Resources

                              Zoho DataPrep Resources



                                Zoho CRM Plus Resources

                                  Zoho Books Resources


                                    Zoho Subscriptions Resources

                                      Zoho Desk Resources

                                        Zoho Projects Resources


                                          Zoho Sprints Resources


                                            Qntrl Resources


                                              Zoho Creator Resources


                                                Zoho WorkDrive Resources





                                                    Zoho Campaigns Resources

                                                      Zoho CRM Resources

                                                            Design. Discuss. Deliver.

                                                            Create visually engaging stories with Zoho Show.

                                                            Get Started Now