Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering WooCommerce 4

You're reading from   Mastering WooCommerce 4 Build complete e-commerce websites with WordPress and WooCommerce from scratch

Arrow left icon
Product type Paperback
Published in Mar 2020
Publisher Packt
ISBN-13 9781838822835
Length 334 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Patrick Rauland Patrick Rauland
Author Profile Icon Patrick Rauland
Patrick Rauland
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Installing WordPress and WooCommerce 2. Configuring Products FREE CHAPTER 3. Organizing Products 4. Optimizing SEO and Attracting Traffic 5. Managing Sales Through WP Admin 6. Syncing Product Data 7. Configuring In-Store POS Solutions 8. Using Fulfillment Software 9. Speeding Up Your Store 10. Setting Up Your Theme 11. Customizing the Product Page 12. Building a Landing Page 13. Creating Plugins for WooCommerce 14. Other Books You May Enjoy

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 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 at https://github.com/woogists/woocommerce-integration-demo.

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:

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 settings page using the Integration class. We...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image