In the last chapter we added a flat, percentage-based discount to the site. In this chapter, we will replace that percentage discount with specific wholesale prices that should be applied per product. We do this by adding a new wholesale price field to our products, then configuring our product pricing rules to swap out the line item amount.
If you need a refresher on using Rules module, you can watch the Learning the Rules framework series.
Flag is a module used for marking nodes, comments or users with an on/off marker, for example for flagging spam comments, selecting content to promote to a sidebar, or marking other users as friends. What makes Flag useful is primarily its integration with the Views and Rules modules, and this series will make sure to cover those important pieces, too.
Recently we released a number of videos showing how to set up a local web server so that you can build and develop a web site on your own personal computer. This is a HUGE help when working on a site since you have everything you need locally, and you can play, break, and test things in a safe environment. It's also super handy when you need to get some work done but you don't have an internet connection handy. This is really such a basic tool for working with the web that we've decided to make the three server installation videos FREE for everyone.
Drupalize.Me Live from Denver, Colorado
Blog postThis is what happens when you take the Drupalize.Me team and tell them that they need to run the sponsor booth during DrupalCon Denver. We started thinking about what we could do at the booth, things like rig up a TV so that people can watch Drupalize.Me videos played via our Roku app, and maybe an iPad or two so that we can show off the mobile capabilities... and wait just a moment. What if we get a big cardboard box and cut a TV out of it and just re-enact videos? It'll be hilarious! And thus Drupalize.Me Live was born.
Now that we have some products in our store, we'll look at how we can use Drupal core's Taxonomy system to help us create a catalog based on the type of products we have, and we'll add some menu items to our main navigation.
In this chapter you will learn how to customize your shopping cart display, as well as the message that appears after a customer has added an item to the cart. The shopping cart is created using Views, and the message that appears is controlled with Rules. If you need a refresher on these two modules, you can watch these other Drupalize.Me series:
In this chapter we look at how to modify the customer information that we collect during checkout. We'll add a phone number field to our customer's billing information profile as we explore the idea of the Profile entity and how that is linked to users. Additionally we look at how the billing information is linked to the orders we create, and how to properly update them.
In this chapter we will walk through the store checkout process, both as a logged-in customer and an anonymous customer. We will look at how we can customize the checkout pages and workflow, and as an example we will edit the defaults to provide us with a single-page checkout screen. We also review the customer's orders tab and talk about the Rules we can use throughout the checkout process. Lastly, we look into the order status as we proceed through an order.
In this chapter we will look at how to add sales tax to our products. This chapter will cover US-style taxes, where the tax is listed separately and rounded up for each line item. The next chapter will cover European-style VAT taxes. We'll also look at how to make the application of taxes conditional with Rules, since you don't always want the same tax rate applied to all items.
If you need a refresher on using the Rules module, check out the Learning the Rules framework series.
Now that we've reviewed how taxes work with the US-style sales tax, we'll continue on by seeing how to set our store up with a European-style VAT (Value-Added Tax). VAT is added to the unit price of a product, instead of on the line item on the order form. We'll dive into our Tax Type to explain the differences and then add VAT to our store, and also see how to have the site calculate the correct product price for a given VAT to give us a nice, even unit price for our products.
Drupal Commerce Basics
CourseIn this Drupal Commerce series, Ryan Szrama takes you through the process of creating your own Drupal e-commerce site using Drupal Commerce for Drupal 7. The series starts by getting the basics installed with the Commerce Kickstart project, and then works through working with products, taxes, discounts, checkout, and general configuration of our store.
We kick off the Commerce Basics series with a look at the LB Robotics store site that we will be building. Ryan gives a quick tour of the site and discusses the main topics we will be focusing on, like products, taxes, discounts, checkout, and general configuration of our store. Drupal Commerce relies heavily on the Views and Rules modules for many of its features, which allow you a lot of customization. If you need a refresher on these two modules, you can watch these other Drupalize.Me series:
Now that we have our base site installed and ready, we'll begin setting up our store by removing the example products that Commerce Kickstart created for us, and adding our own products to the store. We also discuss the difference between Products and Product displays.
To get started with our new Drupal Commerce store, we are installing Drupal using the Commerce Kickstart installation profile. Commerce Kickstart provides you with Drupal core, along with a number of modules that all Commerce sites will need to get up and running. Using the installation profile makes your life a lot easier since you have everything you need in one package and the Drupal installer will make sure that you don't hit annoying PHP timeouts when trying to enable all those modules at the same time. It also installs a few sample products and handles some basic configuration.
Now that we have created our products we'll dive into the Product display content type so that we can display our products to our users. In this instance we'll start out be re-using the nodes created by Commerce Kickstart, then we create two new displays for our remaining items. We finish up by rearranging the fields on the content type using Drupal 7's manage display configuration.
In our latest sprint -- Sparkleworks -- we sprinkled some magic pony dust (and also wrote a little code) to make more improvements to the Drupalize.Me site. The two main improvements we made for this release have been popular member requests; we've added a listing of your entire video history, and we've added newest and most popular video lists. Today we also have a new video for our Wednesday release day, Tips for writing secure code.
When writing code for the web it is very important that you pay attention to security. Drupal provides many tools to help you out and in this presentation we'll look at what those are and how to make sure you use them properly.
Additional resources
To round out our local development web server videos, we've added a companion video to the recent Installing a web server on Ubuntu. In Ubuntu web server configuration we learn how to configure the various pieces of our local development web server. We'll get clean URLs working by enabling the Apache rewrite module, and increase various settings for MySQL and PHP.
Following on last week's videos about setting up local development web servers on Windows and Mac, we also have one for Ubuntu: Installing a web server on Ubuntu. This video is not explaining how to set up a big, beefy web server where you would host your real website. This video is just like the Mac and Windows ones, in that it helps you get your own personal web server on your desktop or laptop, to use for development and playing around with things.
Ever peer at the laptop next to you while flying cross county and wonder how someone can work on developing their website when there is no Internet at 35,000 feet? They are developing it locally! All personal computers can be turned into personal web servers so that you can develop a website on your machine before pushing the code into a production environment. In this set of videos, Addison Berry walks you through how to: