Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Drupal Commerce

You're reading from   Getting Started with Drupal Commerce Learn everything you need to know in order to get your first Drupal Commerce website set up and trading

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781783280230
Length 152 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Toc

Table of Contents (18) Chapters Close

The Shopping cart page


When a customer clicks on the Add to Cart button on a product, the default behavior for Commerce is to simply display a message telling the user that the item has been added to their cart, and clicking on the link will take them straight to the cart as shown in the following screenshot:

This basic view shows Product, Price, Quantity, and Total as well as giving the customer basic controls to remove products and update quantities.

Hover over the top- right-hand corner of the table next to Total and click on the gear icon. You will see an Edit view link.

This master view of the shopping cart looks like the following screenshot:

The Views interface can be quite daunting at first, so let's visit each section in turn.

Format

The shopping cart is displayed as a table. This is a sensible default as we are showing multiple values for each order line and a summary at the bottom. However, you can change the format for theming purposes.

Fields

The view shows a list of Line Items associated...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image