Codementor Events

Cart List Management Magento 2 Open source

Published Aug 17, 2018
Cart List Management Magento 2 Open source

Introduction

Magento 1.x versions have a functionality within Magento open source (Formerly known as Magento community) that can now be found only in Magento 2 Commerce (Formerly known as Magento Enterprise). This is the ability to view a list of shopping carts from within the Magento 2 admin interface. The beautiful thing is that the data is stored in the database, it’s just that there’s no way to view it from within the admin interface.

I developed an extension to enable admin users view and interact with that data from within the Magento 2 open source admin interface.

Firstly, the extension gives an authorized admin user an interface to see a list of all carts.

Authorized admin users can log into the application, see a list of carts, click to view details and convert any valid cart to an order. For carts that have been converted to an order, the admin user sees a link to view order details.

This post provides a guide on how to install and use the extension within a Magento2 installation.

Installation

While you can install directly from within Magento module manager, the recommended approach is to install via composer.

To use composer, type the command below within the root of your Magento 2 installation:

composer require digitek/module-shoppingcartmgt

This updates your composer.json file and pulls in the extension to your vendors/digitek/ folder.

To enable the extension, run the following commands:

php bin/magento module:enable Digitek\ShoppingCartMgt

php bin/magento setup:upgrade

Administration

To access the menu, click on Sales => Shopping Cart.

View All Shopping Carts

A list of carts is displayed, ordered from the most recent to the oldest. Click on “View” to see cart details.

View Cart Details

The cart details page displays all items in the cart, and the cart summary. If the cart has been converted to an order, it provides a button to display the order details.

Convert To Cart

If the cart is active, and can be converted to an order, the “Convert to Order” button is displayed.

Clicking the “Convert to Order” button opens up the order form, with the items in cart already pre-populated. Edits can be made before final order creation.

You can contribute to the project or open issues here: https://github.com/phronesis/ShoppingCartMgt

If you find this useful, kindly provide feedback in the comments or share the post with any user that may find this helpful.

Discover and read more posts from David
get started
post commentsBe the first to share your opinion
Show more replies