- View Offline
- Surveying the store-building process
- Installing Drupal Commerce using Commerce Kickstart
- Accepting PayPal payments
- Processing orders
- Understanding rules and line items
- Listing and importing products
- Managing inventory, orders, and customer profiles
- Streamlining the checkout process
- Launching a store
- Offering product discounts
- Analyzing site traffic with Google Analytics
Skill Level Intermediate
When we last left our site, we had installed Drupal Commerce using Commerce Kickstart. Now we will do a few basic tweaks to the site, just so that we can make it more of our own. The first thing that we're going to do is we are going to change the name of this site. Then we will change the logo here, and also this little thing up in the corner, which is known as the Favicon. Finally, I'm going to add a search bar up here in the upper-right corner. I recommend that for all sites, unless you have a special reason not to allow people to search your site. Everything that we do in this video is just basic Drupal configuration.
That stuff is under the configuration link here at the top, whereas most of the stuff that you will see in this course is under the Configure store link here. If you want to learn more about configuring your site in general, see my course, Drupal 7 Essential Training. If you've gotten this far by setting Drupal Commerce up from scratch, that is, without using the Kickstart the way that I showed you, then you will first have to turn on two modules in order to use Drupal Commerce. To do that, you go up to Modules, and either scroll down the page, or close up these groups, until you get to the Commerce group here.
The two modules that you will need to turn on are Commerce, and Commerce UI, but as you see, we already have them, so I will just close out here. All right! Let's move on to configuring our site. The first thing we are going to do is to change the name here. The way you do that is by going up to Configuration, and clicking Site Information. Here I am going to change it to the name of our fictional olive oil company: Two Trees Olive Oil. You can also add a slogan. It's optional, but I am going to add one; The Best Olive Oil in the World.
You can also change your e-mail address, and a few other settings here, but for now, I'll just click Save configuration, and close out the overlay, so we can see what that looks like. There it is! It did exactly what we thought it would do. The next thing I am going to do is to change the appearance a little bit. This is what Drupal calls a theme, and you reach it by going to Appearance, and then down to the Settings link next to whatever the enabled and active theme is; by default that's Bartik. So I will click Settings, and see all of the things that I can change on the page.
Now, you will see that there's a color set up here. By default, it's Blue Lagoon, but if I change it to, let's say, Plum, that changes many of the colors throughout the site ,and you can see a preview of this by scrolling down a little bit, and there it is. I am going to return it to Blue Lagoon, and just change a couple of colors to make it more olive-like. First thing I'll do is in the header, I am going to turn it to some kind of green; make it a kind of lightish green. Something like that, let's say, and scroll down and see. Oh, that looks pretty good. Maybe make the bottom a similar kind of green.
So go over here, and click around. That actually looks pretty good. You can also change the values by typing them in directly. So here I'll change it to hex value 292929, for example, and you see it change in your preview live as you do that. If I scroll to the bottom, and click Save configuration, and close out the overlay as I did before, we see those take effect immediately. Very good! But you're probably wondering, how can I replace that silly looking face, and put in my own logo? Well, that's easy.
If you're a premium subscriber to lynda.com, or received the series on disk, you will find graphics to do so in your exercise files. If not, you can use your own, of course. You do it by going up to Appearance, and then once again changing the settings of your theme. Scroll down to the bottom where you have the options to change the logo, and the shortcut icon, which is also known as the Favicon. I will remove the default logo, and click Choose File, and then find my file. Here it is: logo.png.
Click Open, and then do the same for the shortcut icon. Remove the default, and add our little icon here, the Favicon, and then Save configuration, and then turn off the Overlay so we can see the effects of our work. Indeed, there's our logo, and up here in the corner is our Favicon. Now, the location of the Favicon changes depending on which browser you're using. In Firefox, I believe it's in the address bar, and so on, but it does add a nice little touch that many people forget, which means that yours is going to look especially good by comparison.
The last change I am going to make is to add a search bar up here in the corner. There are two things I have to do. First, I'm going to move a block into this area. I do that by clicking on Structure, and Blocks. Now, the way the block system works, the entire page is broken in to block regions, and you can see those by clicking Demonstrate block regions, and there is a header, featured, a few different triptychs at the bottom, and so on. I am going to put mine in the header region. So I'll exit out of this demonstration, and find the search block that I need.
It's all the way at the bottom under Disabled. Change it into Header, and Save. To see it, once again, I close the Overlay, and there it is. You'll learn more about blocks in my Drupal Essential Training Course. There is one problem with this, however. By default, only the administrator gets to search the site. To change that, you will go up to People, and Permissions, and then find the search group down here at the bottom. I am going to let everybody use the search; both the administrator, and authenticated users -- that's those people who are signed in -- and those people who aren't signed in; those are anonymous users.
Scroll down to the bottom, and Save again. As always, we close our Overlay to see the effects of our changes. In this case, we don't see any, since we could already use the search box. The reason I mentioned the search box, by the way, is because that's something I find I put on every site that I ever create. The only reason you wouldn't is if you have some special reason not to allow people to search the site. Now, I think we're ready to go. The steps you saw just barely touch on tasks in the Building a Drupal Site section from the Drupal Essential Training series.
If you're hungry for more detail, refer to that course.
Sign up for a Premium Membership to download courses for Internet-free viewing.
Watch offline with your iOS, Android, or desktop app.Start Your Free Trial
After signing up, download the course here or from the iOS/Android App.