18.11.2015 Views

Beginning Drupal 8

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 22 ■ Building a Commerce Site<br />

On the view’s configuration page, I followed the basic steps of creating a view using fields from the<br />

Commerce Product, including a specialized field named “Add to Cart form” that allows a visitor to add an<br />

item to their shopping cart by simply clicking an Add to Cart button. Figure 22-15 demonstrates the basic<br />

setup that I did to create the view.<br />

Figure 22-15. Configuring the Product display view<br />

Depending on how I wish to use this view on the site, I would add a Block and/or Page display so that<br />

I could place the product listing on a page or provide a link to the view from a menu (page). Figure 22-16<br />

demonstrates how the view would appear on the site.<br />

256

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!