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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 22 ■ Building a Commerce Site<br />

For purposes of the demonstration site, I’ll use the Example payment method that is enabled by default<br />

with Kickstart. You can examine the configuration parameters by navigating to the “Payment methods”<br />

administration page. To get there, hover over the “Store settings” link in the admin menu and click the<br />

“Payment methods” link in the drop-down menu. On the “Editing reaction rule” page for “Example<br />

Payment,” you’ll see that, like shipping, payments are governed by Events and Actions. You can review the<br />

Events and Actions to see the general approach for applying payment methods.<br />

With products available for purchase, shipping configured, taxes enabled, and payments configured,<br />

it’s time to place an order. To select an item to place in your shopping cart, click one of the product types<br />

listed in the menu near the top of the page, and from that list click the name of the product and select the<br />

attributes, for example color and size, if applicable to that product, and how many you wish to add to your<br />

cart. After adding the item to your cart, you should see a pop-up notification that the item was added to<br />

your cart (refer to Figure 22-13). On the pop-up notification, click the “Go to checkout” button to begin the<br />

checkout process (see Figure 22-22).<br />

Figure 22-22. The Shopping Cart<br />

If the items and quantities in the shopping cart look correct, then click the Checkout button to enter<br />

the billing and shipping information. A shipping address and billing address are required for all orders (and<br />

can be the same address). If you are a returning customer to the site and have logged in, <strong>Drupal</strong> Commerce<br />

Addressbook module will prepopulate the values from any of the addresses that you have on file in the<br />

address book that is created as part of the order processing workflow (see Figure 22-23).<br />

263

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

Saved successfully!

Ooh no, something went wrong!