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 …

media_1416948008191.png
  • Go to Configuration > Basic cart.
  • Select “Products” as a content type for use with Basic Cart.
media_1416948223665.png
  • Go back to Structure > Content types > Products > Manage display.
  • Choose “Add to cart button with quantity” for the format.
media_1416949832203.png
  • Go to Structure > Blocks and publish the “Shopping cart” block:
media_1416948790322.png
  • Go to People > Permissions and give your Authenticated Users (or other roles) permission to use Basic Cart:
media_1416950436303.png
  • 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:
media_1416950078687.png
  • Click “Add to cart” and you’ll be taken to your checkout:
media_1416950621568.png
  • You can now fill in your details and complete your (almost-)purchase.
media_1416950594577.png

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.

Author

  • 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
Article Rating
Subscribe
Notify of
8 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Sil Kogelman
Sil Kogelman
9 years ago

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]

steve
steve
9 years ago
Reply to  Sil Kogelman

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]

omar
omar
7 years ago

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

Monk Pal
Monk Pal
7 years ago

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

Kollector79
Kollector79
7 years ago

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’.

steve
steve
7 years ago
Reply to  Kollector79

Thanks for the great feedback, Kollector

Novelist
Novelist
6 years ago

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

yinganc@umich.edu
yinganc@umich.edu
6 years ago

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

8
0
Would love your thoughts, please comment.x
()
x