Book Image

Building E-Commerce Solutions with WooCommerce - Second Edition

By : Robbert Ravensbergen
Book Image

Building E-Commerce Solutions with WooCommerce - Second Edition

By: Robbert Ravensbergen

Overview of this book

Building an online store is often considered to be a difficult, complex task. Using the combination of WordPress and the WooCommerce plugin, this is no longer the case. WooCommerce is the most popular e-commerce platform for WordPress and is being rapidly developed by WooThemes. It provides a strong e-commerce solution to set up your own online store in just a couple of hours. This easy and practical book will help you make the most of WooCommerce to be able to set up and run your online store yourself. Installing WooCommerce is an easy task, but this book will explain in detail all the possible settings. After that you'll be adding products, different payment methods, and shipping solutions to your store. You will then customize your store by adding themes to change the look and feel. Once your store is running, you'll learn how to use discount coupons, process your orders, look at reports, and even expand the functionality further with additional plugins. By the end of the book, you will learn everything you need to add a fully functional online store to you WordPress website and start running an online business.
Table of Contents (15 chapters)
Building E-Commerce Solutions with WooCommerce Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

WordPress theme basics


WordPress theme development in a short version:

  • Every WordPress theme has its own folder, which you may find in the wp-content/themes folder of your WordPress installation.

  • The bare minimum that every WordPress theme needs is an index.php and style.css file. The index.php file determines the way the home page looks like, by the so-called WordPress loop. There are also other possibilities for the home page, which we'll see in a minute. The style.css file contains all the styling or calls for other CSS files. It also contains the name and author of the theme.

  • From index.php, lots of different PHP files can be called. Here are a couple of the most common ones, including their meaning:

    • header.php: This contains the logic for the header of your theme, which mostly contains things such as the logo, website name, search bar, and menu. It also contains the necessary HTML head code.

    • sidebar.php: This contains the definition of a sidebar, that is used to display widgets. More complex...