Drupal’s Basic Cart Module: So Close, But …

Basic Cart Module

I wasn’t sure whether to publish this review or not.

One of our members wanted a really simple shopping cart for Drupal. They found the Basic Cart module and asked me about it.

So, I set up and tested Basic Cart. Everything worked great, until the end when I realized there was no payment gateway. None. Basic Cart is a great little e-commerce store … except it has no way to pay.

That left me with a dilemma. Was it worth publishing the tutorial still? In the end, I decided it was. Maybe it will inspire someone to add a gateway, or maybe it will help other users save time by avoiding Basic Cart for now.

So, here is guide to using the features that are available in Basic Cart …

  • Go to Configuration > Basic cart.
  • Select “Products” as a content type for use with Basic Cart.
  • Go back to Structure > Content types > Products > Manage display.
  • Choose “Add to cart button with quantity” for the format.
  • Go to Structure > Blocks and publish the “Shopping cart” block:
  • Go to People > Permissions and give your Authenticated Users (or other roles) permission to use Basic Cart:
  • Go to Add Content > Products.
  • Create a product and enter a price in the newly available field.
  • Click Save and you’ll see your product:
  • Click “Add to cart” and you’ll be taken to your checkout:
  • You can now fill in your details and complete your (almost-)purchase.

If you want to configure what happens after the (almost-)purchase, you can go to Configuration > Basic Cart and you can update the thank you page and emails.

If you want to see the (almost-)orders, you can go to Structure > Orders.


  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Blog Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Sil Kogelman

Great tutorial Steve!
To those interested in payment methods for Basic cart:

there have been attempts to provide payment methods by integrating Basic Cart with Payment module: [url=https://www.drupal.org/node/1541916]https://www.drupal.org/node…[/url]


Thanks SIl. That was the most promising route I found. Looks like the outlines of a module are in place: [url=http://cgit.drupalcode.org/basic_cart/tree/basic_cart_payment/basic_cart_payment.module?id=refs/heads;id2=7.x-2.x-payment-integration]http://cgit.drupalcode.org/…[/url]


Great tutorial Steve!
can i add size field to the cart

Monk Pal

Drupal 8 basic cart has evolved : [url=http://monkpal.com/basic-cart-view-drupal-8-demo-view]http://monkpal.com/basic-ca…[/url] . track the details here in module page


I have been running Basic Cart for two days now and I am very happy with it. See, I am based in Kenya where cash on Delivery is still the preferred method. So finding something as light and easy to use as Basic Cart was just heaven-sent. I have a simple problem and that is to be able to print the order form so it can be shipped with the delivery. And the second problem is include some sort of style in the order mail sent to the buyer to make it ‘prettier’.


Thanks for the great feedback, Kollector


if user is authenticated, After checkout the carts not cleared -_- any solution for this?


OMG this save me hundreds of hours. Thank you so much!

Would love your thoughts, please comment.x