Magento 2 Share Cart GraphQL Extension
Magento 2 Share Cart GraphQL is now a part of the Mageplaza Share Cart extension that adds GraphQL features; this supports PWA Studio. In other words, Mageplaza Share Cart for Magento 2 now enables getting and pushing data on the website with GraphQL.
Mageplaza Share cart for Magento 2 is an effective solution to let customers promote your products by sharing their carts with others.
The extension makes it easy for customers to share what they bought with their friends and family. The Share cart button will be displayed on the mini cart and shopping cart page. Customers can see the button right after adding the products to their cart and click on it to start sharing the cart.
In this way, you can create a better shopping experience for customers; while promoting your products via existing customers. When customers share their carts, those who see their posts and are interested in products in the cart will go to your store. There is a high chance that they will be your next customers.
Through a few simple steps, the extension will be integrated into your Magento backend and function well on your storefront. When customers click on the “Share Cart” button, customers can copy the shared link of their shopping carts and paste anywhere to share or send directly to their friends.
In case customers want to ensure the items in their carts are exactly what they have searched for, they will need a summary to quickly review their carts. With Magento 2 Share Cart, you can display a “Text” button along with a “Share Cart” button to enable customers to view their cart summary with ease. The content behind this Text button summarizes the cart’s information with product name, price, quantity, and cart total.
The extension also enables customers to download their shopping cart in a PDF file. The PDF is displayed along with the Share cart, Text, and Update shopping cart button. This PDF file provides more details about the carts and products, including the store’s information, purchasing date, and purchasing summary.
Run the following command in Magento 2 root folder:
composer require mageplaza/module-share-cart-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Note: Magento 2 Share Cart GraphQL requires installing Mageplaza Share Cart in your Magento installation.
Mageplaza Share Cart extension supports store admins to get share cart information via GraphQL.
To start working with Share Cart GraphQL in Magento, you need to:
- Use Magento 2.3.x. Return your site to developer mode.
- Supported GraphQL requests can be veiwed here.
Click on Run in Postman to add these collections to your workspace in a breeze.
Feel free to Fork and contribute to this extension. You can also pull a request, and we will merge your changes in the main branch.