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
In WordPress admin, create a new page, for example "Shop".
Add this shortcode:
[withwine type='store' /]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.
Create a new page, for example "Wine".
Add this shortcode:
[withwine type='product-details' set_page_title='true' /]Publish the page.
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.
Go to Settings > WithWine and enter the Post ID in Product Page Template ID.
Click Save Changes.
Go to Settings > Permalinks and click Save Changes to refresh WordPress's links.
Step 3: Create the checkout success page
Create a new page with the web address /CheckoutSuccess.
Add a thank-you message, for example "Thanks for your order! We'll email your receipt shortly."
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.
