Reader small image

You're reading from  Mastering WooCommerce - Second Edition

Product typeBook
Published inApr 2024
PublisherPackt
ISBN-139781835085288
Edition2nd Edition
Concepts
Right arrow
Author (1)
Patrick Rauland
Patrick Rauland
author image
Patrick Rauland

Patrick Rauland is obsessed with WooCommerce. He has used it as a customer, worked for WooCommerce support, developed core functionality in WooCommerce itself, led three releases, and helped plan their yearly conference (WooConf). He now helps people by writing his blog, creating courses for LinkedIn Learning/Lynda, and writing books. Patrick is also the co-founder of WooSesh, an online conference for WooCommerce developers and store owners. Patrick lives in Denver, Colorado, where you can probably find him at a local coffee shop, typing away
Read more about Patrick Rauland

Right arrow

Adding e-commerce to a landing page

Our landing page is looking pretty good. Now that we’ve done a good job of showing off our awesome product with different types of content, we just need to give viewers a way to purchase the product. There are a couple of ways to do this: we can use the Featured Product block, we can add an Add to cart button to the page, or we could also use the One Page Checkout extension.

Let’s start with the easiest method, which is adding a featured product block. Then we’ll look into adding an Add to cart button directly to the page.

Adding a featured product

Before we can let users add a product to their cart, we have to add the product to our store. We don’t have to add every single field, but we need to add enough to display useful information on the landing page.

Let’s add the product first. Follow these steps:

  1. Under Products, navigate to Add New as in the following screenshot:
Figure 12.8: Adding a new product ...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering WooCommerce - Second Edition
Published in: Apr 2024Publisher: PacktISBN-13: 9781835085288

Author (1)

author image
Patrick Rauland

Patrick Rauland is obsessed with WooCommerce. He has used it as a customer, worked for WooCommerce support, developed core functionality in WooCommerce itself, led three releases, and helped plan their yearly conference (WooConf). He now helps people by writing his blog, creating courses for LinkedIn Learning/Lynda, and writing books. Patrick is also the co-founder of WooSesh, an online conference for WooCommerce developers and store owners. Patrick lives in Denver, Colorado, where you can probably find him at a local coffee shop, typing away
Read more about Patrick Rauland