Book Image

Mastering WooCommerce - Second Edition

By : Patrick Rauland
Book Image

Mastering WooCommerce - Second Edition

By: Patrick Rauland

Overview of this book

Author Patrick Rauland is a WooCommerce expert with a deep-rooted passion for the platform. Drawing from his multifaceted experience as a customer, WooCommerce support team member, core developer, release leader, and conference planner, he presents the latest edition of this guide to help you master every facet of launching and managing a successful WooCommerce store. From initiation to seamless integration of essential components such as payments, shipping, and tax configurations, this book takes you through the entire process of establishing your online store. You’ll then customize your store's visual identity, optimizing for search engines and advanced sales management through Point of Sale (POS) systems, outsourced fulfillment solutions, and external reporting services. You’ll then advance to enhancing the user experience, streamlining reorders, and simplifying the checkout process for your customers. With this new edition, you’ll also gain insights into secure hosting and bug fixing and be prepared for updates. That’s not all; you’ll build a promotional landing page, ensure store safety, contribute to the WooCommerce community, and design custom plugins for your unique needs. By the end of this WooCommerce book, you'll emerge with the skills to run a complete WooCommerce store and customize every aspect of the store on the frontend as well as backend.
Table of Contents (20 chapters)
Free Chapter
1
Part 1: Exploring the essentials of an ECommerce Store
6
Part 2: Managing an Online Store
12
Part 3: Customizing the Appearance and Functionality of Your Store

Building a settings page with WooCommerce

When you’re building your own plugin, you’ll very likely have to build a settings page. There’s a lot to building a settings page from scratch. But if you are just building an integration, WooCommerce has created some technology that makes it easier for you to add your own settings screen.

We’re going to cover some of the coding decisions in the WooCommerce Integration class. If you want, you can see the finished code athttps://developer.woocommerce.com/docs/creating-custom-settings-for-woocommerce-extensions/.

We can see that one of the plugins we looked at earlier in this book takes advantage of the Integration class, which we can see in the following screenshot:

Figure 13.4: ShipStation uses the WooCommerce Integration class

Figure 13.4: ShipStation uses the WooCommerce Integration class

We’re not going to explain every single line. But we are going to cover the essential lines and why you need them.

Let’s build our own...