Skip to main content

How to set up your shop, product and checkout success pages in WordPress

With the WithWine plugin installed, create a shop page with the store shortcode, a product page with the product-details shortcode (and enter its Post ID in Settings > WithWine), and a page at /CheckoutSuccess.

Every WordPress website using WithWine needs three pages: a shop page, a product page and a checkout success page.

Before you start

Install and connect the WithWine plugin. See "How to install the WithWine WordPress plugin".

Step 1: Create the shop page

  1. In WordPress admin, create a new page, for example "Shop".

  2. Add this shortcode: [withwine type='store' /]

  3. Publish the page.

The shop shows your products with filters down the side. See "How to customise the WithWine shop filters and sort order on WordPress".

Step 2: Create the product page

The product page shows one product at a time. The shop links each product to this page.

  1. Create a new page, for example "Wine".

  2. Add this shortcode: [withwine type='product-details' set_page_title='true' /]

  3. Publish the page.

  4. Find the page's Post ID: while editing the page, look at the web address in your browser. The number after post= is the Post ID.

  5. Go to Settings > WithWine and enter the Post ID in Product Page Template ID.

  6. Click Save Changes.

  7. Go to Settings > Permalinks and click Save Changes to refresh WordPress's links.

Step 3: Create the checkout success page

  1. Create a new page with the web address /CheckoutSuccess.

  2. Add a thank-you message, for example "Thanks for your order! We'll email your receipt shortly."

  3. Publish the page.

Customers land on this page after they place an order, join a club or redeem a gift card. Without it, customers see "Page not found" after checking out.

What happens next

Customers can browse your shop, open a product, add it to the cart and check out. The cart is available on every page.

Troubleshooting

  • Clicking a product shows "Page not found" or your blog instead of the product: check the Post ID in Product Page Template ID in Settings > WithWine, then go to Settings > Permalinks and click Save Changes. Don't use the Plain permalink structure.

  • Customers see "Page not found" after checkout: create the /CheckoutSuccess page. You can change this path in WithWine under Settings > Website in Checkout / Join Club Success Path.

Related articles

Did this answer your question?