Rundown of what we are building [Back-end] [PHP]
In this chapter we’ll go over the functionality which we are building. We will be building a pickup and delivery plugin for Woocommerce. This plugin will give the user the ability to select between delivery and pickup. In the case of delivery, a date field will be shown. In case of pickup the user will be able to choose from a list of pickup locations.
This tutorial covers a wide variety of advanced Woocommerce/WordPress development topics:
– Displaying extra checkout fields
– Communicating back and forth between back and front-end
– Integration with the jQuery date picker in WordPress
Starting from a boilerplate
In this chapter I’m going to initialize the plugin structure from a boilerplate generator. This makes the process a bit faster since we don’t have to write all the boilerplate code ourselves.
Configuring the front-end bits and pieces [Back-end] [PHP]
Writing the field validation rules & saving logic [Back-end] [PHP]
In this chapter we will be writing all the validation logic. This will make sure that no faulty data will enter our application and that users can not fizzle with the inputs.
Package rates [Back-end] [PHP]
In this chapter we will be implementing everything regarding package rates. We will learn about the ‘woocommerce_package_rates’ hook and how to use it to reflect the user’s choice in the front-end.
Creating the admin order view [Back-end] [PHP]
In this chapter we will be creating the admin order view, the data should be available to our admins.