Have you ever seen post-sale selling techniques?

Not long ago I was shopping at The Postman’s Knock (if you want to improve your calligraphy you should check them out) and noticed that their shop runs on WooCommerce.

I purchased a product, and then on the checkout page I  noticed that they have a table of products related to their courses.

In their case, they are external products, but I thought to use that section to cross-sell some products post-sale. Let’s see how to do it!

Preparing the post-sale products tempate

Open your functions.php file in wp-content/themes/your-child-theme-name/ and add this code at the end of the file:

This function will take care of getting the cross-sale products set for the products that have been purchased, and show them on the Thank you page.

Feel free to edit the text and HTML code to what you prefer most!

Settings cross-sell products

WooCommerce has a way to do it directly in the core.

Edit your product in Products > All Products and open the Linked Products tab. In the Cross-sells field choose the products that you want to cross-sell when that specific product is purchased:

A screenshot of the Linked Products tab in the Edit Product screen

That’s all! This setup will get you a result like this, on the Thank you page:

3 replies
  1. AMIT
    AMIT says:

    Works exactly as described. I have disabled the Related Products from the Cart page. I always thought adding to the Checkout/Thank You page would be better in not disrupting the Checkout flow.

    Thank you again for a very useful snippet!


Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

You have to agree to the comment policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.